aboutsummaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authornirav <nirav@teisuu.com>2018-10-21 18:24:26 +0530
committerDandelion <nirav@teisuu.com>2018-10-21 18:24:26 +0530
commit62cdffbb4d3e93d6785f3054f7fa81b7cc8b6de7 (patch)
tree821e20b2f978890f7b9e6d6a99209a85669a842e /src/window.c
parentf8f3159f9b98b024043bd8de2c5e15dd2adf03ca (diff)
downloadim-62cdffbb4d3e93d6785f3054f7fa81b7cc8b6de7.tar.gz
im-62cdffbb4d3e93d6785f3054f7fa81b7cc8b6de7.zip
Added command line option parsing, info bar is now visible by default
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index 899d526..b50c6bc 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3,6 +3,7 @@
#include "file.h"
#include "image.h"
#include "input.h"
+#include "option.h"
#include "window.h"
GtkWidget *window;
@@ -117,7 +118,9 @@ void create_main_window()
gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(overlay));
gtk_widget_show_all(GTK_WIDGET(window));
- gtk_widget_hide(GTK_WIDGET(info_panel));
+ if (!options->show_info) {
+ gtk_widget_hide(GTK_WIDGET(info_panel));
+ }
load_css();
}