logo

badwolf

Unnamed repository; edit this file 'description' to name the repository.
commit: 3dd83ba2aaaac12609e8e9f795e7081ab6286e79
parent: e0bb919f86f29c6e2f8affdee58e18c6ab0ce83e
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue,  8 Jan 2019 08:57:17 +0100

badwolf.c: let gtk_init try to parse some gtk cli arguments

Diffstat:

Mbadwolf.c4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/badwolf.c b/badwolf.c @@ -88,9 +88,9 @@ int main(int argc, char *argv[]) struct Client *browser = calloc(1, sizeof(struct Client)); char *target_url = "about:blank"; - if(argv[1]) target_url = argv[1]; + gtk_init(&argc, &argv); - gtk_init(0, 0); + if(argv[1]) target_url = argv[1]; browser->main_window = gtk_window_new(GTK_WINDOW_TOPLEVEL); browser->location = gtk_entry_new();