nautilus r13932 - in trunk: . libnautilus-private
- From: alexl svn gnome org
- To: svn-commits-list gnome org
- Subject: nautilus r13932 - in trunk: . libnautilus-private
- Date: Fri, 14 Mar 2008 12:01:02 +0000 (GMT)
Author: alexl
Date: Fri Mar 14 12:01:01 2008
New Revision: 13932
URL: http://svn.gnome.org/viewvc/nautilus?rev=13932&view=rev
Log:
2008-03-14 Alexander Larsson <alexl redhat com>
* libnautilus-private/nautilus-column-chooser.c:
(button_new_with_mnemonic):
respect gtk-button-images property for buttons (#514130)
Patch from Marcin Galazka
Modified:
trunk/ChangeLog
trunk/libnautilus-private/nautilus-column-chooser.c
Modified: trunk/libnautilus-private/nautilus-column-chooser.c
==============================================================================
--- trunk/libnautilus-private/nautilus-column-chooser.c (original)
+++ trunk/libnautilus-private/nautilus-column-chooser.c Fri Mar 14 12:01:01 2008
@@ -351,23 +351,13 @@
static GtkWidget *
button_new_with_mnemonic (const gchar *stockid, const gchar *str)
{
- GtkWidget *label;
GtkWidget *image;
GtkWidget *button;
- GtkWidget *hbox;
- GtkWidget *align;
- button = gtk_button_new ();
- label = gtk_label_new_with_mnemonic (str);
- gtk_label_set_mnemonic_widget (GTK_LABEL (label),
- GTK_WIDGET (button));
+ button = gtk_button_new_with_mnemonic (str);
image = gtk_image_new_from_stock (stockid, GTK_ICON_SIZE_BUTTON);
- hbox = gtk_hbox_new (FALSE, 2);
- align = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
- gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0);
- gtk_box_pack_end (GTK_BOX (hbox), label, FALSE, FALSE, 0);
- gtk_container_add (GTK_CONTAINER (button), align);
- gtk_container_add (GTK_CONTAINER (align), hbox);
+
+ gtk_button_set_image (GTK_BUTTON (button), image);
return button;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]