forked from AuroraMiddleware/gtk
box: set orientation style classes when setting orientation
Since we override the property, we have to call the internal helper manually.
This commit is contained in:
parent
25695684ad
commit
f900df6f01
@ -81,6 +81,7 @@
|
||||
#include "gtkboxprivate.h"
|
||||
#include "gtkintl.h"
|
||||
#include "gtkorientable.h"
|
||||
#include "gtkorientableprivate.h"
|
||||
#include "gtkprivate.h"
|
||||
#include "gtktypebuiltins.h"
|
||||
#include "gtksizerequest.h"
|
||||
@ -354,6 +355,7 @@ gtk_box_set_property (GObject *object,
|
||||
{
|
||||
case PROP_ORIENTATION:
|
||||
private->orientation = g_value_get_enum (value);
|
||||
_gtk_orientable_set_style_classes (GTK_ORIENTABLE (box));
|
||||
gtk_widget_queue_resize (GTK_WIDGET (box));
|
||||
break;
|
||||
case PROP_SPACING:
|
||||
|
Loading…
Reference in New Issue
Block a user