diff options
author | Matthias Clasen <mclasen@redhat.com> | 2012-12-27 01:06:30 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2012-12-27 11:27:45 -0500 |
commit | 651241b6850c60d0b93adbd1df751331b3a64c2b (patch) | |
tree | b21546ec1278611a3cff2cb6be7b6e036fd3871c /gtk/a11y | |
parent | 221ac71278f122a964bfee4b6f71010fa72d488b (diff) | |
download | gtk+-651241b6850c60d0b93adbd1df751331b3a64c2b.tar.gz |
Some renaming
Move gail.h to gtkaccessibility.h, and libgail to libgtka11y.
Diffstat (limited to 'gtk/a11y')
-rw-r--r-- | gtk/a11y/Makefile.am | 32 | ||||
-rw-r--r-- | gtk/a11y/gtkaccessibility.c (renamed from gtk/a11y/gail.c) | 17 | ||||
-rw-r--r-- | gtk/a11y/gtkaccessibility.h (renamed from gtk/a11y/gail.h) | 12 |
3 files changed, 30 insertions, 31 deletions
diff --git a/gtk/a11y/Makefile.am b/gtk/a11y/Makefile.am index cc0bb7c7e1..66481a63cd 100644 --- a/gtk/a11y/Makefile.am +++ b/gtk/a11y/Makefile.am @@ -1,9 +1,9 @@ include $(top_srcdir)/Makefile.decl -noinst_LTLIBRARIES = libgail.la +noinst_LTLIBRARIES = libgtka11y.la -gail_c_sources = \ - gail.c \ +gtka11y_c_sources = \ + gtkaccessibility.c \ gtkarrowaccessible.c \ gtkbooleancellaccessible.c \ gtkbuttonaccessible.c \ @@ -104,15 +104,15 @@ gail_private_h_sources = \ gtktreeviewaccessibleprivate.h \ gtktextviewaccessibleprivate.h \ gtkwidgetaccessibleprivate.h \ - gail.h \ + gtkaccessibility.h \ gailutil.h \ gailmisc.h -libgail_la_SOURCES = \ - $(gail_c_sources) \ - $(gail_private_h_sources) +libgtka11y_la_SOURCES = \ + $(gtka11y_c_sources) \ + $(gtka11y_private_h_sources) -libgail_la_CPPFLAGS = \ +libgtka11y_la_CPPFLAGS = \ -I$(top_srcdir) \ -I$(top_srcdir)/gdk \ -I$(top_builddir)/gdk \ @@ -122,18 +122,18 @@ libgail_la_CPPFLAGS = \ -DGTK_COMPILATION \ $(AM_CPPFLAGS) -libgail_la_CFLAGS = \ - $(GTK_DEP_CFLAGS) \ - $(GTK_DEBUG_FLAGS) \ +libgtka11y_la_CFLAGS = \ + $(GTK_DEP_CFLAGS) \ + $(GTK_DEBUG_FLAGS) \ $(AM_CFLAGS) -libgail_la_LIBADD = \ - $(GTK_DEP_LIBS) \ +libgtka11y_la_LIBADD = \ + $(GTK_DEP_LIBS) \ $(INTLLIBS) -libgail_la_LDFLAGS = \ +libgtka11y_la_LDFLAGS = \ $(LDFLAGS) - + dist-hook: ../../build/win32/vs9/libgail.vcproj ../../build/win32/vs10/libgail.vcxproj ../../build/win32/vs10/libgail.vcxproj.filters ../../build/win32/vs9/libgail.vcproj: ../../build/win32/vs9/libgail.vcprojin @@ -145,7 +145,7 @@ dist-hook: ../../build/win32/vs9/libgail.vcproj ../../build/win32/vs10/libgail.v done >libgail.sourcefiles $(CPP) -P - <$(top_srcdir)/build/win32/vs9/libgail.vcprojin >$@ rm libgail.sourcefiles - + ../../build/win32/vs10/libgail.vcxproj: ../../build/win32/vs10/libgail.vcxprojin for F in $(libgail_la_SOURCES); do \ case $$F in \ diff --git a/gtk/a11y/gail.c b/gtk/a11y/gtkaccessibility.c index 8f50846da8..278762f47a 100644 --- a/gtk/a11y/gail.c +++ b/gtk/a11y/gtkaccessibility.c @@ -1,4 +1,4 @@ -/* GAIL - The GNOME Accessibility Implementation Library +/* GTK+ - accessibility implementations * Copyright 2001 Sun Microsystems Inc. * * This library is free software; you can redistribute it and/or @@ -17,7 +17,7 @@ #include "config.h" -#include "gail.h" +#include "gtkaccessibility.h" #include <stdio.h> #include <stdlib.h> @@ -66,7 +66,7 @@ static void gail_focus_tracker_init (void); static void gail_focus_object_destroyed (gpointer data); static void gail_focus_tracker (AtkObject *object); static void gail_set_focus_widget (GtkWidget *focus_widget, - GtkWidget *widget); + GtkWidget *widget); static void gail_set_focus_object (AtkObject *focus_obj, AtkObject *obj); @@ -75,14 +75,14 @@ static GtkWidget* next_focus_widget = NULL; static gboolean was_deselect = FALSE; static GtkWidget* subsequent_focus_widget = NULL; static GtkWidget* focus_before_menu = NULL; -static guint focus_notify_handler = 0; +static guint focus_notify_handler = 0; static guint focus_tracker_id = 0; static GQuark quark_focus_object = 0; static int initialized = FALSE; static AtkObject* -gail_get_accessible_for_widget (GtkWidget *widget, - gboolean *transient) +get_accessible_for_widget (GtkWidget *widget, + gboolean *transient) { AtkObject *obj = NULL; @@ -516,13 +516,13 @@ gail_focus_notify (GtkWidget *widget) else { if (_focus_widget) - atk_obj = gail_get_accessible_for_widget (_focus_widget, &transient); + atk_obj = get_accessible_for_widget (_focus_widget, &transient); else atk_obj = NULL; /* * Do not report focus on redundant object */ - if (atk_obj && + if (atk_obj && (atk_object_get_role(atk_obj) != ATK_ROLE_REDUNDANT_OBJECT)) atk_focus_tracker_notify (atk_obj); if (atk_obj && transient) @@ -816,7 +816,6 @@ _gtk_accessibility_shutdown (void) void _gtk_accessibility_init (void) { - if (initialized) return; diff --git a/gtk/a11y/gail.h b/gtk/a11y/gtkaccessibility.h index 62804516cb..437bc0efa5 100644 --- a/gtk/a11y/gail.h +++ b/gtk/a11y/gtkaccessibility.h @@ -1,4 +1,4 @@ -/* GAIL - The GNOME Accessibility Implementation Library +/* GTK+ - accessibility implementations * Copyright 2001 Sun Microsystems Inc. * * This library is free software; you can redistribute it and/or @@ -15,16 +15,16 @@ * License along with this library. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef __GTK_GAIL_H__ -#define __GTK_GAIL_H__ +#ifndef __GTK_ACCESSIBILITY_H__ +#define __GTK_ACCESSIBILITY_H__ #include <glib.h> G_BEGIN_DECLS -void _gtk_accessibility_shutdown (void); -void _gtk_accessibility_init (void); +void _gtk_accessibility_shutdown (void); +void _gtk_accessibility_init (void); G_END_DECLS -#endif /* __GTK_GAIL_H__ */ +#endif /* __GTK_ACCESSIBILITY_H__ */ |