diff options
author | JP Rosevear <jpr@ximian.com> | 2003-11-13 04:17:38 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2003-11-13 04:17:38 +0800 |
commit | f0427b10105cd3046923d4362d73150cd5c7208f (patch) | |
tree | 61f947bca197fd4e6b2abc22b08434618169cc7e /widgets/misc | |
parent | 2ba68734fdf438ab3c0e519c03990ad388186a71 (diff) | |
download | gsoc2013-evolution-f0427b10105cd3046923d4362d73150cd5c7208f.tar gsoc2013-evolution-f0427b10105cd3046923d4362d73150cd5c7208f.tar.gz gsoc2013-evolution-f0427b10105cd3046923d4362d73150cd5c7208f.tar.bz2 gsoc2013-evolution-f0427b10105cd3046923d4362d73150cd5c7208f.tar.lz gsoc2013-evolution-f0427b10105cd3046923d4362d73150cd5c7208f.tar.xz gsoc2013-evolution-f0427b10105cd3046923d4362d73150cd5c7208f.tar.zst gsoc2013-evolution-f0427b10105cd3046923d4362d73150cd5c7208f.zip |
a canvas item does not inherit from gtkwidget
2003-11-12 JP Rosevear <jpr@ximian.com>
* e-calendar-item.c (e_calendar_item_class_init): a canvas item
does not inherit from gtkwidget
svn path=/trunk/; revision=23298
Diffstat (limited to 'widgets/misc')
-rw-r--r-- | widgets/misc/ChangeLog | 5 | ||||
-rw-r--r-- | widgets/misc/e-calendar-item.c | 22 |
2 files changed, 8 insertions, 19 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog index 134ce4d7f5..d21d38e1fe 100644 --- a/widgets/misc/ChangeLog +++ b/widgets/misc/ChangeLog @@ -1,3 +1,8 @@ +2003-11-12 JP Rosevear <jpr@ximian.com> + + * e-calendar-item.c (e_calendar_item_class_init): a canvas item + does not inherit from gtkwidget + 2003-11-11 Bolian Yin <bolian.yin@sun.com> Fixes #50538 diff --git a/widgets/misc/e-calendar-item.c b/widgets/misc/e-calendar-item.c index e929587f8f..d9dbbd577f 100644 --- a/widgets/misc/e-calendar-item.c +++ b/widgets/misc/e-calendar-item.c @@ -252,14 +252,12 @@ static void e_calendar_item_class_init (ECalendarItemClass *class) { GtkObjectClass *object_class; - GtkWidgetClass *widget_class; GnomeCanvasItemClass *item_class; - parent_class = g_type_class_ref(gnome_canvas_item_get_type()); + parent_class = g_type_class_peek_parent (class); - object_class = (GtkObjectClass *) class; - widget_class = (GtkWidgetClass *) class; - item_class = (GnomeCanvasItemClass *) class; + object_class = GTK_OBJECT_CLASS (class); + item_class = GNOME_CANVAS_ITEM_CLASS (class); gtk_object_add_arg_type ("ECalendarItem::year", GTK_TYPE_INT, GTK_ARG_READWRITE, @@ -352,7 +350,6 @@ e_calendar_item_class_init (ECalendarItemClass *class) object_class->get_arg = e_calendar_item_get_arg; object_class->set_arg = e_calendar_item_set_arg; - widget_class->focus = e_calendar_item_focus; /* GnomeCanvasItem method overrides */ item_class->realize = e_calendar_item_realize; item_class->unrealize = e_calendar_item_unrealize; @@ -689,19 +686,6 @@ e_calendar_item_set_arg (GtkObject *o, GtkArg *arg, guint arg_id) } } -static gboolean -e_calendar_item_focus (GtkWidget *widget, GtkDirectionType direction) -{ - ECalendarItem *calitem; - - g_return_val_if_fail (widget != NULL, FALSE); - g_return_val_if_fail (E_IS_CALENDAR_ITEM (widget), FALSE); - calitem = E_CALENDAR_ITEM (widget); - - GTK_WIDGET_CLASS (parent_class)->focus (widget, direction); - return TRUE; -} - static void e_calendar_item_realize (GnomeCanvasItem *item) { |