user-accounts: use junction sides to connect toolbar and list

This commit is contained in:
William Jon McCann 2011-01-26 15:08:15 -05:00
parent 4fe7c98d8c
commit 053f0f3709
2 changed files with 4 additions and 8 deletions

View file

@ -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>

View file

@ -1199,12 +1199,6 @@ setup_main_window (UmUserPanelPrivate *d)
g_object_unref (icon);
}
static void
add_class (GtkStyleContext *context)
{
gtk_style_context_add_class (context, "internal-toolbar");
}
static void
um_user_panel_init (UmUserPanel *self)
{
@ -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