diff options
author | Li Yuan <li.yuan@sun.com> | 2006-05-30 17:35:15 +0800 |
---|---|---|
committer | Li Yuan <liyuan@src.gnome.org> | 2006-05-30 17:35:15 +0800 |
commit | c1d74deb42e33903d6de777933eb19d9303c726c (patch) | |
tree | c0d32bc56c73473e508bb5677579e54ccf8e7a71 /widgets/misc/e-search-bar.c | |
parent | 1f9500479383fcd608cc7058a3cf5941c30ce35a (diff) | |
download | gsoc2013-evolution-c1d74deb42e33903d6de777933eb19d9303c726c.tar.gz gsoc2013-evolution-c1d74deb42e33903d6de777933eb19d9303c726c.tar.zst gsoc2013-evolution-c1d74deb42e33903d6de777933eb19d9303c726c.zip |
Fix for #343280. No need to add label when we use
2006-05-30 Li Yuan <li.yuan@sun.com>
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
Diffstat (limited to 'widgets/misc/e-search-bar.c')
-rw-r--r-- | widgets/misc/e-search-bar.c | 8 |
1 files changed, 1 insertions, 7 deletions
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); |