]> granicus.if.org Git - graphviz/commitdiff
GTK plugin: remove unnecessary casts
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 2 Apr 2022 19:34:36 +0000 (12:34 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 5 Apr 2022 01:41:06 +0000 (18:41 -0700)
plugin/gtk/support.c

index f26a24e77baedc6751aac06f18601008302e2105..b44113efe53a6b7bc650caa6a2d06bbb13e1025d 100644 (file)
@@ -19,14 +19,13 @@ lookup_widget                          (GtkWidget       *widget,
       else
         parent = widget->parent;
       if (!parent)
-        parent = (GtkWidget*) g_object_get_data (G_OBJECT (widget), "GladeParentKey");
+        parent = g_object_get_data(G_OBJECT(widget), "GladeParentKey");
       if (parent == NULL)
         break;
       widget = parent;
     }
 
-  found_widget = (GtkWidget*) g_object_get_data (G_OBJECT (widget),
-                                                 widget_name);
+  found_widget = g_object_get_data(G_OBJECT(widget), widget_name);
   if (!found_widget)
     g_warning ("Widget not found: %s", widget_name);
   return found_widget;