aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorLuke Yelavich <luke.yelavich@canonical.com>2011-02-08 17:55:35 +1100
committerLuke Yelavich <luke.yelavich@canonical.com>2011-02-08 17:55:35 +1100
commitfffab2e1e8d991a41cc591ceaca77c8a40f31f33 (patch)
tree357a2665a5cdda03ee4635d154a31c23b5adbf98 /example
parent31519e77b290d832f287c1daa6a90f8d6e11b136 (diff)
downloadlibayatana-appindicator-fffab2e1e8d991a41cc591ceaca77c8a40f31f33.tar.gz
libayatana-appindicator-fffab2e1e8d991a41cc591ceaca77c8a40f31f33.tar.bz2
libayatana-appindicator-fffab2e1e8d991a41cc591ceaca77c8a40f31f33.zip
accessible_name -> accessible_desc
Diffstat (limited to 'example')
-rw-r--r--example/simple-client.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/example/simple-client.c b/example/simple-client.c
index 9c9a14b..d5c9ad8 100644
--- a/example/simple-client.c
+++ b/example/simple-client.c
@@ -49,9 +49,9 @@ a11yname_toggle_cb (GtkWidget * widget, gpointer data)
can_haz_a11yname = !can_haz_a11yname;
if (can_haz_a11yname) {
- gtk_menu_item_set_label(GTK_MENU_ITEM(widget), "Hide accessible name");
+ gtk_menu_item_set_label(GTK_MENU_ITEM(widget), "Hide accessible description");
} else {
- gtk_menu_item_set_label(GTK_MENU_ITEM(widget), "Show accessible name");
+ gtk_menu_item_set_label(GTK_MENU_ITEM(widget), "Show accessible description");
}
return;
@@ -157,10 +157,10 @@ percent_change (gpointer user_data)
}
if (can_haz_a11yname) {
gchar * percentstr = g_strdup_printf("%d%%", percentage + 1);
- app_indicator_set_accessible_name (APP_INDICATOR(user_data), percentstr);
+ app_indicator_set_accessible_desc (APP_INDICATOR(user_data), percentstr);
g_free(percentstr);
} else {
- app_indicator_set_accessible_name (APP_INDICATOR(user_data), NULL);
+ app_indicator_set_accessible_desc (APP_INDICATOR(user_data), NULL);
}
return TRUE;
}
@@ -235,7 +235,7 @@ main (int argc, char ** argv)
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
gtk_widget_show(item);
- item = gtk_menu_item_new_with_label ("Show accessible name");
+ item = gtk_menu_item_new_with_label ("Show accessible description");
a11yname_toggle_cb(item, ci);
g_signal_connect (item, "activate",
G_CALLBACK (a11yname_toggle_cb), ci);