summaryrefslogtreecommitdiff
path: root/atk/atkobject.c
diff options
context:
space:
mode:
authorBill Haneman <billh@src.gnome.org>2006-02-24 14:25:46 +0000
committerBill Haneman <billh@src.gnome.org>2006-02-24 14:25:46 +0000
commit78ef68c54c66c840fb5a1de28d22dcee803c96e7 (patch)
tree98a6163eca4b60f3524463095a426ee639891dd8 /atk/atkobject.c
parent3c8d60cc7bd76f8b20300a1519a69f2e0aaa7e91 (diff)
downloadatk-78ef68c54c66c840fb5a1de28d22dcee803c96e7.tar.gz
Win32 get_locale fix from Kazuzi IWAMOTO, and
const patch from Arjan Van de Ven.
Diffstat (limited to 'atk/atkobject.c')
-rwxr-xr-xatk/atkobject.c48
1 files changed, 29 insertions, 19 deletions
diff --git a/atk/atkobject.c b/atk/atkobject.c
index 79019f6..80dca6f 100755
--- a/atk/atkobject.c
+++ b/atk/atkobject.c
@@ -77,7 +77,7 @@ struct _AtkRoleItem
gchar *name;
};
-static AtkRoleItem role_items [] =
+static const AtkRoleItem role_items [] =
{
{ ATK_ROLE_INVALID, N_("invalid")},
{ ATK_ROLE_ACCEL_LABEL, N_("accelerator label")},
@@ -216,21 +216,21 @@ static guint atk_object_signals[LAST_SIGNAL] = { 0, };
static gpointer parent_class = NULL;
-static const gchar* atk_object_name_property_name = "accessible-name";
-static const gchar* atk_object_name_property_description = "accessible-description";
-static const gchar* atk_object_name_property_parent = "accessible-parent";
-static const gchar* atk_object_name_property_value = "accessible-value";
-static const gchar* atk_object_name_property_role = "accessible-role";
-static const gchar* atk_object_name_property_component_layer = "accessible-component-layer";
-static const gchar* atk_object_name_property_component_mdi_zorder = "accessible-component-mdi-zorder";
-static const gchar* atk_object_name_property_table_caption = "accessible-table-caption";
-static const gchar* atk_object_name_property_table_column_description = "accessible-table-column-description";
-static const gchar* atk_object_name_property_table_column_header = "accessible-table-column-header";
-static const gchar* atk_object_name_property_table_row_description = "accessible-table-row-description";
-static const gchar* atk_object_name_property_table_row_header = "accessible-table-row-header";
-static const gchar* atk_object_name_property_table_summary = "accessible-table-summary";
-static const gchar* atk_object_name_property_table_caption_object = "accessible-table-caption-object";
-static const gchar* atk_object_name_property_hypertext_num_links = "accessible-hypertext-nlinks";
+static const gchar* const atk_object_name_property_name = "accessible-name";
+static const gchar* const atk_object_name_property_description = "accessible-description";
+static const gchar* const atk_object_name_property_parent = "accessible-parent";
+static const gchar* const atk_object_name_property_value = "accessible-value";
+static const gchar* const atk_object_name_property_role = "accessible-role";
+static const gchar* const atk_object_name_property_component_layer = "accessible-component-layer";
+static const gchar* const atk_object_name_property_component_mdi_zorder = "accessible-component-mdi-zorder";
+static const gchar* const atk_object_name_property_table_caption = "accessible-table-caption";
+static const gchar* const atk_object_name_property_table_column_description = "accessible-table-column-description";
+static const gchar* const atk_object_name_property_table_column_header = "accessible-table-column-header";
+static const gchar* const atk_object_name_property_table_row_description = "accessible-table-row-description";
+static const gchar* const atk_object_name_property_table_row_header = "accessible-table-row-header";
+static const gchar* const atk_object_name_property_table_summary = "accessible-table-summary";
+static const gchar* const atk_object_name_property_table_caption_object = "accessible-table-caption-object";
+static const gchar* const atk_object_name_property_hypertext_num_links = "accessible-hypertext-nlinks";
#ifdef G_OS_WIN32
@@ -240,11 +240,21 @@ static const gchar* atk_object_name_property_hypertext_num_links = "accessible-h
G_WIN32_DLLMAIN_FOR_DLL_NAME(static, dll_name)
-static char *
+static const char *
get_atk_locale_dir (void)
{
- return g_win32_get_package_installation_subdirectory
- (GETTEXT_PACKAGE, dll_name, "lib/locale");
+ static gchar *atk_localedir = NULL;
+
+ if (!atk_localedir)
+ {
+ gchar temp;
+
+ temp = g_win32_get_package_installation_subdirectory
+ (GETTEXT_PACKAGE, dll_name, "lib\\locale");
+ atk_localedir = g_win32_locale_filename_from_utf8 (temp);
+ g_free (temp);
+ }
+ return atk_localedir;
}
#endif