[gnome-control-center/gsoc2011/location: 4/10] [location] better styling of the inline toolbar
- From: StÃphane Maniaci <maniacis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gsoc2011/location: 4/10] [location] better styling of the inline toolbar
- Date: Fri, 8 Jul 2011 16:39:29 +0000 (UTC)
commit cabfddad055e092b03d5bee57b719e0536af3281
Author: StÃphane Maniaci <stephane maniaci gmail com>
Date: Wed Jul 6 00:06:30 2011 +0200
[location] better styling of the inline toolbar
panels/location/cc-location-panel.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/panels/location/cc-location-panel.c b/panels/location/cc-location-panel.c
index 3648a03..45cbd11 100644
--- a/panels/location/cc-location-panel.c
+++ b/panels/location/cc-location-panel.c
@@ -97,7 +97,7 @@ cc_location_panel_init (CcLocationPanel *self)
{
GError *error;
GtkWidget *widget;
-
+ GtkStyleContext *context;
self->priv = LOCATION_PANEL_PRIVATE (self);
self->priv->builder = gtk_builder_new ();
@@ -114,6 +114,15 @@ cc_location_panel_init (CcLocationPanel *self)
return;
}
+ widget = WID ("locations-scrolledwindow");
+ context = gtk_widget_get_style_context (widget);
+ gtk_style_context_set_junction_sides (context, GTK_JUNCTION_BOTTOM);
+
+ widget = WID ("location-edit-toolbar");
+ context = gtk_widget_get_style_context (widget);
+ gtk_style_context_add_class (context, "inline-toolbar");
+ gtk_style_context_set_junction_sides (context, GTK_JUNCTION_TOP);
+
widget = WID ("location-vbox");
gtk_widget_reparent (widget, (GtkWidget *) self);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]