From 2d64058a8f7c03d1035504eaacc219730b5cd3c6 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sat, 11 Nov 2000 21:45:24 +0000 Subject: Added a bunch of .lo s from the menus directory. 2000-11-11 Christopher James Lahey * gal/Makefile.am: Added a bunch of .lo s from the menus directory. From gal/menus: 2000-11-11 Christopher James Lahey * Makefile.am: Added gal-define-views-model.c, gal-define-views-model.h, gal-view-new-dialog.c, gal-view-new-dialog.h, gal-view-new-dialog.glade, gal-view-new-dialog.glade.h, gal-view.c, and gal-view.h. * gal-define-views-dialog.c, gal-define-views-dialog.h: Connect up the New button. Use an ETable. * gal-define-views.glade, gal-define-views.glade.h: Put in custom object for the ETable * gal-define-views-model.c, gal-define-views-model.h: New model for list of views. * gal-view-menus.c: Close the define views dialog when it's done. * gal-view-new-dialog.c, gal-view-new-dialog.glade, gal-view-new-dialog.glade.h, gal-view-new-dialog.h: New class for creating a new view. * gal-view.c, gal-view.h: New class for representing a single view in the define views model. svn path=/trunk/; revision=6544 --- widgets/menus/gal-view-menus.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'widgets/menus/gal-view-menus.c') 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 @@ -49,12 +49,21 @@ gal_view_menus_new (void) return (GalViewMenus *) gvm; } +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[] = { -- cgit