aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-calendar-item.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2003-11-13 04:17:38 +0800
committerJP Rosevear <jpr@src.gnome.org>2003-11-13 04:17:38 +0800
commitf0427b10105cd3046923d4362d73150cd5c7208f (patch)
tree61f947bca197fd4e6b2abc22b08434618169cc7e /widgets/misc/e-calendar-item.c
parent2ba68734fdf438ab3c0e519c03990ad388186a71 (diff)
downloadgsoc2013-evolution-f0427b10105cd3046923d4362d73150cd5c7208f.tar.gz
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/e-calendar-item.c')
-rw-r--r--widgets/misc/e-calendar-item.c22
1 files changed, 3 insertions, 19 deletions
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)
{