aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/menus/gal-view.c
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2002-12-19 10:23:44 +0800
committerChris Toshok <toshok@src.gnome.org>2002-12-19 10:23:44 +0800
commitbe8b72f96374ec259a161750a3d3ed0cd48cefbc (patch)
tree2521266b715ec74043652b3fc6251ffb65f70295 /widgets/menus/gal-view.c
parent7bd2b9cf14e7f0bf211aab839342523cf6f21752 (diff)
downloadgsoc2013-evolution-be8b72f96374ec259a161750a3d3ed0cd48cefbc.tar.gz
gsoc2013-evolution-be8b72f96374ec259a161750a3d3ed0cd48cefbc.tar.zst
gsoc2013-evolution-be8b72f96374ec259a161750a3d3ed0cd48cefbc.zip
add the parent arg.
2002-12-18 Chris Toshok <toshok@ximian.com> * 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
Diffstat (limited to 'widgets/menus/gal-view.c')
-rw-r--r--widgets/menus/gal-view.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/widgets/menus/gal-view.c b/widgets/menus/gal-view.c
index 8554c4c5de..fa1402fae4 100644
--- a/widgets/menus/gal-view.c
+++ b/widgets/menus/gal-view.c
@@ -44,15 +44,18 @@ static guint gal_view_signals [LAST_SIGNAL] = { 0, };
/**
* gal_view_edit
* @view: The view to edit
+ * @parent: the parent window.
*/
void
-gal_view_edit (GalView *view)
+gal_view_edit (GalView *view,
+ GtkWindow *parent)
{
g_return_if_fail (view != NULL);
g_return_if_fail (GAL_IS_VIEW (view));
+ g_return_if_fail (GTK_IS_WINDOW (parent));
if (GAL_VIEW_GET_CLASS (view)->edit)
- GAL_VIEW_GET_CLASS (view)->edit (view);
+ GAL_VIEW_GET_CLASS (view)->edit (view, parent);
}
/**