diff options
author | Luke Yelavich <[email protected]> | 2019-06-07 09:49:20 +1000 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-06-09 12:07:22 +0200 |
commit | 325483e33c8ddcb4f876a456d3d981bdc0e0e7f4 (patch) | |
tree | 7366b22bc16dbe4b133b8f6272aad677c7790a4d /libcaja-private/caja-progress-info.c | |
parent | 3b982d3ed2774f08b6210c83657e1f5c85d80516 (diff) | |
download | caja-325483e33c8ddcb4f876a456d3d981bdc0e0e7f4.tar.bz2 caja-325483e33c8ddcb4f876a456d3d981bdc0e0e7f4.tar.xz |
Add accessible names for buttons in file transfer operations dialog
Diffstat (limited to 'libcaja-private/caja-progress-info.c')
-rw-r--r-- | libcaja-private/caja-progress-info.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcaja-private/caja-progress-info.c b/libcaja-private/caja-progress-info.c index dce63460..1c2dee32 100644 --- a/libcaja-private/caja-progress-info.c +++ b/libcaja-private/caja-progress-info.c @@ -411,10 +411,12 @@ start_button_update_view (ProgressWidgetData *data) if (state == STATE_RUNNING || state == STATE_QUEUING) { toapply = g_object_get_data (G_OBJECT(button), STARTBT_DATA_IMAGE_PAUSE); + atk_object_set_name (gtk_widget_get_accessible (button), _("Pause")); as_pause = TRUE; } else { toapply = g_object_get_data (G_OBJECT(button), STARTBT_DATA_IMAGE_RESUME); + atk_object_set_name (gtk_widget_get_accessible (button), _("Resume")); as_pause = FALSE; } @@ -801,6 +803,7 @@ queue_button_init (ProgressWidgetData *data) image = gtk_image_new_from_icon_name ("undo", GTK_ICON_SIZE_BUTTON); gtk_container_add (GTK_CONTAINER (button), image); + atk_object_set_name (gtk_widget_get_accessible (button), _("Queue")); g_signal_connect (button, "clicked", (GCallback)queue_clicked, data); } @@ -842,6 +845,7 @@ progress_widget_new (CajaProgressInfo *info) btcancel = gtk_button_new (); gtk_container_add (GTK_CONTAINER (btcancel), imgcancel); + atk_object_set_name (gtk_widget_get_accessible (btcancel), _("Cancel")); g_signal_connect (btcancel, "clicked", (GCallback)cancel_clicked, data); progress_bar = gtk_progress_bar_new (); |