diff options
author | jstebbins <[email protected]> | 2009-04-02 01:43:29 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-04-02 01:43:29 +0000 |
commit | bed742a01f8eeb29951b52ccba3dda0705607492 (patch) | |
tree | 1601fe08d4c4f0560d703604dd9438b2c3ff17a5 /gtk/src/callbacks.c | |
parent | 414d6a56cc67f2fa56353ee3ce80adaa8cfeb45f (diff) |
LinGui: add status icon that sits in the system tray
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2292 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/callbacks.c')
-rw-r--r-- | gtk/src/callbacks.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 456a863f7..ad36f6fa7 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -3151,6 +3151,15 @@ check_stable_update(signal_user_data_t *ud) return NULL; } +void +status_activate_cb(GtkStatusIcon *si, signal_user_data_t *ud) +{ + GtkWindow *window; + + window = GTK_WINDOW(GHB_WIDGET(ud->builder, "hb_window")); + gtk_window_present(window); +} + static void notify_closed_cb(NotifyNotification *notification, signal_user_data_t *ud) { @@ -3161,12 +3170,16 @@ void ghb_notify_done(signal_user_data_t *ud) { NotifyNotification *notification; + GtkStatusIcon *si; + si = GTK_STATUS_ICON(GHB_OBJECT(ud->builder, "hb_status")); + gtk_status_icon_set_from_icon_name(si, "hb-status-empty"); notification = notify_notification_new( "Encode Complete", "Put down that cocktail, Your HandBrake queue is done!", "hb-icon", NULL); + notify_notification_attach_to_status_icon(notification, si); g_signal_connect(notification, "closed", (GCallback)notify_closed_cb, ud); notify_notification_show(notification, NULL); } |