[gnome-applets/wip/segeiger/windowpicker: 9/18] windowpicker: drop obsolete dispose vfuncs



commit e58dad2d781cbf0d07e8712a3bfbbc26a6504b99
Author: Sebastian Geiger <sbastig gmx net>
Date:   Sat Oct 12 15:29:12 2019 +0200

    windowpicker: drop obsolete dispose vfuncs

 windowpicker/src/task-item.c | 11 ++---------
 windowpicker/src/task-list.c |  9 ---------
 2 files changed, 2 insertions(+), 18 deletions(-)
---
diff --git a/windowpicker/src/task-item.c b/windowpicker/src/task-item.c
index 75d77ba91..79ff5e1b2 100644
--- a/windowpicker/src/task-item.c
+++ b/windowpicker/src/task-item.c
@@ -766,14 +766,6 @@ static void task_item_setup_atk (TaskItem *item) {
     atk_object_set_role (atk, ATK_ROLE_PUSH_BUTTON);
 }
 
-static void
-task_item_dispose (GObject *object)
-{
-    TaskItem *task_item = TASK_ITEM (object);
-
-    G_OBJECT_CLASS (task_item_parent_class)->dispose (object);
-}
-
 static void task_item_finalize (GObject *object) {
     TaskItem *item = TASK_ITEM (object);
 
@@ -789,8 +781,9 @@ static void task_item_finalize (GObject *object) {
 static void task_item_class_init (TaskItemClass *klass) {
     GObjectClass *obj_class      = G_OBJECT_CLASS (klass);
     GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
-    obj_class->dispose = task_item_dispose;
+
     obj_class->finalize = task_item_finalize;
+
     widget_class->get_preferred_width = task_item_get_preferred_width;
     widget_class->get_preferred_height = task_item_get_preferred_height;
     task_item_signals [TASK_ITEM_CLOSED_SIGNAL] =
diff --git a/windowpicker/src/task-list.c b/windowpicker/src/task-list.c
index c7a316ec2..b4dda3bd5 100644
--- a/windowpicker/src/task-list.c
+++ b/windowpicker/src/task-list.c
@@ -338,14 +338,6 @@ window_filter_function (GdkXEvent *gdk_xevent,
   return GDK_FILTER_CONTINUE;
 }
 
-static void
-task_list_dispose (GObject *object)
-{
-    TaskList *task_list = TASK_LIST (object);
-
-    G_OBJECT_CLASS (task_list_parent_class)->dispose (object);
-}
-
 static void
 task_list_finalize (GObject *object)
 {
@@ -366,7 +358,6 @@ static void
 task_list_class_init(TaskListClass *class) {
     GObjectClass *obj_class = G_OBJECT_CLASS (class);
 
-    obj_class->dispose = task_list_dispose;
     obj_class->finalize = task_list_finalize;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]