summaryrefslogtreecommitdiff
path: root/tools/mate-color-select.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-01-20 21:54:50 +0100
committerraveit65 <[email protected]>2021-02-02 14:55:37 +0100
commit05c9068931ee35a4b18393e771ea14846db8b977 (patch)
treeb325cb5f846baeaf101485640d29916ff0a56558 /tools/mate-color-select.c
parentb3c055d8bf79e9fdbfd4dd8f873c819ca69f7ec8 (diff)
downloadmate-desktop-05c9068931ee35a4b18393e771ea14846db8b977.tar.bz2
mate-desktop-05c9068931ee35a4b18393e771ea14846db8b977.tar.xz
mate-color-select: Do not use deprecated gtk_button_new_from_stock
Diffstat (limited to 'tools/mate-color-select.c')
-rw-r--r--tools/mate-color-select.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/mate-color-select.c b/tools/mate-color-select.c
index 5edb42e..46cad35 100644
--- a/tools/mate-color-select.c
+++ b/tools/mate-color-select.c
@@ -54,6 +54,7 @@ main (int argc, char **argv)
GtkWidget *color_dialog = NULL;
GtkWidget *color_selection;
GtkWidget *widget;
+ GtkWidget *image;
mate_gettext (GETTEXT_PACKAGE, LOCALE_DIR, "UTF-8");
@@ -68,11 +69,15 @@ main (int argc, char **argv)
/* quit signal */
g_signal_connect (color_dialog, "destroy", gtk_main_quit, NULL);
- widget = gtk_button_new_from_stock (GTK_STOCK_COPY);
+ widget = gtk_button_new_with_mnemonic ("_Copy");
+ image = gtk_image_new_from_icon_name ("edit-copy", GTK_ICON_SIZE_BUTTON);
+ gtk_button_set_image (GTK_BUTTON (widget), image);
gtk_container_add (GTK_CONTAINER (gtk_dialog_get_action_area (GTK_DIALOG (color_dialog))), widget);
g_signal_connect (widget, "button-release-event", G_CALLBACK (copy_color), color_dialog);
- widget = gtk_button_new_from_stock (GTK_STOCK_CLOSE);
+ widget = gtk_button_new_with_mnemonic ("_Close");
+ image = gtk_image_new_from_icon_name ("window-close", GTK_ICON_SIZE_BUTTON);
+ gtk_button_set_image (GTK_BUTTON (widget), image);
gtk_container_add (GTK_CONTAINER (gtk_dialog_get_action_area (GTK_DIALOG (color_dialog))), widget);
g_signal_connect (widget, "button-release-event", gtk_main_quit, NULL);