diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-01-18 22:17:54 +0100 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-01-18 22:17:54 +0100 |
commit | aaae4aa191dc5ad4dd643822b33397bc6faace0e (patch) | |
tree | fcbf4a389b8bc2273178a5511efeba3c3391ff26 /tools | |
parent | 3a33240e301a02fa6ee0aa0bd41780a0e3a28633 (diff) | |
download | libayatana-indicator-aaae4aa191dc5ad4dd643822b33397bc6faace0e.tar.gz libayatana-indicator-aaae4aa191dc5ad4dd643822b33397bc6faace0e.tar.bz2 libayatana-indicator-aaae4aa191dc5ad4dd643822b33397bc6faace0e.zip |
Only build and use IndicatorNg in the gtk3 build
Diffstat (limited to 'tools')
-rw-r--r-- | tools/indicator-loader.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/indicator-loader.c b/tools/indicator-loader.c index 51d2e46..d275c43 100644 --- a/tools/indicator-loader.c +++ b/tools/indicator-loader.c @@ -24,7 +24,10 @@ License along with this library. If not, see #include <gtk/gtk.h> #include <libindicator/indicator-object.h> + +#if GTK_MAJOR_VERSION == 3 #include <libindicator/indicator-ng.h> +#endif static GHashTable * entry_to_menuitem = NULL; @@ -137,6 +140,7 @@ load_module (const gchar * name, GtkWidget * menu) if (g_str_has_suffix(name, G_MODULE_SUFFIX)) { io = indicator_object_new_from_file(name); } +#if GTK_MAJOR_VERSION == 3 else if (g_str_has_suffix(name, ".indicator")) { GError *error = NULL; @@ -147,6 +151,7 @@ load_module (const gchar * name, GtkWidget * menu) return FALSE; } } +#endif else return FALSE; |