aboutsummaryrefslogtreecommitdiff
path: root/src/session-service.c
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2011-07-09 05:42:45 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2011-07-09 05:42:45 +0200
commit8ab26b1cd3f1a5e67c6f06adf59d3de8c9bb14d5 (patch)
tree801a0fca04fdf3827cec6ea3cdba76f0753ca6e7 /src/session-service.c
parent331ab6a0abc53276af8da99ea141071bbb605820 (diff)
downloadayatana-indicator-session-8ab26b1cd3f1a5e67c6f06adf59d3de8c9bb14d5.tar.gz
ayatana-indicator-session-8ab26b1cd3f1a5e67c6f06adf59d3de8c9bb14d5.tar.bz2
ayatana-indicator-session-8ab26b1cd3f1a5e67c6f06adf59d3de8c9bb14d5.zip
Get support for gtk+2.0 back
indicator-session can still be compiled with gtk, using the --with-gtk=2 configure flag (I've changed it to match the other indicators).
Diffstat (limited to 'src/session-service.c')
-rw-r--r--src/session-service.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/session-service.c b/src/session-service.c
index dfc3805..424a3ac 100644
--- a/src/session-service.c
+++ b/src/session-service.c
@@ -36,7 +36,13 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include <libdbusmenu-glib/server.h>
#include <libdbusmenu-glib/menuitem.h>
#include <libdbusmenu-glib/client.h>
+
+#include <gtk/gtk.h>
+#if GTK_CHECK_VERSION(3, 0, 0)
#include <libdbusmenu-gtk3/menuitem.h>
+#else
+#include <libdbusmenu-gtk/menuitem.h>
+#endif
#include <libindicator/indicator-service.h>