user-accounts: Do not access already removed toolbar

Commit eb9c110 removed add-remove-toolbar, however, some leftovers are
in the code which causes the following errors:
Gtk-CRITICAL **: gtk_widget_get_style_context: assertion 'GTK_IS_WIDGET (widget)' failed
Gtk-CRITICAL **: gtk_style_context_set_junction_sides: assertion 'GTK_IS_STYLE_CONTEXT (context)' failed

https://bugzilla.gnome.org/show_bug.cgi?id=767065
This commit is contained in:
Ondrej Holy 2016-07-27 14:36:50 +02:00 committed by Felipe Borges
parent 61e00d0172
commit 8e8d00541b

View file

@ -1790,11 +1790,6 @@ cc_user_panel_init (CcUserPanel *self)
gtk_container_add (GTK_CONTAINER (self), get_widget (d, "overlay"));
d->history_dialog = um_history_dialog_new ();
setup_main_window (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"));
gtk_style_context_set_junction_sides (context, GTK_JUNCTION_TOP);
}
static void