From be8b72f96374ec259a161750a3d3ed0cd48cefbc Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Thu, 19 Dec 2002 02:23:44 +0000 Subject: add the parent arg. 2002-12-18 Chris Toshok * gal-view.[ch] (gal_view_edit): add the parent arg. * gal-view-new-dialog.c (gal_view_new_dialog_init): set the dialog modal. * gal-view-etable.c (gal_view_etable_edit): take the parent arg and pass it to e_table_config_new. * gal-define-views-dialog.c (gdvd_button_new_dialog_callback): pass the dialog as the parent to gal_view_edit. (gdvd_button_modify_callback): same. (gdvd_button_new_callback): set view_new_dialog transient for dialog. svn path=/trunk/; revision=19164 --- widgets/menus/gal-view.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'widgets/menus/gal-view.h') diff --git a/widgets/menus/gal-view.h b/widgets/menus/gal-view.h index 5ae99b8535..77056243c5 100644 --- a/widgets/menus/gal-view.h +++ b/widgets/menus/gal-view.h @@ -24,7 +24,7 @@ #ifndef _GAL_VIEW_H_ #define _GAL_VIEW_H_ -#include +#include #include #ifdef __cplusplus @@ -48,7 +48,7 @@ typedef struct { /* * Virtual methods */ - void (*edit) (GalView *view); + void (*edit) (GalView *view, GtkWindow *parent_window); void (*load) (GalView *view, const char *filename); void (*save) (GalView *view, @@ -66,8 +66,9 @@ typedef struct { /* Standard functions */ GType gal_view_get_type (void); -/* Open an editor dialog for this view. */ -void gal_view_edit (GalView *view); +/* Open an editor dialog for this view, modal/transient for the GtkWindow arg. */ +void gal_view_edit (GalView *view, + GtkWindow *parent); /* xml load and save functions */ void gal_view_load (GalView *view, -- cgit