[gnome-control-center] online-accounts: drop GtkStock



commit a9f6f69f7029e8d00da6ce64baa3b1b33912aa36
Author: Yosef Or Boczko <yoseforb gmail com>
Date:   Fri Jul 19 15:57:12 2013 +0300

    online-accounts: drop GtkStock
    
    https://bugzilla.gnome.org/show_bug.cgi?id=704178

 .../cc-online-accounts-add-account-dialog.c        |    2 +-
 panels/online-accounts/cc-online-accounts-panel.c  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/panels/online-accounts/cc-online-accounts-add-account-dialog.c 
b/panels/online-accounts/cc-online-accounts-add-account-dialog.c
index 32d22bc..7672e7c 100644
--- a/panels/online-accounts/cc-online-accounts-add-account-dialog.c
+++ b/panels/online-accounts/cc-online-accounts-add-account-dialog.c
@@ -352,7 +352,7 @@ goa_panel_add_account_dialog_init (GoaPanelAddAccountDialog *add_account)
 
   gtk_stack_set_visible_child_name (GTK_STACK (priv->stack), BRANDED_PAGE);
 
-  gtk_dialog_add_button (GTK_DIALOG (add_account), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
+  gtk_dialog_add_button (GTK_DIALOG (add_account), _("_Cancel"), GTK_RESPONSE_CANCEL);
   gtk_dialog_set_default_response (GTK_DIALOG (add_account), GTK_RESPONSE_CANCEL);
 }
 
diff --git a/panels/online-accounts/cc-online-accounts-panel.c 
b/panels/online-accounts/cc-online-accounts-panel.c
index acaff10..58bac85 100644
--- a/panels/online-accounts/cc-online-accounts-panel.c
+++ b/panels/online-accounts/cc-online-accounts-panel.c
@@ -482,7 +482,7 @@ show_page_account (CcGoaPanel  *panel,
       gtk_orientable_set_orientation (GTK_ORIENTABLE (grid), GTK_ORIENTATION_HORIZONTAL);
       gtk_grid_set_column_spacing (GTK_GRID (grid), 12);
 
-      image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_WARNING, GTK_ICON_SIZE_SMALL_TOOLBAR);
+      image = gtk_image_new_from_icon_name ("dialog-warning", GTK_ICON_SIZE_SMALL_TOOLBAR);
       gtk_widget_set_valign (image, GTK_ALIGN_CENTER);
       gtk_container_add (GTK_CONTAINER (grid), image);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]