summaryrefslogtreecommitdiff
path: root/plugins/gtkui/gtkui.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-13 19:57:09 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-13 19:57:09 +0100
commit22365122aa3a8e2a82c33767fb4f592da921b490 (patch)
tree4cf5bc987ff2822741566bf04f00e703f935c9ec /plugins/gtkui/gtkui.c
parent0cf3d99ae315123cfd194db8092c6693380397c4 (diff)
show/hide status bar and playlist column headers
Diffstat (limited to 'plugins/gtkui/gtkui.c')
-rw-r--r--plugins/gtkui/gtkui.c19
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));