mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
Put toolbars in handleboxes.
* tests/testmerge.c (add_widget): Put toolbars in handleboxes.
This commit is contained in:
parent
d536cdde02
commit
e430c2439a
@ -1,5 +1,7 @@
|
||||
2003-08-30 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* tests/testmerge.c (add_widget): Put toolbars in handleboxes.
|
||||
|
||||
* gtk/gtkuimanager.[hc]: Add a boolean property, "add_tearoffs" with
|
||||
setter and getter. If it is set, add tearoff menu items to regular
|
||||
menus, but not to popups.
|
||||
|
@ -1,5 +1,7 @@
|
||||
2003-08-30 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* tests/testmerge.c (add_widget): Put toolbars in handleboxes.
|
||||
|
||||
* gtk/gtkuimanager.[hc]: Add a boolean property, "add_tearoffs" with
|
||||
setter and getter. If it is set, add tearoff menu items to regular
|
||||
menus, but not to popups.
|
||||
|
@ -1,5 +1,7 @@
|
||||
2003-08-30 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* tests/testmerge.c (add_widget): Put toolbars in handleboxes.
|
||||
|
||||
* gtk/gtkuimanager.[hc]: Add a boolean property, "add_tearoffs" with
|
||||
setter and getter. If it is set, add tearoff menu items to regular
|
||||
menus, but not to popups.
|
||||
|
@ -1,5 +1,7 @@
|
||||
2003-08-30 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* tests/testmerge.c (add_widget): Put toolbars in handleboxes.
|
||||
|
||||
* gtk/gtkuimanager.[hc]: Add a boolean property, "add_tearoffs" with
|
||||
setter and getter. If it is set, add tearoff menu items to regular
|
||||
menus, but not to popups.
|
||||
|
@ -1,5 +1,7 @@
|
||||
2003-08-30 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* tests/testmerge.c (add_widget): Put toolbars in handleboxes.
|
||||
|
||||
* gtk/gtkuimanager.[hc]: Add a boolean property, "add_tearoffs" with
|
||||
setter and getter. If it is set, add tearoff menu items to regular
|
||||
menus, but not to popups.
|
||||
|
@ -103,7 +103,19 @@ add_widget (GtkUIManager *merge,
|
||||
GtkWidget *widget,
|
||||
GtkBox *box)
|
||||
{
|
||||
gtk_box_pack_start (box, widget, FALSE, FALSE, 0);
|
||||
GtkWidget *handle_box;
|
||||
|
||||
if (GTK_IS_TOOLBAR (widget))
|
||||
{
|
||||
handle_box = gtk_handle_box_new ();
|
||||
gtk_widget_show (handle_box);
|
||||
gtk_container_add (GTK_CONTAINER (handle_box), widget);
|
||||
gtk_box_pack_start (box, handle_box, FALSE, FALSE, 0);
|
||||
g_signal_connect (handle_box, "remove", gtk_widget_destroy, 0);
|
||||
}
|
||||
else
|
||||
gtk_box_pack_start (box, widget, FALSE, FALSE, 0);
|
||||
|
||||
gtk_widget_show (widget);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user