static GtkWidget *python_console = NULL;
-static guint hook_compose_create;
+static gulong hook_compose_create = 0;
static gboolean python_console_delete_event(GtkWidget *widget, GdkEvent *event, gpointer data)
{
}
static GtkActionEntry compose_tools_python_actions[] = {
- {"Tools/PythonScripts", NULL, N_("Python scripts") },
+ {"Tools/PythonScripts", NULL, N_("Python scripts"), NULL, NULL, NULL },
};
static void ComposeActionData_destroy_cb(gpointer data)
};
static GtkActionEntry mainwindow_tools_python_actions[] = {
- {"Tools/PythonScripts", NULL, N_("Python scripts") },
+ {"Tools/PythonScripts", NULL, N_("Python scripts"), NULL, NULL, NULL },
{"Tools/PythonScripts/Refresh", NULL, N_("Refresh"),
NULL, NULL, G_CALLBACK(refresh_python_scripts_menus) },
{"Tools/PythonScripts/Browse", NULL, N_("Browse"),
NULL, NULL, G_CALLBACK(browse_python_scripts_dir) },
- {"Tools/PythonScripts/---", NULL, "---" },
+ {"Tools/PythonScripts/---", NULL, "---", NULL, NULL, NULL },
};
static int python_menu_init(char **error)
/* load hooks */
hook_compose_create = hooks_register_hook(COMPOSE_CREATED_HOOKLIST, my_compose_create_hook, NULL);
- if(hook_compose_create == (guint)-1) {
+ if(hook_compose_create == 0) {
*error = g_strdup(_("Failed to register \"compose create hook\" in the Python plugin"));
return -1;
}