+2010-12-27 Carlos Garcia Campos <cgarcia@igalia.com>
+
+ Reviewed by Martin Robinson.
+
+ [GTK] Disable flash plugin in GtkLauncher when using gtk3
+ https://bugs.webkit.org/show_bug.cgi?id=51591
+
+ Flash plugin uses gtk2 that is incompatible with gtk3 making
+ webkit crash when it's built with gtk3.
+
+ * GtkLauncher/main.c:
+ (main):
+
2010-12-25 Adam Barth <abarth@webkit.org>
Reviewed by Eric Seidel.
return fileURL;
}
+#ifndef GTK_API_VERSION_2
+static void disablePlugin(const char* pluginName)
+{
+ WebKitWebPluginDatabase *database = webkit_get_web_plugin_database();
+ GSList *plugins = webkit_web_plugin_database_get_plugins(database);
+ GSList *p;
+
+ for (p = plugins; p; p = g_slist_next(p)) {
+ WebKitWebPlugin *plugin = WEBKIT_WEB_PLUGIN(p->data);
+
+ if (!g_strcmp0(webkit_web_plugin_get_name(plugin), pluginName))
+ webkit_web_plugin_set_enabled(plugin, FALSE);
+ }
+
+ webkit_web_plugin_database_plugins_list_free(plugins);
+}
+#endif
+
int main(int argc, char* argv[])
{
WebKitWebView *webView;
if (!g_thread_supported())
g_thread_init(NULL);
+#ifndef GTK_API_VERSION_2
+ disablePlugin("Shockwave Flash");
+#endif
+
main_window = createWindow(&webView);
gchar *uri =(gchar*)(argc > 1 ? argv[1] : "http://www.google.com/");