X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fa11y%2Fgtkbuttonaccessible.c;h=3ba94d30cf66e1e89dac0e984ad8001cdf888f61;hb=a960230a20f86ebb31594a40132e341c1b7a7c21;hp=ff3a6b234db527bdad235bf9761f6640e3083551;hpb=b80fb88aff51b6d464c3a62663eb6bce33d3ce08;p=~andy%2Fgtk
diff --git a/gtk/a11y/gtkbuttonaccessible.c b/gtk/a11y/gtkbuttonaccessible.c
index ff3a6b234..3ba94d30c 100644
--- a/gtk/a11y/gtkbuttonaccessible.c
+++ b/gtk/a11y/gtkbuttonaccessible.c
@@ -1,4 +1,4 @@
-/* GAIL - The GNOME Accessibility Implementation Library
+/* GTK+ - accessibility implementations
* Copyright 2001, 2002, 2003 Sun Microsystems Inc.
*
* This library is free software; you can redistribute it and/or
@@ -12,15 +12,14 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see .
*/
#include "config.h"
#include
#include
+#include
#include "gtkbuttonaccessible.h"
@@ -215,7 +214,7 @@ gtk_button_accessible_notify_gtk (GObject *obj,
if (atk_obj->name == NULL)
g_object_notify (G_OBJECT (atk_obj), "accessible-name");
- g_signal_emit_by_name (atk_obj, "visible_data_changed");
+ g_signal_emit_by_name (atk_obj, "visible-data-changed");
}
else
GTK_WIDGET_ACCESSIBLE_CLASS (gtk_button_accessible_parent_class)->notify_gtk (obj, pspec);
@@ -329,10 +328,27 @@ static const gchar *
gtk_button_accessible_action_get_name (AtkAction *action,
gint i)
{
- if (i != 0)
- return NULL;
+ if (i == 0)
+ return "click";
+ return NULL;
+}
+
+static const gchar *
+gtk_button_accessible_action_get_localized_name (AtkAction *action,
+ gint i)
+{
+ if (i == 0)
+ return C_("Action name", "Click");
+ return NULL;
+}
- return "click";
+static const gchar *
+gtk_button_accessible_action_get_description (AtkAction *action,
+ gint i)
+{
+ if (i == 0)
+ return C_("Action description", "Clicks the button");
+ return NULL;
}
static void
@@ -342,6 +358,8 @@ atk_action_interface_init (AtkActionIface *iface)
iface->get_n_actions = gtk_button_accessible_get_n_actions;
iface->get_keybinding = gtk_button_accessible_get_keybinding;
iface->get_name = gtk_button_accessible_action_get_name;
+ iface->get_localized_name = gtk_button_accessible_action_get_localized_name;
+ iface->get_description = gtk_button_accessible_action_get_description;
}
static const gchar *