Add tooltips to the zoom controls, make menu tooltips consistent with and

2008-07-21  Christian Neumair  <cneumair@gnome.org>

	* src/nautilus-window-menus.c:
	* src/nautilus-zoom-control.c
	(nautilus_zoom_control_instance_init):
	Add tooltips to the zoom controls, make menu tooltips consistent with
	and a11y description consistent with Epiphany. Related to #543935.
	Thanks to Diego Escalante Urrelo.

svn path=/trunk/; revision=14385
This commit is contained in:
Christian Neumair 2008-07-21 10:10:34 +00:00 committed by Christian Neumair
parent 89f2aab3cb
commit 02cbb458f3
3 changed files with 21 additions and 6 deletions

View file

@ -1,3 +1,12 @@
2008-07-21 Christian Neumair <cneumair@gnome.org>
* src/nautilus-window-menus.c:
* src/nautilus-zoom-control.c
(nautilus_zoom_control_instance_init):
Add tooltips to the zoom controls, make menu tooltips consistent with
and a11y description consistent with Epiphany. Related to #543935.
Thanks to Diego Escalante Urrelo.
2008-07-21 Christian Neumair <cneumair@gnome.org>
* src/file-manager/fm-icon-view.c (fm_icon_view_register),

View file

@ -827,7 +827,7 @@ static const GtkActionEntry main_entries[] = {
G_CALLBACK (action_about_nautilus_callback) },
/* name, stock id */ { "Zoom In", GTK_STOCK_ZOOM_IN,
/* label, accelerator */ N_("Zoom _In"), "<control>plus",
/* tooltip */ N_("Show the contents in more detail"),
/* tooltip */ N_("Increase the view size"),
G_CALLBACK (action_zoom_in_callback) },
/* name, stock id */ { "ZoomInAccel", NULL,
/* label, accelerator */ "ZoomInAccel", "<control>equal",
@ -839,7 +839,7 @@ static const GtkActionEntry main_entries[] = {
G_CALLBACK (action_zoom_in_callback) },
/* name, stock id */ { "Zoom Out", GTK_STOCK_ZOOM_OUT,
/* label, accelerator */ N_("Zoom _Out"), "<control>minus",
/* tooltip */ N_("Show the contents in less detail"),
/* tooltip */ N_("Decrease the view size"),
G_CALLBACK (action_zoom_out_callback) },
/* name, stock id */ { "ZoomOutAccel", NULL,
/* label, accelerator */ "ZoomOutAccel", "<control>KP_Subtract",
@ -847,7 +847,7 @@ static const GtkActionEntry main_entries[] = {
G_CALLBACK (action_zoom_out_callback) },
/* name, stock id */ { "Zoom Normal", GTK_STOCK_ZOOM_100,
/* label, accelerator */ N_("Normal Si_ze"), "<control>0",
/* tooltip */ N_("Show the contents at the normal size"),
/* tooltip */ N_("Use the normal view size"),
G_CALLBACK (action_zoom_normal_callback) },
/* name, stock id */ { "Connect to Server", NULL,
/* label, accelerator */ N_("Connect to _Server..."), NULL,

View file

@ -89,9 +89,9 @@ static const int nautilus_zoom_control_accessible_action_signals[] = {
};
static const char * const nautilus_zoom_control_accessible_action_descriptions[] = {
N_("Show the contents in more detail"),
N_("Show the contents in less detail"),
N_("Show in the default detail level"),
N_("Increase the view size"),
N_("Decrease the view size"),
N_("Use the normal view size")
};
static GtkMenu *create_zoom_menu (NautilusZoomControl *zoom_control);
@ -292,6 +292,8 @@ nautilus_zoom_control_instance_init (NautilusZoomControl *zoom_control)
gtk_button_set_focus_on_click (GTK_BUTTON (zoom_control->details->zoom_out), FALSE);
gtk_button_set_relief (GTK_BUTTON (zoom_control->details->zoom_out),
GTK_RELIEF_NONE);
gtk_widget_set_tooltip_text (zoom_control->details->zoom_out,
_("Decrease the view size"));
g_signal_connect (G_OBJECT (zoom_control->details->zoom_out),
"clicked", G_CALLBACK (zoom_out_clicked),
zoom_control);
@ -303,6 +305,8 @@ nautilus_zoom_control_instance_init (NautilusZoomControl *zoom_control)
gtk_button_set_focus_on_click (GTK_BUTTON (zoom_control->details->zoom_button), FALSE);
gtk_button_set_relief (GTK_BUTTON (zoom_control->details->zoom_button),
GTK_RELIEF_NONE);
gtk_widget_set_tooltip_text (zoom_control->details->zoom_button,
_("Use the normal view size"));
gtk_widget_add_events (GTK_WIDGET (zoom_control->details->zoom_button),
GDK_BUTTON_PRESS_MASK
@ -339,6 +343,8 @@ nautilus_zoom_control_instance_init (NautilusZoomControl *zoom_control)
gtk_button_set_focus_on_click (GTK_BUTTON (zoom_control->details->zoom_in), FALSE);
gtk_button_set_relief (GTK_BUTTON (zoom_control->details->zoom_in),
GTK_RELIEF_NONE);
gtk_widget_set_tooltip_text (zoom_control->details->zoom_in,
_("Increase the view size"));
g_signal_connect (G_OBJECT (zoom_control->details->zoom_in),
"clicked", G_CALLBACK (zoom_in_clicked),
zoom_control);