Re: [evolution-patches] patch for 50810



sure, looks ok I guess.

Jeff

On Wed, 2003-11-12 at 09:08, Charles Zhang wrote:
> Hello, everyone.
> 
> This time, I attach a patch fixing bug 50810.
> I changed the func call label_new to label_new_with_mnemonic to have the 
> button with mnemonic.
> Please seek it.
> 
> Best Regards.
> Charles Zhang
> 
> ______________________________________________________________________
> Index: widgets/misc/ChangeLog
> ===================================================================
> RCS file: /cvs/gnome/evolution/widgets/misc/ChangeLog,v
> retrieving revision 1.228.2.1
> diff -u -p -r1.228.2.1 ChangeLog
> --- widgets/misc/ChangeLog	9 Jul 2003 19:49:43 -0000	1.228.2.1
> +++ widgets/misc/ChangeLog	12 Nov 2003 13:58:38 -0000
> @@ -0,0 +0,5 @@
> +2003-11-12  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]
> +
> Index: widgets/misc/e-search-bar.c
> ===================================================================
> RCS file: /cvs/gnome/evolution/widgets/misc/e-search-bar.c,v
> retrieving revision 1.72
> diff -u -p -r1.72 e-search-bar.c
> --- widgets/misc/e-search-bar.c	23 Jun 2003 14:03:54 -0000	1.72
> +++ widgets/misc/e-search-bar.c	12 Nov 2003 13:58:43 -0000
> @@ -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 *sear
>  
>  	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);
-- 
Jeffrey Stedfast
Evolution Hacker - Ximian, Inc.
fejj ximian com  - www.ximian.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]