diff options
| author | Alex Valavanis <valavanisalex@gmail.com> | 2012-02-26 17:42:47 +0000 |
|---|---|---|
| committer | Alex Valavanis <valavanisalex@gmail.com> | 2012-02-26 17:42:47 +0000 |
| commit | c1e3ec3ca49342c2aca018e5ed4d1f97ef8eff14 (patch) | |
| tree | 775d05a8c4abf00540ba5684c051ea20d573fc6b /src/widgets/select-toolbar.cpp | |
| parent | emf output. loosen the tolerance on text positioning (Bug 939688) (diff) | |
| download | inkscape-c1e3ec3ca49342c2aca018e5ed4d1f97ef8eff14.tar.gz inkscape-c1e3ec3ca49342c2aca018e5ed4d1f97ef8eff14.zip | |
Replace deprecated gtk_toolbar_append_widget API
(bzr r11021)
Diffstat (limited to 'src/widgets/select-toolbar.cpp')
| -rw-r--r-- | src/widgets/select-toolbar.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/widgets/select-toolbar.cpp b/src/widgets/select-toolbar.cpp index 8928c10ec..ecc3cc197 100644 --- a/src/widgets/select-toolbar.cpp +++ b/src/widgets/select-toolbar.cpp @@ -548,7 +548,9 @@ void sp_select_toolbox_prep(SPDesktop *desktop, GtkActionGroup* mainActions, GOb 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" ); + GtkToolItem *spw_toolitem = gtk_tool_item_new(); + gtk_container_add(GTK_CONTAINER(spw_toolitem), spw); + gtk_toolbar_insert(GTK_TOOLBAR(holder), spw_toolitem, -1); } else { g_warning("Unexpected holder type"); } |
