aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-09-16 12:54:10 -0500
committerTed Gould <ted@gould.cx>2011-09-16 12:54:10 -0500
commitd903b298a246c22fef75c01cb54bed56c0232eb1 (patch)
tree651ee4f4cd7b70bcfbd51025f9f1d5d9a33e1825
parentf5be40f06a3a6591ef442261479b960c58dbe8c1 (diff)
downloadayatana-ido-d903b298a246c22fef75c01cb54bed56c0232eb1.tar.gz
ayatana-ido-d903b298a246c22fef75c01cb54bed56c0232eb1.tar.bz2
ayatana-ido-d903b298a246c22fef75c01cb54bed56c0232eb1.zip
Putting the new code as GTK3 only
-rw-r--r--src/idocalendarmenuitem.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/idocalendarmenuitem.c b/src/idocalendarmenuitem.c
index 085a2da..bb4ccca 100644
--- a/src/idocalendarmenuitem.c
+++ b/src/idocalendarmenuitem.c
@@ -207,6 +207,7 @@ ido_calendar_menu_item_button_press (GtkWidget *widget,
gtk_widget_grab_focus (calendar);
}
+#if GTK_CHECK_VERSION (3, 0, 0)
GdkEvent * newevent = gdk_event_copy((GdkEvent *)(event));
GList * children = gdk_window_get_children(gtk_widget_get_window(calendar));
GList * child;
@@ -232,6 +233,8 @@ ido_calendar_menu_item_button_press (GtkWidget *widget,
GTK_WIDGET_GET_CLASS(calendar)->button_press_event(GTK_WIDGET(calendar), (GdkEventButton*)newevent);
}
}
+#endif
+
return TRUE;
}
@@ -242,8 +245,10 @@ static gboolean
ido_calendar_menu_item_button_release (GtkWidget *widget,
GdkEventButton *event)
{
+#if GTK_CHECK_VERSION (3, 0, 0)
GtkWidget *calendar = IDO_CALENDAR_MENU_ITEM (widget)->priv->calendar;
GTK_WIDGET_GET_CLASS(calendar)->button_release_event(GTK_WIDGET(calendar), event);
+#endif
return TRUE;
}