Implement Quit in Midori in web application mode

This commit is contained in:
Christian Dywan 2009-12-07 20:41:13 +01:00
parent 427ae90f08
commit 38205dd351

View file

@ -1762,6 +1762,8 @@ main (int argc,
G_CALLBACK (midori_web_app_browser_notify_load_status_cb), NULL); G_CALLBACK (midori_web_app_browser_notify_load_status_cb), NULL);
midori_browser_add_uri (browser, webapp); midori_browser_add_uri (browser, webapp);
g_object_set_data (G_OBJECT (browser), "locked", (void*)1); g_object_set_data (G_OBJECT (browser), "locked", (void*)1);
g_signal_connect (browser, "quit",
G_CALLBACK (gtk_main_quit), NULL);
g_signal_connect (browser, "destroy", g_signal_connect (browser, "destroy",
G_CALLBACK (gtk_main_quit), NULL); G_CALLBACK (gtk_main_quit), NULL);
gtk_widget_show (GTK_WIDGET (browser)); gtk_widget_show (GTK_WIDGET (browser));