* tests/testmerge.c (add_widget): Put toolbars in handleboxes.
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.
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.
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.
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.
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.
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);
}