diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-12-13 19:57:09 +0100 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-12-13 19:57:09 +0100 |
commit | 22365122aa3a8e2a82c33767fb4f592da921b490 (patch) | |
tree | 4cf5bc987ff2822741566bf04f00e703f935c9ec /plugins/gtkui/gtkui.c | |
parent | 0cf3d99ae315123cfd194db8092c6693380397c4 (diff) |
show/hide status bar and playlist column headers
Diffstat (limited to 'plugins/gtkui/gtkui.c')
-rw-r--r-- | plugins/gtkui/gtkui.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/gtkui/gtkui.c b/plugins/gtkui/gtkui.c index 248b38b8..6f6b051e 100644 --- a/plugins/gtkui/gtkui.c +++ b/plugins/gtkui/gtkui.c @@ -366,6 +366,25 @@ gtkui_thread (void *ctx) { w = loopingwidgets[deadbeef->conf_get_int ("playback.loop", 0)]; gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (lookup_widget (mainwin, w)), TRUE); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (lookup_widget (mainwin, "scroll_follows_playback")), deadbeef->conf_get_int ("playlist.scroll.followplayback", 0) ? TRUE : FALSE); + // visibility of statusbar and headers + GtkWidget *header_mi = lookup_widget (mainwin, "view_headers"); + GtkWidget *sb_mi = lookup_widget (mainwin, "view_status_bar"); + GtkWidget *header = lookup_widget (mainwin, "header"); + GtkWidget *sb = lookup_widget (mainwin, "statusbar"); + if (deadbeef->conf_get_int ("gtkui.headers.visible", 1)) { + gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (header_mi), TRUE); + } + else { + gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (header_mi), FALSE); + gtk_widget_hide (header); + } + if (deadbeef->conf_get_int ("gtkui.statusbar.visible", 1)) { + gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (sb_mi), TRUE); + } + else { + gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (sb_mi), FALSE); + gtk_widget_hide (sb); + } searchwin = create_searchwin (); gtk_window_set_transient_for (GTK_WINDOW (searchwin), GTK_WINDOW (mainwin)); |