diff options
author | jstebbins <[email protected]> | 2011-06-21 15:32:37 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-06-21 15:32:37 +0000 |
commit | 712e7e6105ae5d5a761ae0b1a1caae2438794b78 (patch) | |
tree | 2c646adef244924bd5694c860177017e70996989 /gtk/src/main.c | |
parent | 6b1c821b68eed93b7600fb45d5cf9ed922668708 (diff) |
LinGui: when appindicator is found, disable gtkstatusicon
libappindicator has a fallback mode that creates a gtkstatusicon
automatically if the indicator service can not be contacted. so I
should only enable one or the other, not both.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4073 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/main.c')
-rw-r--r-- | gtk/src/main.c | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/gtk/src/main.c b/gtk/src/main.c index 6fb82b12f..3c49e8766 100644 --- a/gtk/src/main.c +++ b/gtk/src/main.c @@ -935,19 +935,6 @@ main (int argc, char *argv[]) ghb_volname_cache_init(); g_thread_create((GThreadFunc)ghb_cache_volnames, ud, FALSE, NULL); - GtkStatusIcon *si; - si = GTK_STATUS_ICON(GHB_OBJECT(ud->builder, "hb_status")); - - gtk_status_icon_set_visible(si, - ghb_settings_get_boolean(ud->settings, "show_status")); - -#if GTK_CHECK_VERSION(2, 16, 0) - gtk_status_icon_set_has_tooltip(si, TRUE); - g_signal_connect(si, "query-tooltip", - status_icon_query_tooltip_cb, ud); -#else - gtk_status_icon_set_tooltip(si, "HandBrake"); -#endif #if defined(_USE_APP_IND) GtkUIManager * uim = GTK_UI_MANAGER(GHB_OBJECT(ud->builder, "uimanager1")); @@ -963,6 +950,24 @@ main (int argc, char *argv[]) { app_indicator_set_status( ud->ai, APP_INDICATOR_STATUS_PASSIVE ); } + GtkStatusIcon *si; + si = GTK_STATUS_ICON(GHB_OBJECT(ud->builder, "hb_status")); + + gtk_status_icon_set_visible(si, FALSE ); +#else + GtkStatusIcon *si; + si = GTK_STATUS_ICON(GHB_OBJECT(ud->builder, "hb_status")); + + gtk_status_icon_set_visible(si, + ghb_settings_get_boolean(ud->settings, "show_status")); + +#if GTK_CHECK_VERSION(2, 16, 0) + gtk_status_icon_set_has_tooltip(si, TRUE); + g_signal_connect(si, "query-tooltip", + status_icon_query_tooltip_cb, ud); +#else + gtk_status_icon_set_tooltip(si, "HandBrake"); +#endif #endif // Ugly hack to keep subtitle table from bouncing around as I change |