Skip to content

Commit

Permalink
avoid deprecated GtkStock
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0w authored and raveit65 committed Feb 9, 2018
1 parent 94618cb commit 607d522
Show file tree
Hide file tree
Showing 19 changed files with 91 additions and 75 deletions.
8 changes: 4 additions & 4 deletions accessx-status/applet.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ static void dialog_cb(GtkAction* action, AccessxStatusApplet* sapplet)
} }


static const GtkActionEntry accessx_status_applet_menu_actions[] = { static const GtkActionEntry accessx_status_applet_menu_actions[] = {
{"Dialog", GTK_STOCK_PROPERTIES, N_("_Keyboard Accessibility Preferences"), NULL, NULL, G_CALLBACK(dialog_cb)}, {"Dialog", "document-properties", N_("_Keyboard Accessibility Preferences"), NULL, NULL, G_CALLBACK(dialog_cb)},
{"Help", GTK_STOCK_HELP, N_("_Help"), NULL, NULL, G_CALLBACK(help_cb)}, {"Help", "help-browser", N_("_Help"), NULL, NULL, G_CALLBACK(help_cb)},
{"About", GTK_STOCK_ABOUT, N_("_About"), NULL, NULL, G_CALLBACK(about_cb)} {"About", "help-about", N_("_About"), NULL, NULL, G_CALLBACK(about_cb)}
}; };


static XkbDescPtr accessx_status_applet_get_xkb_desc(AccessxStatusApplet* sapplet) static XkbDescPtr accessx_status_applet_get_xkb_desc(AccessxStatusApplet* sapplet)
Expand Down Expand Up @@ -928,7 +928,7 @@ static void accessx_applet_add_stock_icons(AccessxStatusApplet* sapplet, GtkWidg
} }
else else
{ {
GtkIconSet* default_set = gtk_icon_factory_lookup_default(GTK_STOCK_MISSING_IMAGE); GtkIconSet* default_set = gtk_icon_factory_lookup_default("gtk-missing-image");
gtk_icon_source_set_pixbuf(source, gtk_icon_set_render_icon(default_set, gtk_widget_get_style(widget), GTK_TEXT_DIR_NONE, GTK_STATE_NORMAL, icon_size_spec, widget, NULL)); gtk_icon_source_set_pixbuf(source, gtk_icon_set_render_icon(default_set, gtk_widget_get_style(widget), GTK_TEXT_DIR_NONE, GTK_STATE_NORMAL, icon_size_spec, widget, NULL));
} }
g_free(filename); g_free(filename);
Expand Down
10 changes: 5 additions & 5 deletions battstat/battstat_applet.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ static void about_cb( GtkAction *, ProgressData * );
static void help_cb( GtkAction *, ProgressData * ); static void help_cb( GtkAction *, ProgressData * );


static const GtkActionEntry battstat_menu_actions [] = { static const GtkActionEntry battstat_menu_actions [] = {
{ "BattstatProperties", GTK_STOCK_PROPERTIES, N_("_Preferences"), { "BattstatProperties", "document-properties", N_("_Preferences"),
NULL, NULL, NULL, NULL,
G_CALLBACK (prop_cb) }, G_CALLBACK (prop_cb) },
{ "BattstatHelp", GTK_STOCK_HELP, N_("_Help"), { "BattstatHelp", "help-browser", N_("_Help"),
NULL, NULL, NULL, NULL,
G_CALLBACK (help_cb) }, G_CALLBACK (help_cb) },
{ "BattstatAbout", GTK_STOCK_ABOUT, N_("_About"), { "BattstatAbout", "help-about", N_("_About"),
NULL, NULL, NULL, NULL,
G_CALLBACK (about_cb) } G_CALLBACK (about_cb) }
}; };
Expand Down Expand Up @@ -438,7 +438,7 @@ battery_full_dialog (GtkWidget *applet)
_("Battery Notice"), _("Battery Notice"),
NULL, NULL,
GTK_DIALOG_DESTROY_WITH_PARENT, GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_OK, "gtk-ok",
GTK_RESPONSE_ACCEPT, GTK_RESPONSE_ACCEPT,
NULL); NULL);
g_signal_connect_swapped (G_OBJECT (dialog), "response", g_signal_connect_swapped (G_OBJECT (dialog), "response",
Expand Down Expand Up @@ -593,7 +593,7 @@ battery_low_dialog( ProgressData *battery, BatteryStatus *info )
_("Battery Notice"), _("Battery Notice"),
NULL, NULL,
GTK_DIALOG_DESTROY_WITH_PARENT, GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_OK, "gtk-ok",
GTK_RESPONSE_ACCEPT, GTK_RESPONSE_ACCEPT,
NULL); NULL);
gtk_dialog_set_default_response( GTK_DIALOG (battery->battery_low_dialog), gtk_dialog_set_default_response( GTK_DIALOG (battery->battery_low_dialog),
Expand Down
6 changes: 3 additions & 3 deletions charpick/charpick.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -693,13 +693,13 @@ get_chartable (charpick_data *curr_data)
} }


static const GtkActionEntry charpick_applet_menu_actions [] = { static const GtkActionEntry charpick_applet_menu_actions [] = {
{ "Preferences", GTK_STOCK_PROPERTIES, N_("_Preferences"), { "Preferences", "document-properties", N_("_Preferences"),
NULL, NULL, NULL, NULL,
G_CALLBACK (show_preferences_dialog) }, G_CALLBACK (show_preferences_dialog) },
{ "Help", GTK_STOCK_HELP, N_("_Help"), { "Help", "help-browser", N_("_Help"),
NULL, NULL, NULL, NULL,
G_CALLBACK (help_cb) }, G_CALLBACK (help_cb) },
{ "About", GTK_STOCK_ABOUT, N_("_About"), { "About", "help-about", N_("_About"),
NULL, NULL, NULL, NULL,
G_CALLBACK (about) } G_CALLBACK (about) }
}; };
Expand Down
32 changes: 24 additions & 8 deletions charpick/properties.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ register_stock_for_edit (void)
static const GtkStockItem edit_item [] = { static const GtkStockItem edit_item [] = {
{ CHARPICK_STOCK_EDIT, N_("_Edit"), 0, 0, GETTEXT_PACKAGE }, { CHARPICK_STOCK_EDIT, N_("_Edit"), 0, 0, GETTEXT_PACKAGE },
}; };
icons = gtk_icon_factory_lookup_default (GTK_STOCK_PREFERENCES); icons = gtk_icon_factory_lookup_default ("gtk-preferences");
factory = gtk_icon_factory_new (); factory = gtk_icon_factory_new ();
gtk_icon_factory_add (factory, CHARPICK_STOCK_EDIT, icons); gtk_icon_factory_add (factory, CHARPICK_STOCK_EDIT, icons);
gtk_icon_factory_add_default (factory); gtk_icon_factory_add_default (factory);
Expand Down Expand Up @@ -93,8 +93,8 @@ add_edit_dialog_create (charpick_data *curr_data, gchar *string, gchar *title)


dialog = gtk_dialog_new_with_buttons (_(title), GTK_WINDOW (curr_data->propwindow), dialog = gtk_dialog_new_with_buttons (_(title), GTK_WINDOW (curr_data->propwindow),
GTK_DIALOG_DESTROY_WITH_PARENT, GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, "gtk-cancel", GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK, "gtk-ok", GTK_RESPONSE_OK,
NULL); NULL);


gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (curr_data->propwindow)); gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (curr_data->propwindow));
Expand Down Expand Up @@ -465,22 +465,38 @@ static void default_chars_frame_create(charpick_data *curr_data)


vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6); vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_box_pack_start (GTK_BOX (hbox), vbox2, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (hbox), vbox2, FALSE, FALSE, 0);
button = gtk_button_new_from_stock (GTK_STOCK_ADD);
button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON,
"label", "gtk-add",
"use-stock", TRUE,
"use-underline", TRUE,
NULL));

gtk_box_pack_start (GTK_BOX (vbox2), button, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox2), button, FALSE, FALSE, 0);
g_signal_connect (G_OBJECT (button), "clicked", g_signal_connect (G_OBJECT (button), "clicked",
G_CALLBACK (add_palette), curr_data); G_CALLBACK (add_palette), curr_data);
set_access_namedesc (button, _("Add button"), set_access_namedesc (button, _("Add button"),
_("Click to add a new palette")); _("Click to add a new palette"));


button = gtk_button_new_from_stock (CHARPICK_STOCK_EDIT); button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON,
"label", CHARPICK_STOCK_EDIT,
"use-stock", TRUE,
"use-underline", TRUE,
NULL));

gtk_box_pack_start (GTK_BOX (vbox2), button, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox2), button, FALSE, FALSE, 0);
g_signal_connect (G_OBJECT (button), "clicked", g_signal_connect (G_OBJECT (button), "clicked",
G_CALLBACK (edit_palette), curr_data); G_CALLBACK (edit_palette), curr_data);
g_object_set_data (G_OBJECT (scrolled), "edit_button", button); g_object_set_data (G_OBJECT (scrolled), "edit_button", button);
set_access_namedesc (button, _("Edit button"), set_access_namedesc (button, _("Edit button"),
_("Click to edit the selected palette")); _("Click to edit the selected palette"));


button = gtk_button_new_from_stock (GTK_STOCK_DELETE); button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON,
"label", "gtk-delete",
"use-stock", TRUE,
"use-underline", TRUE,
NULL));

gtk_box_pack_start (GTK_BOX (vbox2), button, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox2), button, FALSE, FALSE, 0);
g_signal_connect (G_OBJECT (button), "clicked", g_signal_connect (G_OBJECT (button), "clicked",
G_CALLBACK (delete_palette), curr_data); G_CALLBACK (delete_palette), curr_data);
Expand Down Expand Up @@ -540,8 +556,8 @@ show_preferences_dialog (GtkAction *action,
curr_data->propwindow = gtk_dialog_new_with_buttons (_("Character Palette Preferences"), curr_data->propwindow = gtk_dialog_new_with_buttons (_("Character Palette Preferences"),
NULL, NULL,
GTK_DIALOG_DESTROY_WITH_PARENT, GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, "gtk-close", GTK_RESPONSE_CLOSE,
GTK_STOCK_HELP, GTK_RESPONSE_HELP, "gtk-help", GTK_RESPONSE_HELP,
NULL); NULL);
gtk_window_set_screen (GTK_WINDOW (curr_data->propwindow), gtk_window_set_screen (GTK_WINDOW (curr_data->propwindow),
gtk_widget_get_screen (curr_data->applet)); gtk_widget_get_screen (curr_data->applet));
Expand Down
6 changes: 3 additions & 3 deletions command/command.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ static void command_settings_callback (GtkAction *action, CommandApplet *command
static gboolean command_execute (CommandApplet *command_applet); static gboolean command_execute (CommandApplet *command_applet);


static const GtkActionEntry applet_menu_actions [] = { static const GtkActionEntry applet_menu_actions [] = {
{ "Preferences", GTK_STOCK_PROPERTIES, N_("_Preferences"), NULL, NULL, G_CALLBACK (command_settings_callback) }, { "Preferences", "document-properties", N_("_Preferences"), NULL, NULL, G_CALLBACK (command_settings_callback) },
{ "About", GTK_STOCK_ABOUT, N_("_About"), NULL, NULL, G_CALLBACK (command_about_callback) } { "About", "help-about", N_("_About"), NULL, NULL, G_CALLBACK (command_about_callback) }
}; };


static char *ui = "<menuitem name='Item 1' action='Preferences' />" static char *ui = "<menuitem name='Item 1' action='Preferences' />"
Expand Down Expand Up @@ -133,7 +133,7 @@ command_settings_callback (GtkAction *action, CommandApplet *command_applet)
dialog = GTK_DIALOG (gtk_dialog_new_with_buttons(_("Command Applet Preferences"), dialog = GTK_DIALOG (gtk_dialog_new_with_buttons(_("Command Applet Preferences"),
NULL, NULL,
GTK_DIALOG_MODAL, GTK_DIALOG_MODAL,
GTK_STOCK_CLOSE, "gtk-close",
GTK_RESPONSE_CLOSE, GTK_RESPONSE_CLOSE,
NULL)); NULL));
grid = GTK_GRID (gtk_grid_new ()); grid = GTK_GRID (gtk_grid_new ());
Expand Down
6 changes: 3 additions & 3 deletions cpufreq/src/cpufreq-applet.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ static const gchar* const cpufreq_icons[] = {
}; };


static const GtkActionEntry cpufreq_applet_menu_actions[] = { static const GtkActionEntry cpufreq_applet_menu_actions[] = {
{ "CPUFreqAppletPreferences", GTK_STOCK_PROPERTIES, N_("_Preferences"), { "CPUFreqAppletPreferences", "document-properties", N_("_Preferences"),
NULL, NULL, NULL, NULL,
G_CALLBACK (cpufreq_applet_preferences_cb) }, G_CALLBACK (cpufreq_applet_preferences_cb) },
{ "CPUFreqAppletHelp", GTK_STOCK_HELP, N_("_Help"), { "CPUFreqAppletHelp", "help-browser", N_("_Help"),
NULL, NULL, NULL, NULL,
G_CALLBACK (cpufreq_applet_help_cb) }, G_CALLBACK (cpufreq_applet_help_cb) },
{ "CPUFreqAppletAbout", GTK_STOCK_ABOUT, N_("_About"), { "CPUFreqAppletAbout", "help-about", N_("_About"),
NULL, NULL, NULL, NULL,
G_CALLBACK (cpufreq_applet_about_cb) } G_CALLBACK (cpufreq_applet_about_cb) }
}; };
Expand Down
4 changes: 2 additions & 2 deletions drivemount/drivemount.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ display_help (GtkAction *action,
} }


static const GtkActionEntry applet_menu_actions[] = { static const GtkActionEntry applet_menu_actions[] = {
{ "Help", GTK_STOCK_HELP, N_("_Help"), { "Help", "help-browser", N_("_Help"),
NULL, NULL, NULL, NULL,
G_CALLBACK (display_help) }, G_CALLBACK (display_help) },
{ "About", GTK_STOCK_ABOUT, N_("_About"), { "About", "help-about", N_("_About"),
NULL, NULL, NULL, NULL,
G_CALLBACK (display_about_dialog) } G_CALLBACK (display_about_dialog) }
}; };
Expand Down
6 changes: 3 additions & 3 deletions geyes/geyes.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -348,13 +348,13 @@ help_cb (GtkAction *action,




static const GtkActionEntry geyes_applet_menu_actions [] = { static const GtkActionEntry geyes_applet_menu_actions [] = {
{ "Props", GTK_STOCK_PROPERTIES, N_("_Preferences"), { "Props", "document-properties", N_("_Preferences"),
NULL, NULL, NULL, NULL,
G_CALLBACK (properties_cb) }, G_CALLBACK (properties_cb) },
{ "Help", GTK_STOCK_HELP, N_("_Help"), { "Help", "help-browser", N_("_Help"),
NULL, NULL, NULL, NULL,
G_CALLBACK (help_cb) }, G_CALLBACK (help_cb) },
{ "About", GTK_STOCK_ABOUT, N_("_About"), { "About", "help-about", N_("_About"),
NULL, NULL, NULL, NULL,
G_CALLBACK (about_cb) } G_CALLBACK (about_cb) }
}; };
Expand Down
4 changes: 2 additions & 2 deletions geyes/themes.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ properties_cb (GtkAction *action,


pbox = gtk_dialog_new_with_buttons (_("Geyes Preferences"), NULL, pbox = gtk_dialog_new_with_buttons (_("Geyes Preferences"), NULL,
GTK_DIALOG_DESTROY_WITH_PARENT, GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, "gtk-close", GTK_RESPONSE_CLOSE,
GTK_STOCK_HELP, GTK_RESPONSE_HELP, "gtk-help", GTK_RESPONSE_HELP,
NULL); NULL);


gtk_window_set_screen (GTK_WINDOW (pbox), gtk_window_set_screen (GTK_WINDOW (pbox),
Expand Down
8 changes: 4 additions & 4 deletions mateweather/mateweather-applet.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -108,16 +108,16 @@ static const GtkActionEntry weather_applet_menu_actions [] = {
{ "Details", NULL, N_("_Details"), { "Details", NULL, N_("_Details"),
NULL, NULL, NULL, NULL,
G_CALLBACK (details_cb) }, G_CALLBACK (details_cb) },
{ "Update", GTK_STOCK_REFRESH, N_("_Update"), { "Update", "view-refresh", N_("_Update"),
NULL, NULL, NULL, NULL,
G_CALLBACK (update_cb) }, G_CALLBACK (update_cb) },
{ "Props", GTK_STOCK_PROPERTIES, N_("_Preferences"), { "Props", "document-properties", N_("_Preferences"),
NULL, NULL, NULL, NULL,
G_CALLBACK (pref_cb) }, G_CALLBACK (pref_cb) },
{ "Help", GTK_STOCK_HELP, N_("_Help"), { "Help", "help-browser", N_("_Help"),
NULL, NULL, NULL, NULL,
G_CALLBACK (help_cb) }, G_CALLBACK (help_cb) },
{ "About", GTK_STOCK_ABOUT, N_("_About"), { "About", "help-about", N_("_About"),
NULL, NULL, NULL, NULL,
G_CALLBACK (about_cb) } G_CALLBACK (about_cb) }
}; };
Expand Down
2 changes: 1 addition & 1 deletion mateweather/mateweather-dialog.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ static void mateweather_dialog_create(MateWeatherDialog* dialog)
gtk_window_set_title (GTK_WINDOW (dialog), _("Details")); gtk_window_set_title (GTK_WINDOW (dialog), _("Details"));
gtk_dialog_add_buttons (GTK_DIALOG (dialog), gtk_dialog_add_buttons (GTK_DIALOG (dialog),
_("_Update"), GTK_RESPONSE_OK, _("_Update"), GTK_RESPONSE_OK,
GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, "gtk-close", GTK_RESPONSE_CLOSE,
NULL); NULL);
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CLOSE); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CLOSE);
gtk_container_set_border_width (GTK_CONTAINER (dialog), 5); gtk_container_set_border_width (GTK_CONTAINER (dialog), 5);
Expand Down
4 changes: 2 additions & 2 deletions mateweather/mateweather-pref.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ static void mateweather_pref_create(MateWeatherPref* pref)


g_object_set (pref, "destroy-with-parent", TRUE, NULL); g_object_set (pref, "destroy-with-parent", TRUE, NULL);
gtk_window_set_title (GTK_WINDOW (pref), _("Weather Preferences")); gtk_window_set_title (GTK_WINDOW (pref), _("Weather Preferences"));
gtk_dialog_add_buttons (GTK_DIALOG (pref), GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, GTK_STOCK_HELP, GTK_RESPONSE_HELP, NULL); gtk_dialog_add_buttons (GTK_DIALOG (pref), "gtk-close", GTK_RESPONSE_CLOSE, "gtk-help", GTK_RESPONSE_HELP, NULL);
gtk_dialog_set_default_response (GTK_DIALOG (pref), GTK_RESPONSE_CLOSE); gtk_dialog_set_default_response (GTK_DIALOG (pref), GTK_RESPONSE_CLOSE);
gtk_container_set_border_width (GTK_CONTAINER (pref), 5); gtk_container_set_border_width (GTK_CONTAINER (pref), 5);
gtk_window_set_resizable (GTK_WINDOW (pref), TRUE); gtk_window_set_resizable (GTK_WINDOW (pref), TRUE);
Expand Down Expand Up @@ -1130,7 +1130,7 @@ static void mateweather_pref_create(MateWeatherPref* pref)
pref->priv->find_next_btn = gtk_button_new_with_mnemonic (_("Find _Next")); pref->priv->find_next_btn = gtk_button_new_with_mnemonic (_("Find _Next"));
gtk_widget_set_sensitive (pref->priv->find_next_btn, FALSE); gtk_widget_set_sensitive (pref->priv->find_next_btn, FALSE);


image = gtk_image_new_from_stock (GTK_STOCK_FIND, GTK_ICON_SIZE_BUTTON); image = gtk_image_new_from_icon_name ("edit-find", GTK_ICON_SIZE_BUTTON);
gtk_button_set_image (GTK_BUTTON (pref->priv->find_next_btn), image); gtk_button_set_image (GTK_BUTTON (pref->priv->find_next_btn), image);


g_signal_connect (G_OBJECT (pref->priv->find_next_btn), "clicked", G_CALLBACK (find_next_clicked), pref); g_signal_connect (G_OBJECT (pref->priv->find_next_btn), "clicked", G_CALLBACK (find_next_clicked), pref);
Expand Down
8 changes: 4 additions & 4 deletions multiload/main.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -474,16 +474,16 @@ multiload_applet_refresh(MultiloadApplet *ma)
} }


static const GtkActionEntry multiload_menu_actions [] = { static const GtkActionEntry multiload_menu_actions [] = {
{ "MultiLoadProperties", GTK_STOCK_PROPERTIES, N_("_Preferences"), { "MultiLoadProperties", "document-properties", N_("_Preferences"),
NULL, NULL, NULL, NULL,
G_CALLBACK (multiload_properties_cb) }, G_CALLBACK (multiload_properties_cb) },
{ "MultiLoadRunProcman", GTK_STOCK_EXECUTE, N_("_Open System Monitor"), { "MultiLoadRunProcman", "system-run", N_("_Open System Monitor"),
NULL, NULL, NULL, NULL,
G_CALLBACK (start_procman_cb) }, G_CALLBACK (start_procman_cb) },
{ "MultiLoadHelp", GTK_STOCK_HELP, N_("_Help"), { "MultiLoadHelp", "help-browser", N_("_Help"),
NULL, NULL, NULL, NULL,
G_CALLBACK (help_cb) }, G_CALLBACK (help_cb) },
{ "MultiLoadAbout", GTK_STOCK_ABOUT, N_("_About"), { "MultiLoadAbout", "help-about", N_("_About"),
NULL, NULL, NULL, NULL,
G_CALLBACK (about_cb) } G_CALLBACK (about_cb) }
}; };
Expand Down
4 changes: 2 additions & 2 deletions multiload/properties.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -817,8 +817,8 @@ multiload_properties_cb (GtkAction *action,


dialog = gtk_dialog_new_with_buttons (_("System Monitor Preferences"), dialog = gtk_dialog_new_with_buttons (_("System Monitor Preferences"),
NULL, 0, NULL, 0,
GTK_STOCK_HELP, GTK_RESPONSE_HELP, "gtk-help", GTK_RESPONSE_HELP,
GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, "gtk-close", GTK_RESPONSE_CLOSE,
NULL); NULL);
gtk_window_set_screen (GTK_WINDOW (dialog), gtk_window_set_screen (GTK_WINDOW (dialog),
gtk_widget_get_screen (GTK_WIDGET (ma->applet))); gtk_widget_get_screen (GTK_WIDGET (ma->applet)));
Expand Down
16 changes: 8 additions & 8 deletions netspeed/src/netspeed.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -958,8 +958,8 @@ settings_cb(GtkAction *action, gpointer data)
applet->settings = GTK_DIALOG(gtk_dialog_new_with_buttons(_("Mate Netspeed Preferences"), applet->settings = GTK_DIALOG(gtk_dialog_new_with_buttons(_("Mate Netspeed Preferences"),
NULL, NULL,
GTK_DIALOG_DESTROY_WITH_PARENT, GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_HELP, GTK_RESPONSE_HELP, "gtk-help", GTK_RESPONSE_HELP,
GTK_STOCK_CLOSE, GTK_RESPONSE_ACCEPT, "gtk-close", GTK_RESPONSE_ACCEPT,
NULL)); NULL));


gtk_window_set_resizable(GTK_WINDOW(applet->settings), FALSE); gtk_window_set_resizable(GTK_WINDOW(applet->settings), FALSE);
Expand Down Expand Up @@ -1166,8 +1166,8 @@ showinfo_cb(GtkAction *action, gpointer data)
applet->details = GTK_DIALOG(gtk_dialog_new_with_buttons(title, applet->details = GTK_DIALOG(gtk_dialog_new_with_buttons(title,
NULL, NULL,
GTK_DIALOG_DESTROY_WITH_PARENT, GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_CLOSE, GTK_RESPONSE_ACCEPT, "gtk-close", GTK_RESPONSE_ACCEPT,
GTK_STOCK_HELP, GTK_RESPONSE_HELP, "gtk-help", GTK_RESPONSE_HELP,
NULL)); NULL));
g_free(title); g_free(title);


Expand Down Expand Up @@ -1340,13 +1340,13 @@ showinfo_cb(GtkAction *action, gpointer data)
} }


static const GtkActionEntry mate_netspeed_applet_menu_actions [] = { static const GtkActionEntry mate_netspeed_applet_menu_actions [] = {
{ "MateNetspeedAppletDetails", GTK_STOCK_INFO, N_("Device _Details"), { "MateNetspeedAppletDetails", "dialog-information", N_("Device _Details"),
NULL, NULL, G_CALLBACK (showinfo_cb) }, NULL, NULL, G_CALLBACK (showinfo_cb) },
{ "MateNetspeedAppletProperties", GTK_STOCK_PROPERTIES, N_("Preferences..."), { "MateNetspeedAppletProperties", "document-properties", N_("Preferences..."),
NULL, NULL, G_CALLBACK (settings_cb) }, NULL, NULL, G_CALLBACK (settings_cb) },
{ "MateNetspeedAppletHelp", GTK_STOCK_HELP, N_("Help"), { "MateNetspeedAppletHelp", "help-browser", N_("Help"),
NULL, NULL, G_CALLBACK (help_cb) }, NULL, NULL, G_CALLBACK (help_cb) },
{ "MateNetspeedAppletAbout", GTK_STOCK_ABOUT, N_("About..."), { "MateNetspeedAppletAbout", "help-about", N_("About..."),
NULL, NULL, G_CALLBACK (about_cb) } NULL, NULL, G_CALLBACK (about_cb) }
}; };


Expand Down
10 changes: 5 additions & 5 deletions stickynotes/stickynotes_applet.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@ StickyNotes *stickynotes = NULL;
/* Popup menu on the applet */ /* Popup menu on the applet */
static const GtkActionEntry stickynotes_applet_menu_actions[] = static const GtkActionEntry stickynotes_applet_menu_actions[] =
{ {
{ "new_note", GTK_STOCK_NEW, N_("_New Note"), { "new_note", "document-new", N_("_New Note"),
NULL, NULL, NULL, NULL,
G_CALLBACK (menu_new_note_cb) }, G_CALLBACK (menu_new_note_cb) },
{ "hide_notes", NULL, N_("Hi_de Notes"), { "hide_notes", NULL, N_("Hi_de Notes"),
NULL, NULL, NULL, NULL,
G_CALLBACK (menu_hide_notes_cb) }, G_CALLBACK (menu_hide_notes_cb) },
{ "destroy_all", GTK_STOCK_DELETE, N_("_Delete Notes"), { "destroy_all", "edit-delete", N_("_Delete Notes"),
NULL, NULL, NULL, NULL,
G_CALLBACK (menu_destroy_all_cb) }, G_CALLBACK (menu_destroy_all_cb) },
{ "preferences", GTK_STOCK_PROPERTIES, N_("_Preferences"), { "preferences", "document-properties", N_("_Preferences"),
NULL, NULL, NULL, NULL,
G_CALLBACK (menu_preferences_cb) }, G_CALLBACK (menu_preferences_cb) },
{ "help", GTK_STOCK_HELP, N_("_Help"), { "help", "help-browser", N_("_Help"),
NULL, NULL, NULL, NULL,
G_CALLBACK (menu_help_cb) }, G_CALLBACK (menu_help_cb) },
{ "about", GTK_STOCK_ABOUT, N_("_About"), { "about", "help-about", N_("_About"),
NULL, NULL, NULL, NULL,
G_CALLBACK (menu_about_cb) } G_CALLBACK (menu_about_cb) }
}; };
Expand Down
Loading

0 comments on commit 607d522

Please sign in to comment.