[planner: 60/61] sidebar: Port away from GtkObject
- From: Mart Raudsepp <mraudsepp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [planner: 60/61] sidebar: Port away from GtkObject
- Date: Sat, 12 Jun 2021 17:30:30 +0000 (UTC)
commit 91384a164f4d13045bac720b2cc811a0d4dcb3ef
Author: Mart Raudsepp <leio gentoo org>
Date: Sun Mar 21 18:37:16 2021 +0200
sidebar: Port away from GtkObject
The GtkObject::destroy override here did nothing, so just drop it in
preparation of GTK3 together with other GtkObject usage removals.
src/planner-sidebar.c | 13 -------------
1 file changed, 13 deletions(-)
---
diff --git a/src/planner-sidebar.c b/src/planner-sidebar.c
index 027a6d4c..15d423f5 100644
--- a/src/planner-sidebar.c
+++ b/src/planner-sidebar.c
@@ -48,7 +48,6 @@ enum {
static void sidebar_class_init (PlannerSidebarClass *klass);
static void sidebar_init (PlannerSidebar *bar);
static void sidebar_finalize (GObject *object);
-static void sidebar_destroy (GtkObject *object);
static void sidebar_event_box_realize_cb (GtkWidget *widget,
PlannerSidebar *bar);
static void sidebar_style_set (GtkWidget *widget,
@@ -88,19 +87,15 @@ static void
sidebar_class_init (PlannerSidebarClass *class)
{
GObjectClass *o_class;
- GtkObjectClass *object_class;
GtkWidgetClass *widget_class;
parent_class = g_type_class_peek_parent (class);
o_class = (GObjectClass *) class;
- object_class = (GtkObjectClass *) class;
widget_class = (GtkWidgetClass *) class;
o_class->finalize = sidebar_finalize;
- object_class->destroy = sidebar_destroy;
-
widget_class->style_set = sidebar_style_set;
/* Signals. */
@@ -152,14 +147,6 @@ sidebar_finalize (GObject *object)
}
}
-static void
-sidebar_destroy (GtkObject *object)
-{
- if (GTK_OBJECT_CLASS (parent_class)->destroy) {
- (* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
- }
-}
-
static void
sidebar_hls_to_rgb (gdouble *h,
gdouble *l,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]