aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/evolution-calendar-control.c
diff options
context:
space:
mode:
authorSeth Alves <alves@src.gnome.org>2000-04-07 02:55:32 +0800
committerSeth Alves <alves@src.gnome.org>2000-04-07 02:55:32 +0800
commit80ec1e99978688c41c7e8d02e1ae4c6da9fd480c (patch)
treedce750e11b9488cff5fbc97feb210ecca1c1dbd4 /calendar/gui/evolution-calendar-control.c
parent664197d4456ceb86ef4a3bd01efc93a7a8eb7aef (diff)
downloadgsoc2013-evolution-80ec1e99978688c41c7e8d02e1ae4c6da9fd480c.tar
gsoc2013-evolution-80ec1e99978688c41c7e8d02e1ae4c6da9fd480c.tar.gz
gsoc2013-evolution-80ec1e99978688c41c7e8d02e1ae4c6da9fd480c.tar.bz2
gsoc2013-evolution-80ec1e99978688c41c7e8d02e1ae4c6da9fd480c.tar.lz
gsoc2013-evolution-80ec1e99978688c41c7e8d02e1ae4c6da9fd480c.tar.xz
gsoc2013-evolution-80ec1e99978688c41c7e8d02e1ae4c6da9fd480c.tar.zst
gsoc2013-evolution-80ec1e99978688c41c7e8d02e1ae4c6da9fd480c.zip
removed uih from the argument list, added cal. use cal as user_data in
* gui/calendar-commands.c (calendar_control_activate): removed uih from the argument list, added cal. use cal as user_data in callbacks rather than the control. (calendar_control_deactivate): removed uih from argument list svn path=/trunk/; revision=2311
Diffstat (limited to 'calendar/gui/evolution-calendar-control.c')
-rw-r--r--calendar/gui/evolution-calendar-control.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/calendar/gui/evolution-calendar-control.c b/calendar/gui/evolution-calendar-control.c
index b1c436b716..028a3bc1c5 100644
--- a/calendar/gui/evolution-calendar-control.c
+++ b/calendar/gui/evolution-calendar-control.c
@@ -24,15 +24,10 @@ control_activate_cb (BonoboControl *control,
gboolean activate,
gpointer user_data)
{
- BonoboUIHandler *uih;
-
- uih = bonobo_control_get_ui_handler (control);
- g_assert (uih);
-
if (activate)
- calendar_control_activate (control, uih);
+ calendar_control_activate (control, user_data);
else
- calendar_control_deactivate (control, uih);
+ calendar_control_deactivate (control);
}
@@ -40,17 +35,15 @@ static BonoboObject *
calendar_factory (BonoboGenericFactory *Factory, void *closure)
{
BonoboControl *control;
- GnomeCalendar *cal;
/* Create the control. */
- //cal = gnome_calendar_new ("unnamed");
- cal = new_calendar ("title", NULL, NULL, NULL, 0);
+ GnomeCalendar *cal = new_calendar ("title", NULL, NULL, NULL, 0);
gtk_widget_show (GTK_WIDGET (cal));
control = bonobo_control_new (GTK_WIDGET (cal));
gtk_signal_connect (GTK_OBJECT (control), "activate",
- control_activate_cb, NULL);
+ control_activate_cb, cal);
return BONOBO_OBJECT (control);
}