box gadget: Redo expand flag handling
We only keep one align flag per child, so it seems odd to keep separate h/v expand flags. Just keep one expand flag and interpret it according to orientation. Allow setting the expand flag for child widgets too, though, so we can make widget expand without interfering with the recursive widget expand flag. Update all callers. Use the new possibility of expanding child widgets to make the label of check and radio buttons expand. This fixes unexpected behavior of these widgets in RTL in some places. https://bugzilla.gnome.org/show_bug.cgi?id=765742
This commit is contained in:
		| @ -73,20 +73,17 @@ void                    gtk_box_gadget_remove_widget            (GtkBoxGadget | ||||
| void                    gtk_box_gadget_insert_gadget            (GtkBoxGadget           *gadget, | ||||
|                                                                  int                     pos, | ||||
|                                                                  GtkCssGadget           *cssgadget, | ||||
|                                                                  gboolean                hexpand, | ||||
|                                                                  gboolean                vexpand, | ||||
|                                                                  gboolean                expand, | ||||
|                                                                  GtkAlign                align); | ||||
| void                    gtk_box_gadget_insert_gadget_before     (GtkBoxGadget           *gadget, | ||||
|                                                                  GtkCssGadget           *sibling, | ||||
|                                                                  GtkCssGadget           *cssgadget, | ||||
|                                                                  gboolean                hexpand, | ||||
|                                                                  gboolean                vexpand, | ||||
|                                                                  gboolean                expand, | ||||
|                                                                  GtkAlign                align); | ||||
| void                    gtk_box_gadget_insert_gadget_after      (GtkBoxGadget           *gadget, | ||||
|                                                                  GtkCssGadget           *sibling, | ||||
|                                                                  GtkCssGadget           *cssgadget, | ||||
|                                                                  gboolean                hexpand, | ||||
|                                                                  gboolean                vexpand, | ||||
|                                                                  gboolean                expand, | ||||
|                                                                  GtkAlign                align); | ||||
|  | ||||
| void                    gtk_box_gadget_remove_gadget            (GtkBoxGadget           *gadget, | ||||
| @ -94,11 +91,10 @@ void                    gtk_box_gadget_remove_gadget            (GtkBoxGadget | ||||
| void                    gtk_box_gadget_reverse_children         (GtkBoxGadget           *gadget); | ||||
|  | ||||
| void                    gtk_box_gadget_set_gadget_expand        (GtkBoxGadget           *gadget, | ||||
|                                                                  GtkCssGadget           *cssgadget, | ||||
|                                                                  gboolean                hexpand, | ||||
|                                                                  gboolean                vexpand); | ||||
|                                                                  GObject                *object, | ||||
|                                                                  gboolean                expand); | ||||
| void                    gtk_box_gadget_set_gadget_align         (GtkBoxGadget           *gadget, | ||||
|                                                                  GtkCssGadget           *cssgadget, | ||||
|                                                                  GObject                *object, | ||||
|                                                                  GtkAlign                align); | ||||
|  | ||||
| G_END_DECLS | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Matthias Clasen
					Matthias Clasen