From 05b9ca3b6f18794c7c69493efc8352303a020df8 Mon Sep 17 00:00:00 2001 From: xbezdick <255993@mail.muni.cz> Date: Tue, 3 May 2011 23:20:50 +0200 Subject: [PATCH] [dualscreen] tooltips --- shell/ev-dualscreen.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/shell/ev-dualscreen.c b/shell/ev-dualscreen.c index 5cdefb84..2332d859 100644 --- a/shell/ev-dualscreen.c +++ b/shell/ev-dualscreen.c @@ -313,6 +313,7 @@ ev_dscwindow_init (EvDSCWindow *ev_dscwindow) GtkWidget *toolbar = gtk_toolbar_new (); GtkToolItem *b_switch = gtk_tool_button_new (NULL, _("Switch monitors")); + gtk_tool_item_set_tooltip_text (b_switch, _("Switch monitors, In case of more than two monitor window placing has to be manual.")); gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (b_switch), "object-flip-horizontal"); gtk_toolbar_insert (GTK_TOOLBAR (toolbar), b_switch, -1); g_signal_connect (b_switch, "clicked", @@ -320,18 +321,21 @@ ev_dscwindow_init (EvDSCWindow *ev_dscwindow) GtkToolItem *b_notes = gtk_tool_button_new_from_stock (GTK_STOCK_OPEN); gtk_tool_button_set_label (GTK_TOOL_BUTTON(b_notes), _("Load notes...")); + gtk_tool_item_set_tooltip_text (b_notes, _("Load your notes document")); gtk_toolbar_insert (GTK_TOOLBAR (toolbar), b_notes, -1); g_signal_connect (b_notes, "clicked", G_CALLBACK (ev_dscwindow_notes_interaction), ev_dscwindow); GtkToolItem *b_close = gtk_tool_button_new_from_stock (GTK_STOCK_CLOSE); gtk_tool_button_set_label (GTK_TOOL_BUTTON(b_close), _("End presentation")); + gtk_tool_item_set_tooltip_text (b_close, _("End presentation")); gtk_toolbar_insert (GTK_TOOLBAR (toolbar), b_close, -1); g_signal_connect (b_close, "clicked", G_CALLBACK (ev_dscwindow_end), NULL); GtkToolItem *b_sidebar = gtk_tool_button_new_from_stock (GTK_STOCK_PAGE_SETUP); gtk_tool_button_set_label (GTK_TOOL_BUTTON(b_sidebar), _("Show sidebar")); + gtk_tool_item_set_tooltip_text (b_sidebar, _("Show/hide sidebar")); gtk_toolbar_insert (GTK_TOOLBAR (toolbar), b_sidebar, -1); g_signal_connect_swapped (b_sidebar, "clicked", G_CALLBACK (ev_dscwindow_sidebar_visibility_cb), ev_dscwindow->priv->sidebar); @@ -345,6 +349,8 @@ ev_dscwindow_init (EvDSCWindow *ev_dscwindow) G_CALLBACK (ev_dscwindow_presentation_time_cb), ev_dscwindow); gtk_container_add (GTK_CONTAINER (b_spinner), alignment); gtk_container_add (GTK_CONTAINER (alignment), ev_dscwindow->priv->spinner); + gtk_tool_item_set_tooltip_text (b_spinner, + _("To enable timer, set presentation timer to expected time in minutes. Timer starts by changing from first slide to second one. Value -1 means disabled.")); gtk_toolbar_insert (GTK_TOOLBAR (toolbar), b_spinner, -1); gtk_container_add (GTK_CONTAINER (expander), toolbar); -- 2.43.5