-/* GAIL - The GNOME Accessibility Implementation Library
+/* GTK+ - accessibility implementations
* Copyright 2008 Jan Arne Petersen
*
* This library is free software; you can redistribute it and/or
#include <config.h>
+#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>
#include "gtkscalebuttonaccessible.h"
gtk_scale_button_accessible_get_description (AtkAction *action,
gint i)
{
- return NULL;
+ switch (i)
+ {
+ case 0:
+ return C_("Action description", "Pops up the slider");
+ case 1:
+ return C_("Action description", "Dismisses the slider");
+ default:
+ return NULL;
+ }
}
static const gchar *
}
}
+static const gchar *
+gtk_scale_button_accessible_action_get_localized_name (AtkAction *action,
+ gint i)
+{
+ switch (i)
+ {
+ case 0:
+ return C_("Action name", "Popup");
+ case 1:
+ return C_("Action name", "Dismiss");
+ default:
+ return NULL;
+ }
+}
+
static void
atk_action_interface_init (AtkActionIface *iface)
{
iface->get_n_actions = gtk_scale_button_accessible_get_n_actions;
iface->get_description = gtk_scale_button_accessible_get_description;
iface->get_name = gtk_scale_button_accessible_action_get_name;
+ iface->get_localized_name = gtk_scale_button_accessible_action_get_localized_name;
}
static void