Shutdown: help the style leak printer out a bit.
[gnumeric.git] / plugins / gnome-db / plugin-gnomedb.c
blob119e2a039e2a7f5da5d09d78ff515a88cab525d5
1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 #include <gnumeric-config.h>
3 #include <gnumeric.h>
4 #include <wbc-gtk.h>
5 #include <gui-util.h>
6 #include <gnm-plugin.h>
7 #include <glib/gi18n-lib.h>
9 GNM_PLUGIN_MODULE_HEADER;
11 static void
12 view_data_sources (GnmAction const *action, WorkbookControl *wbc)
14 char *argv[2];
16 argv[0] = (char *) "gnome-database-properties-4.0";
17 argv[1] = NULL;
18 if (!g_spawn_async (NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL)) {
19 char *msg = g_strdup_printf (
20 _("Could not run GNOME database configuration tool ('%s')"),
21 argv[0]);
22 go_gtk_notice_dialog (wbcg_toplevel (WBC_GTK (wbc)),
23 GTK_MESSAGE_INFO, msg);
24 g_free (msg);
28 GnmModulePluginUIActions const gnome_db_ui_actions[] = {
29 {"ViewDataSources", view_data_sources},
30 {NULL}