1.12.42
[gnumeric.git] / plugins / gnome-db / plugin-gnomedb.c
blob1554430bce6dd59c3b72d1247b14d90e9ef0f00c
1 #include <gnumeric-config.h>
2 #include <gnumeric.h>
3 #include <wbc-gtk.h>
4 #include <gui-util.h>
5 #include <gnm-plugin.h>
6 #include <glib/gi18n-lib.h>
8 GNM_PLUGIN_MODULE_HEADER;
10 static void
11 view_data_sources (GnmAction const *action, WorkbookControl *wbc)
13 char *argv[2];
15 argv[0] = (char *) "gnome-database-properties-4.0";
16 argv[1] = NULL;
17 if (!g_spawn_async (NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL)) {
18 char *msg = g_strdup_printf (
19 _("Could not run GNOME database configuration tool ('%s')"),
20 argv[0]);
21 go_gtk_notice_dialog (wbcg_toplevel (WBC_GTK (wbc)),
22 GTK_MESSAGE_INFO, msg);
23 g_free (msg);
27 GnmModulePluginUIActions const gnome_db_ui_actions[] = {
28 {"ViewDataSources", view_data_sources},
29 {NULL}