allow new lable with mnemonic (e_search_bar_construct): alter lable name.

2003-11-17  Charles Zhang  <charles.zhang@sun.com>

	* e-search-bar.c(add_button): allow new lable with mnemonic
	(e_search_bar_construct): alter lable name. [50810]

svn path=/trunk/; revision=23385
This commit is contained in:
Charles Zhang
2003-11-17 13:31:52 +00:00
committed by Antonio Xu
parent 000e2ade56
commit e86b07cdbb
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2003-11-17 Charles Zhang <charles.zhang@sun.com>
* e-search-bar.c(add_button): allow new lable with mnemonic
(e_search_bar_construct): alter lable name. [50810]
2003-11-16 JP Rosevear <jpr@ximian.com>
* e-source-selector.c (e_source_selector_set_primary_selection):

View File

@ -685,7 +685,7 @@ add_button (ESearchBar *esb,
GtkWidget *holder;
GtkWidget *button;
label = gtk_label_new (text);
label = gtk_label_new_with_mnemonic (text);
gtk_misc_set_padding (GTK_MISC (label), 2, 0);
gtk_widget_show (label);
@ -925,9 +925,9 @@ e_search_bar_construct (ESearchBar *search_bar,
gtk_box_set_spacing (GTK_BOX (search_bar), 1);
search_bar->clear_button = add_button (search_bar, _("Clear"),
search_bar->clear_button = add_button (search_bar, _("_Clear"),
G_CALLBACK (clear_button_clicked_cb));
search_bar->activate_button = add_button (search_bar, _("Find Now"),
search_bar->activate_button = add_button (search_bar, _("Find _Now"),
G_CALLBACK (activate_button_clicked_cb));
e_search_bar_set_menu (search_bar, menu_items);