summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2016-04-13 09:13:05 +0000
committerAlexander Valavanis <valavanisalex@gmail.com>2016-04-13 09:13:05 +0000
commitd9cab02baeddb4f97a34a72e1b0de97b13a3037a (patch)
tree324cdaf970df2dbb0eabcbe3e1458527aa0c4b96 /src/widgets
parentRestore ability to set unitless 'line-height'. Hackfest 2016 (diff)
downloadinkscape-d9cab02baeddb4f97a34a72e1b0de97b13a3037a.tar.gz
inkscape-d9cab02baeddb4f97a34a72e1b0de97b13a3037a.zip
ink-comboboxentry-action: Fix deprecated gtk_misc_set_alignment #Hackfest2016
(bzr r14815)
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/ink-comboboxentry-action.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/widgets/ink-comboboxentry-action.cpp b/src/widgets/ink-comboboxentry-action.cpp
index 1114d2cdb..ec5e26cf5 100644
--- a/src/widgets/ink-comboboxentry-action.cpp
+++ b/src/widgets/ink-comboboxentry-action.cpp
@@ -371,9 +371,16 @@ GtkWidget* create_tool_item( GtkAction* action )
g_free( combobox_name );
{
+#if GTK_CHECK_VERSION(3,0,0)
+ gtk_widget_set_halign(comboBoxEntry, GTK_ALIGN_START);
+ gtk_widget_set_hexpand(comboBoxEntry, FALSE);
+ gtk_widget_set_vexpand(comboBoxEntry, FALSE);
+ gtk_container_add(GTK_CONTAINER(item), comboBoxEntry);
+#else
GtkWidget *align = gtk_alignment_new(0, 0.5, 0, 0);
gtk_container_add( GTK_CONTAINER(align), comboBoxEntry );
gtk_container_add( GTK_CONTAINER(item), align );
+#endif
}
ink_comboboxentry_action->combobox = GTK_COMBO_BOX (comboBoxEntry);
@@ -956,3 +963,14 @@ gboolean keypress_cb( GtkWidget * /*widget*/, GdkEventKey *event, gpointer data
return wasConsumed;
}
+
+/*
+ Local Variables:
+ mode:c++
+ c-file-style:"stroustrup"
+ c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
+ indent-tabs-mode:nil
+ fill-column:99
+ End:
+*/
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :