[gnome-control-center/wip/feborges/new-users-panel: 7/17] user-accounts: Drop user image border and background



commit 42138f88d41e61772e9f30a9de2a10cf80e3af37
Author: Felipe Borges <felipeborges gnome org>
Date:   Sat Jul 9 12:03:13 2016 +0200

    user-accounts: Drop user image border and background
    
    The UmArrowFrame pointing at the user avatar is the indicator of
    which user is selected. According to the mockups at
    https://wiki.gnome.org/Design/SystemSettings/UserAccounts
    
    https://bugzilla.gnome.org/show_bug.cgi?id=767065

 panels/user-accounts/um-carousel.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/panels/user-accounts/um-carousel.c b/panels/user-accounts/um-carousel.c
index ffc382c..1e84de7 100644
--- a/panels/user-accounts/um-carousel.c
+++ b/panels/user-accounts/um-carousel.c
@@ -75,12 +75,20 @@ create_item (UmCarousel *self,
              GtkWidget  *child,
              gint        position)
 {
+        GtkStyleProvider *provider;
         UmCarouselPrivate *priv;
         GtkWidget *item;
 
         priv = self->priv;
 
         item = gtk_radio_button_new (NULL);
+
+        provider = GTK_STYLE_PROVIDER (gtk_css_provider_new ());
+        gtk_css_provider_load_from_data (GTK_CSS_PROVIDER (provider), "* {border: 0; background: none }", 
-1, NULL);
+        gtk_style_context_add_provider (gtk_widget_get_style_context (item), provider, 
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+
+        g_object_unref (provider);
+
         g_signal_connect (item, "toggled", G_CALLBACK (on_item_toggled), self);
         g_object_set_data (G_OBJECT (item), "position", GINT_TO_POINTER (position));
 


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