[gnome-online-accounts] utils: Remove the warning icon from the needs-attention GtkInfoBar



commit b8ba1c3bad3a5aad5fdbd332fd4faf8711e046b0
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Jun 2 16:55:54 2017 +0200

    utils: Remove the warning icon from the needs-attention GtkInfoBar
    
    The mockups [1] don't have the dialog-warning icon anymore.
    
    [1] 
https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/master/system-settings/online-accounts/aday-alt/online-accounts-account-dialogs.png
    
    https://bugzilla.gnome.org/show_bug.cgi?id=779368

 src/goabackend/goautils.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)
---
diff --git a/src/goabackend/goautils.c b/src/goabackend/goautils.c
index 8c6ce71..d64e464 100644
--- a/src/goabackend/goautils.c
+++ b/src/goabackend/goautils.c
@@ -111,8 +111,6 @@ goa_utils_account_add_attention_needed (GoaClient *client, GoaObject *object, Go
   AttentionNeededData *data;
   GoaAccount *account;
   GtkWidget *content_area;
-  GtkWidget *grid;
-  GtkWidget *image;
   GtkWidget *info_bar;
   GtkWidget *label;
   GtkWidget *labels_grid;
@@ -126,15 +124,6 @@ goa_utils_account_add_attention_needed (GoaClient *client, GoaObject *object, Go
 
   content_area = gtk_info_bar_get_content_area (GTK_INFO_BAR (info_bar));
 
-  grid = gtk_grid_new ();
-  gtk_orientable_set_orientation (GTK_ORIENTABLE (grid), GTK_ORIENTATION_HORIZONTAL);
-  gtk_grid_set_column_spacing (GTK_GRID (grid), 12);
-  gtk_container_add (GTK_CONTAINER (content_area), grid);
-
-  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);
-
   labels_grid = gtk_grid_new ();
   gtk_widget_set_halign (labels_grid, GTK_ALIGN_FILL);
   gtk_widget_set_hexpand (labels_grid, TRUE);
@@ -142,7 +131,7 @@ goa_utils_account_add_attention_needed (GoaClient *client, GoaObject *object, Go
   gtk_widget_set_margin_end (labels_grid, 12);
   gtk_orientable_set_orientation (GTK_ORIENTABLE (labels_grid), GTK_ORIENTATION_VERTICAL);
   gtk_grid_set_column_spacing (GTK_GRID (labels_grid), 0);
-  gtk_container_add (GTK_CONTAINER (grid), labels_grid);
+  gtk_container_add (GTK_CONTAINER (content_area), labels_grid);
 
   label = gtk_label_new (_("Credentials have expired."));
   gtk_widget_set_halign (label, GTK_ALIGN_START);


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