[gnome-control-center] user-accounts: use junction sides to connect toolbar and list
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] user-accounts: use junction sides to connect toolbar and list
- Date: Wed, 26 Jan 2011 20:38:22 +0000 (UTC)
commit 053f0f37092f66e21dc97b5f38a387fce86e8be4
Author: William Jon McCann <jmccann redhat com>
Date: Wed Jan 26 15:08:15 2011 -0500
user-accounts: use junction sides to connect toolbar and list
panels/user-accounts/data/user-accounts-dialog.ui | 2 +-
panels/user-accounts/um-user-panel.c | 10 +++-------
2 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/panels/user-accounts/data/user-accounts-dialog.ui b/panels/user-accounts/data/user-accounts-dialog.ui
index 2075765..76fc63e 100644
--- a/panels/user-accounts/data/user-accounts-dialog.ui
+++ b/panels/user-accounts/data/user-accounts-dialog.ui
@@ -61,7 +61,7 @@
<property name="orientation">vertical</property>
<property name="spacing">0</property>
<child>
- <object class="GtkScrolledWindow" id="scrolledwindow1">
+ <object class="GtkScrolledWindow" id="list-scrolledwindow">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">never</property>
diff --git a/panels/user-accounts/um-user-panel.c b/panels/user-accounts/um-user-panel.c
index 6949008..b073256 100644
--- a/panels/user-accounts/um-user-panel.c
+++ b/panels/user-accounts/um-user-panel.c
@@ -1200,12 +1200,6 @@ setup_main_window (UmUserPanelPrivate *d)
}
static void
-add_class (GtkStyleContext *context)
-{
- gtk_style_context_add_class (context, "internal-toolbar");
-}
-
-static void
um_user_panel_init (UmUserPanel *self)
{
UmUserPanelPrivate *d;
@@ -1249,8 +1243,10 @@ um_user_panel_init (UmUserPanel *self)
d->main_box = get_widget (d, "accounts-vbox");
gtk_widget_reparent (d->main_box, GTK_WIDGET (self));
+ context = gtk_widget_get_style_context (get_widget (d, "list-scrolledwindow"));
+ gtk_style_context_set_junction_sides (context, GTK_JUNCTION_BOTTOM);
context = gtk_widget_get_style_context (get_widget (d, "add-remove-toolbar"));
- g_signal_connect (context, "changed", G_CALLBACK (add_class), NULL);
+ gtk_style_context_set_junction_sides (context, GTK_JUNCTION_TOP);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]