summaryrefslogtreecommitdiff
path: root/plugins/gtkui/prefwin.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-07-30 21:52:09 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-07-30 21:52:09 +0200
commit4900747be558fa7bcdade34a21aa12d10010de40 (patch)
treeb4c9d1d00b1a710fd697c42e576545f86bcb9e6f /plugins/gtkui/prefwin.c
parent6cb93555535f85e5e0744cc6f9bcf6f189115287 (diff)
added option to hide system tray icon
Diffstat (limited to 'plugins/gtkui/prefwin.c')
-rw-r--r--plugins/gtkui/prefwin.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/gtkui/prefwin.c b/plugins/gtkui/prefwin.c
index cb2e73b2..2f0618cf 100644
--- a/plugins/gtkui/prefwin.c
+++ b/plugins/gtkui/prefwin.c
@@ -504,6 +504,9 @@ on_preferences_activate (GtkMenuItem *menuitem,
// close_send_to_tray
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (lookup_widget (w, "pref_close_send_to_tray")), deadbeef->conf_get_int ("close_send_to_tray", 0));
+ // hide tray icon
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (lookup_widget (w, "hide_tray_icon")), deadbeef->conf_get_int ("gtkui.hide_tray_icon", 0));
+
// mmb_delete_playlist
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (lookup_widget (w, "mmb_delete_playlist")), deadbeef->conf_get_int ("gtkui.mmb_delete_playlist", 0));
@@ -731,6 +734,15 @@ on_pref_close_send_to_tray_clicked (GtkButton *button,
}
void
+on_hide_tray_icon_toggled (GtkToggleButton *togglebutton,
+ gpointer user_data)
+{
+ int active = gtk_toggle_button_get_active (togglebutton);
+ deadbeef->conf_set_int ("gtkui.hide_tray_icon", active);
+ deadbeef->sendmessage (M_CONFIGCHANGED, 0, 0, 0);
+}
+
+void
on_mmb_delete_playlist_toggled (GtkToggleButton *togglebutton,
gpointer user_data)
{