+2003-02-25 Tor Lillqvist <tml@iki.fi>
+
+ * Makefile.am (EXTRA_DIST): Dist atk-zip.sh.in, not atk-zip.sh.
+
+ * atk/atk.def: Add a couple of missing entries, thanks to Cedric
+ Gustin.
+
+ * atk/atk.rc.in: New file, for version info in the DLL on
+ Windows. Similar as in GLib, GTK, etc.
+
+ * configure.in: Generate atk/atk.rc.
+
+ * atk/Makefile.am: Use atk.rc on Windows.
+ (EXTRA_DIST): Distribute atk.rc(.in).
+
+ * atk/atkobject.c: On Windows, don't use hardcoded ATKLOCALEDIR,
+ but deduce it from DLL location, like GLib, GTK etc do.
+
2003-02-23 Abel Cheung <maddog@linux.org.hk>
* configure.in: Added "mk" to ALL_LINGUAS.
atk.pc.in \
atk.spec.in \
atk.spec \
- atk-zip.sh
+ atk-zip.sh.in
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = atk.pc
# which are more like other make's VPATH.
GPATH = $(srcdir)
-EXTRA_DIST = atk.def
+EXTRA_DIST = atk.def atk.rc atk.rc.in
+
if OS_WIN32
export_symbols = -export-symbols atk.def
no_undefined = -no-undefined
+atk_win32res = atk-win32res.lo
+
install-libtool-import-lib:
$(INSTALL) .libs/libatk-$(ATK_API_VERSION).dll.a $(DESTDIR)$(libdir)
uninstall-libtool-import-lib:
atkvalue.c \
$(atk_built_cfiles)
+libatk_1_0_la_LIBADD = $(atk_win32res)
+libatk_1_0_la_DEPENDENCIES = $(atk_win32res)
+
EXTRA_DIST += atkmarshal.list \
atkintl.h
$(libatk_1_0_la_OBJECTS): atkmarshal.c atkmarshal.h $(atk_built_headers)
+atk-win32res.lo: atk.rc
+ $(top_srcdir)/../glib/build/win32/lt-compile-resource atk.rc atk-win32res.lo
+
atkmarshal.h: @REBUILD@ stamp-atkmarshal.h
@true
stamp-atkmarshal.h: atkmarshal.list
atk_action_do_action
atk_action_get_description
atk_action_get_keybinding
+ atk_action_get_localized_name
atk_action_get_n_actions
atk_action_get_name
atk_action_get_type
atk_component_add_focus_handler
atk_component_contains
atk_component_get_extents
+ atk_component_get_layer
+ atk_component_get_mdi_zorder
atk_component_get_position
atk_component_get_size
atk_component_get_type
atk_no_op_object_factory_new
atk_no_op_object_get_type
atk_no_op_object_new
+ atk_object_add_relationship
atk_object_connect_property_change_handler
atk_object_factory_create_accessible
atk_object_factory_get_accessible_type
atk_remove_global_event_listener
atk_remove_key_event_listener
atk_role_for_name
+ atk_role_get_localized_name
atk_role_get_name
atk_role_get_type
atk_role_register
--- /dev/null
+#include <winver.h>
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION @ATK_MAJOR_VERSION@,@ATK_MINOR_VERSION@,@ATK_MICRO_VERSION@,BUILDNUMBER
+ PRODUCTVERSION @ATK_MAJOR_VERSION@,@ATK_MINOR_VERSION@,@ATK_MICRO_VERSION@,0
+ FILEFLAGSMASK 0
+ FILEFLAGS 0
+ FILEOS VOS__WINDOWS32
+ FILETYPE VFT_DLL
+ FILESUBTYPE VFT2_UNKNOWN
+ BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "040904B0"
+ BEGIN
+ VALUE "CompanyName", "Sun Microsystems Inc."
+ VALUE "FileDescription", "atk"
+ VALUE "FileVersion", "@ATK_VERSION@.BUILDNUMBER"
+ VALUE "InternalName", "libatk-1.0-@LT_CURRENT_MINUS_AGE@"
+ VALUE "LegalCopyright", "Copyright © Sun Microsystems Inc."
+ VALUE "OriginalFilename", "libatk-1.0-@LT_CURRENT_MINUS_AGE@.dll"
+ VALUE "ProductName", "atk"
+ VALUE "ProductVersion", "@ATK_VERSION@"
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x409, 1200
+ END
+ END
#include <glib-object.h>
+#ifdef G_OS_WIN32
+#define STRICT
+#include <windows.h>
+#undef STRICT
+#undef FOCUS_EVENT /* <windows.h> pollutes the namespace
+ * like a six hundred pound gorilla */
+#endif
+
#include "atk.h"
#include "atkmarshal.h"
#include "atk-enum-types.h"
return name;
}
+#ifdef G_OS_WIN32
+
+#undef ATKLOCALEDIR
+
+#define ATKLOCALEDIR get_atk_locale_dir()
+
+G_WIN32_DLLMAIN_FOR_DLL_NAME(static, dll_name)
+
+static char *
+get_atk_locale_dir (void)
+{
+ return g_win32_get_package_installation_subdirectory
+ (GETTEXT_PACKAGE, dll_name, "lib/locale");
+}
+
+#endif
+
/**
* atk_role_get_localized_name:
* @role: The #AtkRole whose localized name is required
atk.pc
atk-uninstalled.pc
atk/Makefile
+atk/atk.rc
tests/Makefile
docs/Makefile
atk.spec