[gtk/wip/baedert/for-master: 45/56] scalebutton: Remove unused click_id member



commit e603d7015287a11cd0cca7b9f7808bc7c0e717e9
Author: Timm Bäder <mail baedert org>
Date:   Mon Apr 27 11:55:00 2020 +0200

    scalebutton: Remove unused click_id member

 gtk/gtkscalebutton.c | 9 ---------
 1 file changed, 9 deletions(-)
---
diff --git a/gtk/gtkscalebutton.c b/gtk/gtkscalebutton.c
index 809e790857..4029279bf8 100644
--- a/gtk/gtkscalebutton.c
+++ b/gtk/gtkscalebutton.c
@@ -119,8 +119,6 @@ typedef struct
   GtkScrollType autoscroll_step;
   gboolean autoscrolling;
 
-  guint click_id;
-
   gchar **icon_list;
 
   GtkAdjustment *adjustment; /* needed because it must be settable in init() */
@@ -409,7 +407,6 @@ gtk_scale_button_init (GtkScaleButton *button)
   GtkScaleButtonPrivate *priv = gtk_scale_button_get_instance_private (button);
   GtkEventController *controller;
 
-  priv->click_id = 0;
   priv->orientation = GTK_ORIENTATION_VERTICAL;
   priv->applied_orientation = GTK_ORIENTATION_VERTICAL;
 
@@ -542,12 +539,6 @@ gtk_scale_button_dispose (GObject *object)
   g_clear_pointer (&priv->dock, gtk_widget_unparent);
   g_clear_pointer (&priv->button, gtk_widget_unparent);
 
-  if (priv->click_id != 0)
-    {
-      g_source_remove (priv->click_id);
-      priv->click_id = 0;
-    }
-
   G_OBJECT_CLASS (gtk_scale_button_parent_class)->dispose (object);
 }
 


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