summaryrefslogtreecommitdiffstats
path: root/gtk/src/main.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-06-17 22:19:26 +0000
committerjstebbins <[email protected]>2009-06-17 22:19:26 +0000
commit2bbee7dc6b7236d75057c194dc12f9aafcd48334 (patch)
tree1a8a5fdde172ab41c146979e304511540f9fa8f9 /gtk/src/main.c
parent57952a58b0596d86d6c43d6663590a0c654264c6 (diff)
LinGui: make the status icon in the system tray a bit more useful
Succumbing to the pleading of users... - Use HB icon for status - Add tooltip to status icon that shows progress - Add preference option to skip the taskbar. So clikcing on the status icon un-minimizes. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2565 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/main.c')
-rw-r--r--gtk/src/main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/src/main.c b/gtk/src/main.c
index 0b3eb09a5..4a684848c 100644
--- a/gtk/src/main.c
+++ b/gtk/src/main.c
@@ -790,6 +790,15 @@ main (int argc, char *argv[])
// Add dvd devices to File menu
g_idle_add((GSourceFunc)ghb_file_menu_add_dvd, ud);
+ GtkStatusIcon *si;
+ si = GTK_STATUS_ICON(GHB_OBJECT(ud->builder, "hb_status"));
+ gtk_status_icon_set_has_tooltip(si, TRUE);
+
+ 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 ();