diff options
Diffstat (limited to 'src/idocalendarmenuitem.c')
-rw-r--r-- | src/idocalendarmenuitem.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/idocalendarmenuitem.c b/src/idocalendarmenuitem.c index 40d96a1..da7c436 100644 --- a/src/idocalendarmenuitem.c +++ b/src/idocalendarmenuitem.c @@ -25,6 +25,7 @@ #include <gdk/gdkkeysyms.h> #include "idocalendarmenuitem.h" +#include "config.h" #if GTK_CHECK_VERSION (3, 0, 0) static void ido_calendar_menu_item_select (GtkMenuItem *item); @@ -131,7 +132,12 @@ ido_calendar_menu_item_init (IdoCalendarMenuItem *item) G_CALLBACK (calendar_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->calendar, FALSE, FALSE, 0); gtk_container_add (GTK_CONTAINER (item), priv->box); |