-/* 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
* 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 <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <string.h>
#include <gtk/gtk.h>
#include "gtkbuttonaccessible.h"
-#include <libgail-util/gailmisc.h>
static void atk_action_interface_init (AtkActionIface *iface);
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
- GAIL_WIDGET_CLASS (gtk_button_accessible_parent_class)->notify_gtk (obj, pspec);
+ GTK_WIDGET_ACCESSIBLE_CLASS (gtk_button_accessible_parent_class)->notify_gtk (obj, pspec);
}
static void
{
AtkObjectClass *class = ATK_OBJECT_CLASS (klass);
GtkContainerAccessibleClass *container_class = (GtkContainerAccessibleClass*)klass;
- GailWidgetClass *widget_class = (GailWidgetClass*)klass;
+ GtkWidgetAccessibleClass *widget_class = (GtkWidgetAccessibleClass*)klass;
class->get_name = gtk_button_accessible_get_name;
class->get_n_children = gtk_button_accessible_get_n_children;
gtk_button_accessible_get_keybinding (AtkAction *action,
gint i)
{
- GtkButtonAccessible *button;
gchar *return_value = NULL;
GtkWidget *widget;
GtkWidget *label;
if (i != 0)
return NULL;
- button = GTK_BUTTON_ACCESSIBLE (action);
-
label = get_label_from_button (widget);
if (GTK_IS_LABEL (label))
{
AtkCoordType coord_type)
{
GtkWidget *widget;
- GtkImage *button_image;
+ GtkWidget *button_image;
AtkObject *obj;
widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (image));
}
button_image = get_image_from_button (widget);
-
if (button_image != NULL)
{
- obj = gtk_widget_get_accessible (GTK_WIDGET (button_image));
+ obj = gtk_widget_get_accessible (button_image);
atk_component_get_position (ATK_COMPONENT (obj), x, y, coord_type);
}
else
gint *height)
{
GtkWidget *widget;
- GtkImage *button_image;
+ GtkWidget *button_image;
AtkObject *obj;
widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (image));
}
button_image = get_image_from_button (widget);
-
- if (button_image != NULL)
+ if (GTK_IS_IMAGE (button_image))
{
obj = gtk_widget_get_accessible (GTK_WIDGET (button_image));
atk_image_get_image_size (ATK_IMAGE (obj), width, height);
const gchar *description)
{
GtkWidget *widget;
- GtkImage *button_image;
+ GtkWidget *button_image;
AtkObject *obj;
widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (image));
return FALSE;
button_image = get_image_from_button (widget);
-
- if (button_image != NULL)
+ if (GTK_IMAGE (button_image))
{
obj = gtk_widget_get_accessible (GTK_WIDGET (button_image));
return atk_image_set_image_description (ATK_IMAGE (obj), description);