[gnome-photos] header-bar: Add the "titlebar" style class for rounded corners



commit 4ccd55bb4363a2c4e93edd443452828f434fcf94
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Sep 13 14:37:56 2013 +0200

    header-bar: Add the "titlebar" style class for rounded corners

 src/photos-header-bar.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-header-bar.c b/src/photos-header-bar.c
index f5b60f2..8b45985 100644
--- a/src/photos-header-bar.c
+++ b/src/photos-header-bar.c
@@ -69,10 +69,14 @@ static void
 photos_header_bar_init (PhotosHeaderBar *self)
 {
   PhotosHeaderBarPrivate *priv;
+  GtkStyleContext *context;
 
   self->priv = photos_header_bar_get_instance_private (self);
   priv = self->priv;
 
+  context = gtk_widget_get_style_context (GTK_WIDGET (self));
+  gtk_style_context_add_class (context, "titlebar");
+
   priv->stack_switcher = g_object_ref_sink (gtk_stack_switcher_new ());
   gtk_widget_show (priv->stack_switcher);
   gtk_widget_set_no_show_all (priv->stack_switcher, TRUE);


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