Python plugin: Add explicit cast for function argument
authorHolger Berndt <hb@claws-mail.org>
Sun, 9 Jun 2013 18:38:08 +0000 (20:38 +0200)
committerHolger Berndt <hb@claws-mail.org>
Tue, 11 Jun 2013 21:29:25 +0000 (23:29 +0200)
src/plugins/python/python_plugin.c

index 9c34538bafa5d3a2d41ebe6c2a9af367460448dc..a0f4650db8781362a292a33f07662772e67797a2 100644 (file)
@@ -452,7 +452,7 @@ static void browse_python_scripts_dir(GtkAction *action, gpointer data)
   launch_context = gdk_app_launch_context_new();
   gdk_app_launch_context_set_screen(launch_context, gtk_widget_get_screen(mainwin->window));
   uri = g_strconcat("file://", get_rc_dir(), G_DIR_SEPARATOR_S, PYTHON_SCRIPTS_BASE_DIR, G_DIR_SEPARATOR_S, NULL);
-  g_app_info_launch_default_for_uri(uri, launch_context, &error);
+  g_app_info_launch_default_for_uri(uri, G_APP_LAUNCH_CONTEXT(launch_context), &error);
 
   if(error) {
       debug_print("Could not open scripts dir browser: '%s'\n", error->message);