aboutsummaryrefslogtreecommitdiffstats
path: root/shell/evolution-shell-component.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2003-03-25 22:01:46 +0800
committerDan Winship <danw@src.gnome.org>2003-03-25 22:01:46 +0800
commit7733348dcc86add1bdd241e20f7b3afeb66250ec (patch)
treec2d300796ffc9e9822af582f509ab2ecfaad39cf /shell/evolution-shell-component.c
parent5d40c589ac1f330e06d6384ebd150f24f15c04a9 (diff)
downloadgsoc2013-evolution-7733348dcc86add1bdd241e20f7b3afeb66250ec.tar.gz
gsoc2013-evolution-7733348dcc86add1bdd241e20f7b3afeb66250ec.tar.zst
gsoc2013-evolution-7733348dcc86add1bdd241e20f7b3afeb66250ec.zip
add a "new_view_xid" arg, so the component has a window id to make use of
* Evolution-ShellComponent.idl (interactive): add a "new_view_xid" arg, so the component has a window id to make use of as a parent if it needs to pop up a dialog. * e-shell.c (set_interactive): Pass the new_view_xid when going interactive. (e_shell_set_interactive): Remove this since it wasn't being used, and couldn't be used for anything except lying to the components. * evolution-shell-component.c (evolution_shell_component_class_init): Update "interactive" signal definition (impl_interactive): Update prototype and signal emission * e-shell-marshal.list (NONE:BOOL,INT): add svn path=/trunk/; revision=20493
Diffstat (limited to 'shell/evolution-shell-component.c')
-rw-r--r--shell/evolution-shell-component.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/shell/evolution-shell-component.c b/shell/evolution-shell-component.c
index 9d184e1193..d08129c3c8 100644
--- a/shell/evolution-shell-component.c
+++ b/shell/evolution-shell-component.c
@@ -492,6 +492,7 @@ impl_debug (PortableServer_Servant servant,
static void
impl_interactive (PortableServer_Servant servant,
CORBA_boolean interactive,
+ CORBA_unsigned_long new_view_xid,
CORBA_Environment *ev)
{
BonoboObject *bonobo_object;
@@ -500,7 +501,8 @@ impl_interactive (PortableServer_Servant servant,
bonobo_object = bonobo_object_from_servant (servant);
shell_component = EVOLUTION_SHELL_COMPONENT (bonobo_object);
- g_signal_emit (shell_component, signals[INTERACTIVE], 0, interactive);
+ g_signal_emit (shell_component, signals[INTERACTIVE], 0,
+ interactive, new_view_xid);
}
static Bonobo_Control
@@ -921,9 +923,10 @@ evolution_shell_component_class_init (EvolutionShellComponentClass *klass)
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (EvolutionShellComponentClass, interactive),
NULL, NULL,
- e_shell_marshal_NONE__BOOL,
- G_TYPE_NONE, 1,
- G_TYPE_BOOLEAN);
+ e_shell_marshal_NONE__BOOL_INT,
+ G_TYPE_NONE, 2,
+ G_TYPE_BOOLEAN,
+ G_TYPE_INT);
signals[HANDLE_EXTERNAL_URI]
= g_signal_new ("handle_external_uri",