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

index ad723ea3f8625a0c92a8695b6c09f92b7a4b9005..dc6b1fefbd73109406199f44c6fe05a6ab1f3bba 100644 (file)
@@ -9,7 +9,6 @@
 #ifdef HAVE_UNISTD_H 
 #include <unistd.h>
 #endif
-#include <string.h>
 #include <stdio.h>
 
 #include <gtk/gtk.h>
@@ -125,20 +124,3 @@ create_pixbuf                          (const gchar     *filename)
   g_free (pathname);
   return pixbuf;
 }
-
-/* This is used to set ATK action descriptions. */
-void
-glade_set_atk_action_description       (AtkAction       *action,
-                                        const gchar     *action_name,
-                                        const gchar     *description)
-{
-  gint n_actions, i;
-
-  n_actions = atk_action_get_n_actions (action);
-  for (i = 0; i < n_actions; i++)
-    {
-      if (!strcmp (atk_action_get_name (action, i), action_name))
-        atk_action_set_description (action, i, description);
-    }
-}
-
index 6002f8bdb9f0e0d1ba3caadd583181329430734d..d96659baf22db920cb43c1791c7e16c8e572e81f 100644 (file)
@@ -59,9 +59,3 @@ GtkWidget*  create_pixmap              (GtkWidget       *widget,
 
 /* This is used to create the pixbufs used in the interface. */
 GdkPixbuf*  create_pixbuf              (const gchar     *filename);
-
-/* This is used to set ATK action descriptions. */
-void        glade_set_atk_action_description (AtkAction       *action,
-                                              const gchar     *action_name,
-                                              const gchar     *description);
-