[gnome-photos] main-toolbar: use the new generic style classes for selection mode



commit 1998c786f47acd346ceba6d41d1db05bfc0d6360
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Aug 16 20:39:18 2012 +0200

    main-toolbar: use the new generic style classes for selection mode

 src/photos-main-toolbar.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-main-toolbar.c b/src/photos-main-toolbar.c
index 4faa57c..b13ff57 100644
--- a/src/photos-main-toolbar.c
+++ b/src/photos-main-toolbar.c
@@ -199,7 +199,7 @@ photos_main_toolbar_clear_toolbar (PhotosMainToolbar *self)
 
   photos_main_toolbar_clear_state_data (self);
   context = gtk_widget_get_style_context (priv->widget);
-  gtk_style_context_remove_class (context, "documents-selection-mode");
+  gtk_style_context_remove_class (context, "selection-mode");
   gtk_widget_reset_style (priv->widget);
   gd_main_toolbar_clear (GD_MAIN_TOOLBAR (priv->widget));
 }
@@ -295,10 +295,12 @@ photos_main_toolbar_populate_for_selection_mode (PhotosMainToolbar *self)
   GtkWidget *selection_button;
 
   context = gtk_widget_get_style_context (priv->widget);
-  gtk_style_context_add_class (context, "documents-selection-mode");
+  gtk_style_context_add_class (context, "selection-mode");
   gtk_widget_reset_style (priv->widget);
 
   selection_button = gd_main_toolbar_add_button (GD_MAIN_TOOLBAR (priv->widget), NULL, _("Done"), FALSE);
+  context = gtk_widget_get_style_context (selection_button);
+  gtk_style_context_add_class (context, "suggested-action");
   g_signal_connect (selection_button, "clicked", G_CALLBACK (photos_main_toolbar_done_button_clicked), self);
 
   priv->selection_changed_id = g_signal_connect_swapped (priv->sel_cntrlr,



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