aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/menus/gal-view-menus.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/menus/gal-view-menus.c')
-rw-r--r--widgets/menus/gal-view-menus.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/widgets/menus/gal-view-menus.c b/widgets/menus/gal-view-menus.c
index 398c34d789..f511f8b61d 100644
--- a/widgets/menus/gal-view-menus.c
+++ b/widgets/menus/gal-view-menus.c
@@ -50,11 +50,20 @@ gal_view_menus_new (void)
}
static void
+dialog_clicked(GtkWidget *dialog, int button, GalViewMenus *menus)
+{
+ gnome_dialog_close(GNOME_DIALOG(dialog));
+}
+
+static void
define_views(BonoboUIComponent *component,
GalViewMenus *menus,
char *cname)
{
- gtk_widget_show(gal_define_views_dialog_new());
+ GtkWidget *dialog = gal_define_views_dialog_new();
+ gtk_signal_connect(GTK_OBJECT(dialog), "clicked",
+ GTK_SIGNAL_FUNC(dialog_clicked), menus);
+ gtk_widget_show(dialog);
}
static BonoboUIVerb verbs[] = {