toolbar: don't forget to set orientable style classes

So that themes can select for vertical toolbars.
This commit is contained in:
Cosimo Cecchi 2012-10-10 11:36:28 -04:00
parent 04b412079a
commit a5ddbaf1f8

View File

@ -44,6 +44,7 @@
#include "gtkmarshalers.h"
#include "gtkmenu.h"
#include "gtkorientable.h"
#include "gtkorientableprivate.h"
#include "gtkradiobutton.h"
#include "gtkradiotoolbutton.h"
#include "gtkseparatormenuitem.h"
@ -2578,6 +2579,7 @@ gtk_toolbar_orientation_changed (GtkToolbar *toolbar,
gtk_toolbar_reconfigured (toolbar);
_gtk_orientable_set_style_classes (GTK_ORIENTABLE (toolbar));
gtk_widget_queue_resize (GTK_WIDGET (toolbar));
g_object_notify (G_OBJECT (toolbar), "orientation");
}