diff options
author | rbuj <[email protected]> | 2021-01-20 21:39:29 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-01-28 20:16:17 +0100 |
commit | 8ab1fdf541bec3314d3f2c0a0068e2d3534a0cd4 (patch) | |
tree | 0d6fac482f6e334b4d93941ae21c7bb634cba213 | |
parent | 360e5ec616dbc4f5b34dbaf06a88a31a1e407319 (diff) | |
download | mate-netbook-8ab1fdf541bec3314d3f2c0a0068e2d3534a0cd4.tar.bz2 mate-netbook-8ab1fdf541bec3314d3f2c0a0068e2d3534a0cd4.tar.xz |
mate-window: Replace GtkStock icons
-rw-r--r-- | mate-window-picker-applet/applet.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mate-window-picker-applet/applet.c b/mate-window-picker-applet/applet.c index d2281bf..4f22b78 100644 --- a/mate-window-picker-applet/applet.c +++ b/mate-window-picker-applet/applet.c @@ -62,10 +62,10 @@ static void display_prefs_dialog (GtkAction *action, WinPickerApp *applet); static const GtkActionEntry window_picker_menu_actions [] = { - { "MenuPrefs", GTK_STOCK_PREFERENCES, N_("_Preferences"), + { "MenuPrefs", "preferences-system", N_("_Preferences"), NULL, NULL, G_CALLBACK (display_prefs_dialog) }, - { "MenuAbout", GTK_STOCK_ABOUT, N_("_About"), + { "MenuAbout", "help-about", N_("_About"), NULL, NULL, G_CALLBACK (display_about_dialog) } }; @@ -295,7 +295,7 @@ static void display_prefs_dialog (GtkAction *action, WinPickerApp *applet) { - GtkWidget *window, *box, *vbox, *nb, *hbox, *label, *check, *button; + GtkWidget *window, *box, *vbox, *nb, *hbox, *label, *check, *button, *image; window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (window), _("Preferences")); @@ -353,7 +353,9 @@ display_prefs_dialog (GtkAction *action, label = gtk_label_new (" "); gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0); - button = gtk_button_new_from_stock (GTK_STOCK_CLOSE); + button = 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 (button), image); gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, FALSE, 0); gtk_widget_show_all (window); |