summaryrefslogtreecommitdiffstats
path: root/gtk/src/main.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-06-26 04:31:01 +0000
committerjstebbins <[email protected]>2009-06-26 04:31:01 +0000
commitfaa2f3c603eeb6dca2e8f286ba0541ebb22873a0 (patch)
tree877e4f1ca3c8805ec648d331037e1255c967dc3e /gtk/src/main.c
parent2c2b1157d6910159a40546f22602c80bd8d9f1b6 (diff)
LinGui: modify behavior of system tray icon
- clicking raises hb if iconified or obscured, iconifies if hb unobscured - when hb is iconified via the system tray icon, remove it from taskbar - preference option now enables/disables system tray icon git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2624 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/main.c')
-rw-r--r--gtk/src/main.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gtk/src/main.c b/gtk/src/main.c
index 9058bd43c..34d3c149d 100644
--- a/gtk/src/main.c
+++ b/gtk/src/main.c
@@ -800,6 +800,9 @@ main (int argc, char *argv[])
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",
@@ -808,11 +811,6 @@ main (int argc, char *argv[])
gtk_status_icon_set_tooltip(si, "HandBrake");
#endif
- GtkWindow *window;
- window = GTK_WINDOW(GHB_WIDGET (ud->builder, "hb_window"));
- gtk_window_set_skip_taskbar_hint(window,
- ghb_settings_get_boolean(ud->settings, "skip_taskbar"));
-
// Everything should be go-to-go. Lets rock!
gtk_main ();