From 24c93c5aae6c939760bc903a5bd73267b3b43d92 Mon Sep 17 00:00:00 2001 From: rbuj Date: Tue, 24 Nov 2020 18:13:19 +0100 Subject: mate-keyboard-properties: Do not use stock icons on ui file --- .../keyboard/mate-keyboard-properties-dialog.ui | 55 ++++++++++++++++++---- capplets/keyboard/mate-keyboard-properties.c | 7 --- 2 files changed, 45 insertions(+), 17 deletions(-) diff --git a/capplets/keyboard/mate-keyboard-properties-dialog.ui b/capplets/keyboard/mate-keyboard-properties-dialog.ui index f047af8b..2092d6f0 100644 --- a/capplets/keyboard/mate-keyboard-properties-dialog.ui +++ b/capplets/keyboard/mate-keyboard-properties-dialog.ui @@ -74,6 +74,31 @@ 1 10 + + True + False + window-close + + + True + False + help-browser + + + True + False + list-add + + + True + False + list-remove + + + True + False + view-refresh + mate-keyboard-dialog False @@ -94,13 +119,15 @@ False end - - gtk-help + + _Help True True True False - True + help_button_img + True + True False @@ -109,15 +136,17 @@ - - gtk-close + + _Close True True True True True False - True + close_button_img + True + True False @@ -676,7 +705,9 @@ True True Select a keyboard layout to be added to the list + xkb_layouts_add_img True + True True @@ -686,12 +717,14 @@ - gtk-remove + _Remove True True True Remove the selected keyboard layout from the list - True + xkb_layouts_remove_img + True + True True @@ -906,7 +939,9 @@ True Replace the current keyboard layout settings with the default settings + xkb_reset_to_defaults_img True + True False @@ -2149,8 +2184,8 @@ default settings - helpbutton1 - button4 + help_button + close_button diff --git a/capplets/keyboard/mate-keyboard-properties.c b/capplets/keyboard/mate-keyboard-properties.c index cf2ef62f..b17421cf 100644 --- a/capplets/keyboard/mate-keyboard-properties.c +++ b/capplets/keyboard/mate-keyboard-properties.c @@ -55,7 +55,6 @@ create_dialog (void) { GtkBuilder *dialog; GtkSizeGroup *size_group; - GtkWidget *image; GError *error = NULL; dialog = gtk_builder_new (); @@ -84,12 +83,6 @@ create_dialog (void) gtk_size_group_add_widget (size_group, WID ("cursor_blink_time_scale")); g_object_unref (G_OBJECT (size_group)); - image = gtk_image_new_from_icon_name ("list-add", GTK_ICON_SIZE_BUTTON); - gtk_button_set_image (GTK_BUTTON (WID ("xkb_layouts_add")), image); - - image = gtk_image_new_from_icon_name ("view-refresh", GTK_ICON_SIZE_BUTTON); - gtk_button_set_image (GTK_BUTTON (WID ("xkb_reset_to_defaults")), image); - return dialog; } -- cgit v1.2.1