[gnome-control-center] keyboard: use attached toolbar pattern



commit 2723a3b51e183f4b3c749a498b2d058f31995595
Author: William Jon McCann <jmccann redhat com>
Date:   Wed Jan 26 16:47:43 2011 -0500

    keyboard: use attached toolbar pattern

 panels/keyboard/keyboard-shortcuts.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/panels/keyboard/keyboard-shortcuts.c b/panels/keyboard/keyboard-shortcuts.c
index 3607145..40330a4 100644
--- a/panels/keyboard/keyboard-shortcuts.c
+++ b/panels/keyboard/keyboard-shortcuts.c
@@ -1851,6 +1851,7 @@ setup_dialog (CcPanel *panel, GtkBuilder *builder)
   CcShell *shell;
   GtkListStore *model;
   GtkTreeModelSort *sort_model;
+  GtkStyleContext *context;
 
   gtk_widget_set_size_request (GTK_WIDGET (panel), -1, 400);
 
@@ -1950,6 +1951,13 @@ setup_dialog (CcPanel *panel, GtkBuilder *builder)
   gtk_tree_view_set_model (treeview, GTK_TREE_MODEL (model));
   g_object_unref (model);
 
+  widget = GTK_WIDGET (gtk_builder_get_object (builder, "actions_swindow"));
+  context = gtk_widget_get_style_context (widget);
+  gtk_style_context_set_junction_sides (context, GTK_JUNCTION_BOTTOM);
+  widget = GTK_WIDGET (gtk_builder_get_object (builder, "shortcut-toolbar"));
+  context = gtk_widget_get_style_context (widget);
+  gtk_style_context_set_junction_sides (context, GTK_JUNCTION_TOP);
+
   /* set up the dialog */
   shell = cc_panel_get_shell (CC_PANEL (panel));
   widget = cc_shell_get_toplevel (shell);



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