From c1d74deb42e33903d6de777933eb19d9303c726c Mon Sep 17 00:00:00 2001
From: Li Yuan
Date: Tue, 30 May 2006 09:35:15 +0000
Subject: Fix for #343280. No need to add label when we use
2006-05-30 Li Yuan
Fix for #343280.
* e-search-bar.c: (add_button):
No need to add label when we use gtk_button_new_from_stock
to create a button.
svn path=/trunk/; revision=32055
---
widgets/misc/e-search-bar.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
(limited to 'widgets/misc/e-search-bar.c')
diff --git a/widgets/misc/e-search-bar.c b/widgets/misc/e-search-bar.c
index 5dc7817583..275721dbe0 100644
--- a/widgets/misc/e-search-bar.c
+++ b/widgets/misc/e-search-bar.c
@@ -739,23 +739,17 @@ add_button (ESearchBar *esb,
const char *stock,
GCallback callback)
{
- GtkWidget *label;
GtkWidget *holder;
GtkWidget *button;
GtkWidget *image;
- label = gtk_label_new_with_mnemonic (text);
- gtk_misc_set_padding (GTK_MISC (label), 2, 0);
- gtk_widget_show (label);
-
/* See the comment in `put_in_spacer_widget()' to understand
why we have to do this. */
image = gtk_image_new_from_stock (stock, GTK_ICON_SIZE_BUTTON);
- button = gtk_button_new_from_stock (text);
+ button = gtk_button_new_with_mnemonic (text);
gtk_button_set_image (button, image);
gtk_widget_show (button);
- gtk_container_add (GTK_CONTAINER (button), label);
holder = put_in_spacer_widget (button);
gtk_widget_show (holder);
--
cgit