diff --git a/capplets/accessibility/keyboard/ChangeLog b/capplets/accessibility/keyboard/ChangeLog index 5748d17ff..e9bdce7c6 100644 --- a/capplets/accessibility/keyboard/ChangeLog +++ b/capplets/accessibility/keyboard/ChangeLog @@ -1,3 +1,10 @@ +2007-05-05 Jens Granseuer + + * accessibility-keyboard.c: (setup_images): + * gnome-accessibility-keyboard-properties.glade: set button images + via code instead of relying on glade, so they respect the + gtk-button-images xsetting (bug #362880) + 2007-04-27 Rodrigo Moya * accessibility-keyboard.desktop.in.in: renamed Bugzilla product. diff --git a/capplets/accessibility/keyboard/accessibility-keyboard.c b/capplets/accessibility/keyboard/accessibility-keyboard.c index cb3263e39..f7561a6f0 100644 --- a/capplets/accessibility/keyboard/accessibility-keyboard.c +++ b/capplets/accessibility/keyboard/accessibility-keyboard.c @@ -225,12 +225,20 @@ setup_ranges (GladeXML *dialog, GConfChangeSet *changeset) static void setup_images (GladeXML *dialog) { + GtkWidget *image; int i = G_N_ELEMENTS (features); + while (i-- > 0) - if (features [i].image != NULL) - gtk_image_set_from_stock (GTK_IMAGE (WID (features [i].image)), - features [i].image_file, + if (features [i].image != NULL) + gtk_image_set_from_stock (GTK_IMAGE (WID (features [i].image)), + features [i].image_file, keyboard_capplet_icon_get_size ()); + + image = gtk_image_new_from_stock (GTK_STOCK_REVERT_TO_SAVED, GTK_ICON_SIZE_BUTTON); + gtk_button_set_image (GTK_BUTTON (WID ("load_CDE_file")), image); + + image = gtk_image_new_from_stock (GTK_STOCK_JUMP_TO, GTK_ICON_SIZE_BUTTON); + gtk_button_set_image (GTK_BUTTON (WID ("launch_mouse_capplet")), image); } static void diff --git a/capplets/accessibility/keyboard/gnome-accessibility-keyboard-properties.glade b/capplets/accessibility/keyboard/gnome-accessibility-keyboard-properties.glade index 9730e16d2..c06a578b9 100644 --- a/capplets/accessibility/keyboard/gnome-accessibility-keyboard-properties.glade +++ b/capplets/accessibility/keyboard/gnome-accessibility-keyboard-properties.glade @@ -311,62 +311,8 @@ True True GTK_RELIEF_NORMAL - - - - True - 0.5 - 0.5 - 0 - 0 - - - - True - False - 2 - - - - True - gtk-revert-to-saved - 4 - 0.5 - 0.5 - 0 - 0 - - - 0 - False - False - - - - - - True - _Import Feature Settings... - True - False - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - - - 0 - False - False - - - - - - + _Import Feature Settings... + True 0 @@ -1987,62 +1933,8 @@ True True GTK_RELIEF_NORMAL - - - - True - 0.5 - 0.5 - 0 - 0 - - - - True - False - 2 - - - - True - gtk-jump-to - 4 - 0.5 - 0.5 - 0 - 0 - - - 0 - False - False - - - - - - True - Mouse _Preferences... - True - False - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - - - 0 - False - False - - - - - - + Mouse _Preferences... + True 0