gtkrange.c



While reading the file gtkrange.c I noticed a redundancy which the following 
change will fix.

Padraig

Index: gtkrange.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkrange.c,v
retrieving revision 1.53
diff -u -p -r1.53 gtkrange.c
--- gtkrange.c  2001/05/17 16:22:04     1.53
+++ gtkrange.c  2001/06/01 10:28:47
@@ -870,9 +870,8 @@ gtk_range_destroy (GtkObject *object)
   gtk_range_remove_timer (range);
   if (range->adjustment)
     {
-      if (range->adjustment)
-       gtk_signal_disconnect_by_data (GTK_OBJECT (range->adjustment),
-                                      (gpointer) range);
+      gtk_signal_disconnect_by_data (GTK_OBJECT (range->adjustment),
+                                     (gpointer) range);
       gtk_object_unref (GTK_OBJECT (range->adjustment));
       range->adjustment = NULL;
     }





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