gnome-media r4022 - in trunk/gnome-volume-control: . src
- From: mccann svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-media r4022 - in trunk/gnome-volume-control: . src
- Date: Tue, 4 Nov 2008 01:49:50 +0000 (UTC)
Author: mccann
Date: Tue Nov 4 01:49:50 2008
New Revision: 4022
URL: http://svn.gnome.org/viewvc/gnome-media?rev=4022&view=rev
Log:
2008-11-03 William Jon McCann <jmccann redhat com>
* src/gvc-applet.c (gvc_applet_init):
status-icon scroll events only available in gtk+ 2.15.0
Modified:
trunk/gnome-volume-control/ChangeLog
trunk/gnome-volume-control/src/gvc-applet.c
Modified: trunk/gnome-volume-control/src/gvc-applet.c
==============================================================================
--- trunk/gnome-volume-control/src/gvc-applet.c (original)
+++ trunk/gnome-volume-control/src/gvc-applet.c Tue Nov 4 01:49:50 2008
@@ -273,6 +273,7 @@
activate_time);
}
+#if GTK_CHECK_VERSION(2,15,0)
static gboolean
on_status_icon_scroll_event (GtkStatusIcon *status_icon,
GdkEventScroll *event,
@@ -310,6 +311,7 @@
return FALSE;
}
+#endif
static void
gvc_applet_release_grab (GvcApplet *applet,
@@ -517,11 +519,12 @@
"popup-menu",
G_CALLBACK (on_status_icon_popup_menu),
applet);
+#if GTK_CHECK_VERSION(2,15,0)
g_signal_connect (applet->priv->status_icon,
"scroll-event",
G_CALLBACK (on_status_icon_scroll_event),
applet);
-
+#endif
/* window */
applet->priv->dock = gtk_window_new (GTK_WINDOW_POPUP);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]