aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-session.c
diff options
context:
space:
mode:
authorMichael Terry <michael.terry@canonical.com>2011-05-26 11:54:30 -0400
committerMichael Terry <michael.terry@canonical.com>2011-05-26 11:54:30 -0400
commit6eb44e9133dc234ce48cf27454575a3cebf0376d (patch)
tree49324cf5c205a332b1541b9b0e5c9eae8d1c1da1 /src/indicator-session.c
parentf133202143adf833bc8f6de78826a1325932a13e (diff)
downloadayatana-indicator-session-6eb44e9133dc234ce48cf27454575a3cebf0376d.tar.gz
ayatana-indicator-session-6eb44e9133dc234ce48cf27454575a3cebf0376d.tar.bz2
ayatana-indicator-session-6eb44e9133dc234ce48cf27454575a3cebf0376d.zip
port to gtk3; allow building with gtk2
Diffstat (limited to 'src/indicator-session.c')
-rw-r--r--src/indicator-session.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/indicator-session.c b/src/indicator-session.c
index e8a2f97..c9617c4 100644
--- a/src/indicator-session.c
+++ b/src/indicator-session.c
@@ -29,7 +29,12 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>
#include <gio/gio.h>
+
+#if GTK_CHECK_VERSION(3, 0, 0)
+#include <libdbusmenu-gtk3/menu.h>
+#else
#include <libdbusmenu-gtk/menu.h>
+#endif
#include <libindicator/indicator.h>
#include <libindicator/indicator-object.h>