all:
- gcc `pkg-config --libs --cflags gtk+-2.0` `pkg-config --libs --cflags webkit-1.0` `pkg-config --libs --cflags glib-2.0` -Wall uzbl.c -o uzbl
+ gcc `pkg-config --libs --cflags gtk+-2.0` `pkg-config --libs --cflags webkit-1.0` -Wall uzbl.c -o uzbl
test:
./uzbl --uri http://www.archlinux.org
{
bool output = true;
- gdk_threads_enter();
-
if(strcmp(command, "forward") == 0)
{
printf("Going forward\n");
output = false;
}
- gdk_threads_leave();
-
return output;
}
{
if (!g_thread_supported ())
g_thread_init (NULL);
- gdk_threads_init();
+
gtk_init (&argc, &argv);
GtkWidget* vbox = gtk_vbox_new (FALSE, 0);
g_option_context_add_group (context, gtk_get_option_group (TRUE));
g_option_context_parse (context, &argc, &argv, &error);
- char *uri = "http://www.google.com";
- if(argc == 2)
- uri = argv[1];
-
webkit_web_view_load_uri (web_view, uri);
gtk_widget_grab_focus (GTK_WIDGET (web_view));
int ret;
ret = pthread_create(&control_thread, NULL, control_fifo, (void*) NULL);
- gdk_threads_enter();
gtk_main ();
- gdk_threads_leave();
-
- pthread_join(control_thread, NULL);
+ /*pthread_join(control_thread, NULL); For some reason it doesn't terminate upon the browser closing when this is enabled. */
return 0;
}