static void tab_panel_activate_cb (MidoriExtension* extension, MidoriApp* app) { KatzeArray* browsers; MidoriBrowser* browser; browsers = katze_object_get_object (app, "browsers"); KATZE_ARRAY_FOREACH_ITEM (browser, browsers) tab_panel_app_add_browser_cb (app, browser, extension); g_object_unref (browsers); g_signal_connect (app, "add-browser", G_CALLBACK (tab_panel_app_add_browser_cb), extension); }
static void formhistory_activate_cb (MidoriExtension* extension, MidoriApp* app) { const gchar* config_dir = midori_extension_get_config_dir (extension); FormHistoryPriv* priv = formhistory_new (config_dir); KatzeArray* browsers = katze_object_get_object (app, "browsers"); MidoriBrowser* browser; g_object_set_data (G_OBJECT (extension), "priv", priv); KATZE_ARRAY_FOREACH_ITEM (browser, browsers) formhistory_app_add_browser_cb (app, browser, extension); g_signal_connect (app, "add-browser", G_CALLBACK (formhistory_app_add_browser_cb), extension); g_object_unref (browsers); }
static void mouse_gestures_activate_cb (MidoriExtension* extension, MidoriApp* app) { KatzeArray* browsers; MidoriBrowser* browser; gesture = mouse_gesture_new (); gesture->button = midori_extension_get_integer (extension, "button"); browsers = katze_object_get_object (app, "browsers"); KATZE_ARRAY_FOREACH_ITEM (browser, browsers) mouse_gestures_app_add_browser_cb (app, browser, extension); g_signal_connect (app, "add-browser", G_CALLBACK (mouse_gestures_app_add_browser_cb), extension); g_object_unref (browsers); }