aboutsummaryrefslogtreecommitdiff
path: root/src/idoentrymenuitem.c
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2011-12-14 12:19:26 -0500
committerKen VanDine <ken.vandine@canonical.com>2011-12-14 12:19:26 -0500
commit9b717e50b0890d938cd2cf6bb4ec938240740f31 (patch)
tree1c3ced03cd9ec27f3406099e33cfb6892aa7ee2e /src/idoentrymenuitem.c
parent50b234a41b70db8f4c8b15ddaf2d15beacb602d6 (diff)
downloadayatana-ido-9b717e50b0890d938cd2cf6bb4ec938240740f31.tar.gz
ayatana-ido-9b717e50b0890d938cd2cf6bb4ec938240740f31.tar.bz2
ayatana-ido-9b717e50b0890d938cd2cf6bb4ec938240740f31.zip
removed deprecations from gtk3 and fixed sizing issues with idemessagedialog (LP: #888392)
Diffstat (limited to 'src/idoentrymenuitem.c')
-rw-r--r--src/idoentrymenuitem.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/idoentrymenuitem.c b/src/idoentrymenuitem.c
index 1636da9..088c559 100644
--- a/src/idoentrymenuitem.c
+++ b/src/idoentrymenuitem.c
@@ -25,6 +25,7 @@
#include <gdk/gdkkeysyms.h>
#include "idoentrymenuitem.h"
+#include "config.h"
#if GTK_CHECK_VERSION (3, 0, 0)
static void ido_entry_menu_item_select (GtkMenuItem *item);
@@ -118,7 +119,12 @@ ido_entry_menu_item_init (IdoEntryMenuItem *item)
G_CALLBACK (entry_move_focus_cb),
item);
+#ifdef USE_GTK3
+ priv->box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
+#else
priv->box = gtk_hbox_new (FALSE, 0);
+#endif
+
gtk_box_pack_start (GTK_BOX (priv->box), priv->entry, FALSE, FALSE, 0);
gtk_container_add (GTK_CONTAINER (item), priv->box);