From 9ca1e3a01975052dd88030badd34bd9a38441756 Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Wed, 18 Jun 2008 04:13:17 +0000 Subject: Conversion to toolbars and preserve size upon undock (bzr r5981) --- src/widgets/select-toolbar.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/widgets/select-toolbar.cpp') diff --git a/src/widgets/select-toolbar.cpp b/src/widgets/select-toolbar.cpp index afe755da4..30d52cbae 100644 --- a/src/widgets/select-toolbar.cpp +++ b/src/widgets/select-toolbar.cpp @@ -508,7 +508,13 @@ void sp_select_toolbox_prep(SPDesktop *desktop, GtkActionGroup* mainActions, GOb } // Insert spw into the toolbar. - gtk_box_pack_start(GTK_BOX(holder), spw, FALSE, FALSE, 0); + if ( GTK_IS_BOX(holder) ) { + gtk_box_pack_start(GTK_BOX(holder), spw, FALSE, FALSE, 0); + } else if ( GTK_IS_TOOLBAR(holder) ) { + gtk_toolbar_append_widget( GTK_TOOLBAR(holder), spw, "Text", "priv" ); + } else { + g_warning("Unexpected holder type"); + } // "Transform with object" buttons -- cgit v1.2.3