summaryrefslogtreecommitdiffstats
path: root/gtk/src/main.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-12-04 21:51:58 +0000
committerjstebbins <[email protected]>2014-12-04 21:51:58 +0000
commitc8ba2592e8093444f44ce38123f2c023d71f01fc (patch)
tree1d506a4c02280c838d285cb4a02945ef3cb16df6 /gtk/src/main.c
parent9a22df485d2ec381edc42492b00b49c72d72c22c (diff)
LinGui: remove POS appindicator
It's nothing but trouble. Buggy POS ubuntu crapware. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6586 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/main.c')
-rw-r--r--gtk/src/main.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/gtk/src/main.c b/gtk/src/main.c
index 08a6f554b..95479d022 100644
--- a/gtk/src/main.c
+++ b/gtk/src/main.c
@@ -47,10 +47,6 @@
#define pipe(phandles) _pipe (phandles, 4096, _O_BINARY)
#endif
-#if defined(_USE_APP_IND)
-#include <libappindicator/app-indicator.h>
-#endif
-
#include <glib/gstdio.h>
#include <glib/gi18n.h>
#include <gio/gio.h>
@@ -1049,25 +1045,6 @@ main(int argc, char *argv[])
ghb_volname_cache_init();
GHB_THREAD_NEW("Cache Volume Names", (GThreadFunc)ghb_cache_volnames, ud);
-#if defined(_USE_APP_IND)
- GtkMenu *ai_menu = GTK_MENU(GHB_OBJECT(ud->builder, "tray_menu"));
- ud->ai = app_indicator_new("HandBrake", "hb-icon", APP_INDICATOR_CATEGORY_APPLICATION_STATUS);
- app_indicator_set_menu( ud->ai, ai_menu );
- app_indicator_set_label( ud->ai, "", "99.99%");
- if (ghb_settings_get_boolean(ud->prefs, "show_status"))
- {
- app_indicator_set_status( ud->ai, APP_INDICATOR_STATUS_ACTIVE );
- }
- else
- {
- app_indicator_set_status( ud->ai, APP_INDICATOR_STATUS_PASSIVE );
- }
-#else
- // gtk-3 has eliminated status icons. Remove the option from preferences
- GtkWidget *status_icon_pref = GHB_WIDGET(ud->builder, "show_status");
- gtk_widget_set_visible(status_icon_pref, FALSE);
-#endif
-
GtkWidget *ghb_window = GHB_WIDGET(ud->builder, "hb_window");
gint window_width, window_height;