summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mate-panel/panel-applet-frame.c4
-rw-r--r--mate-panel/panel-force-quit.c6
-rw-r--r--mate-panel/panel-recent.c6
-rw-r--r--mate-panel/panel-stock-icons.c10
4 files changed, 8 insertions, 18 deletions
diff --git a/mate-panel/panel-applet-frame.c b/mate-panel/panel-applet-frame.c
index 2b0e4b7f..cadd81aa 100644
--- a/mate-panel/panel-applet-frame.c
+++ b/mate-panel/panel-applet-frame.c
@@ -962,8 +962,8 @@ mate_panel_applet_frame_loading_failed (const char *iid,
_("Do you want to delete the applet "
"from your configuration?"));
- gtk_dialog_add_button (GTK_DIALOG (dialog),
- PANEL_STOCK_DONT_DELETE, LOADING_FAILED_RESPONSE_DONT_DELETE);
+ panel_dialog_add_button (GTK_DIALOG (dialog),
+ _("_Don't Delete"), "gtk-cancel", LOADING_FAILED_RESPONSE_DONT_DELETE);
panel_dialog_add_button (GTK_DIALOG (dialog),
_("_Delete"), "edit-delete", LOADING_FAILED_RESPONSE_DELETE);
diff --git a/mate-panel/panel-force-quit.c b/mate-panel/panel-force-quit.c
index 13b0139f..50a3be7d 100644
--- a/mate-panel/panel-force-quit.c
+++ b/mate-panel/panel-force-quit.c
@@ -249,9 +249,9 @@ kill_window_question (gpointer window)
_("_Cancel"), "process-stop",
GTK_RESPONSE_CANCEL);
- gtk_dialog_add_button (GTK_DIALOG (dialog),
- PANEL_STOCK_FORCE_QUIT,
- GTK_RESPONSE_ACCEPT);
+ panel_dialog_add_button (GTK_DIALOG (dialog),
+ _("_Force Quit"), "process-stop",
+ GTK_RESPONSE_ACCEPT);
gtk_dialog_set_default_response (GTK_DIALOG (dialog),
GTK_RESPONSE_CANCEL);
diff --git a/mate-panel/panel-recent.c b/mate-panel/panel-recent.c
index 2ed4715e..5fe25ddb 100644
--- a/mate-panel/panel-recent.c
+++ b/mate-panel/panel-recent.c
@@ -156,9 +156,9 @@ recent_documents_clear_cb (GtkMenuItem *menuitem,
_("_Cancel"), "process-stop",
GTK_RESPONSE_CANCEL);
- gtk_dialog_add_button (GTK_DIALOG (clear_recent_dialog),
- PANEL_STOCK_CLEAR,
- GTK_RESPONSE_ACCEPT);
+ panel_dialog_add_button (GTK_DIALOG (clear_recent_dialog),
+ _("_Clear"), "edit-clear",
+ GTK_RESPONSE_ACCEPT);
gtk_container_set_border_width (GTK_CONTAINER (clear_recent_dialog), 6);
diff --git a/mate-panel/panel-stock-icons.c b/mate-panel/panel-stock-icons.c
index 8e124709..87fa80be 100644
--- a/mate-panel/panel-stock-icons.c
+++ b/mate-panel/panel-stock-icons.c
@@ -103,28 +103,18 @@ static PanelStockItem stock_items [] = {
static void
panel_init_stock_items (GtkIconFactory *factory)
{
- GtkStockItem *items;
gsize n_items;
gsize i;
n_items = G_N_ELEMENTS (stock_items);
- items = g_new (GtkStockItem, n_items);
for (i = 0; i < n_items; i++) {
GtkIconSet *icon_set;
- items [i].stock_id = g_strdup (stock_items [i].stock_id);
- items [i].label = g_strdup (stock_items [i].label);
- items [i].modifier = 0;
- items [i].keyval = 0;
- items [i].translation_domain = g_strdup (GETTEXT_PACKAGE);
-
/* FIXME: does this take into account the theme? */
icon_set = gtk_icon_factory_lookup_default (stock_items [i].stock_icon_id);
gtk_icon_factory_add (factory, stock_items [i].stock_id, icon_set);
}
-
- gtk_stock_add_static (items, n_items);
}
void