[eog] EogWindow: Restore tooltips in fullscreen toolbar



commit 0492b8b90a5752b49ad6852209b8620025f05f4c
Author: Felix Riemann <friemann gnome org>
Date:   Wed Feb 4 20:55:27 2015 +0100

    EogWindow: Restore tooltips in fullscreen toolbar
    
    Reuse tooltip text from eog-3.14.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=743887

 data/fullscreen-toolbar.ui |   12 ++++++++++++
 src/eog-window.c           |    5 +++++
 2 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/data/fullscreen-toolbar.ui b/data/fullscreen-toolbar.ui
index 170f68c..1d851b7 100644
--- a/data/fullscreen-toolbar.ui
+++ b/data/fullscreen-toolbar.ui
@@ -10,6 +10,7 @@
       <object class="GtkToolButton" id="first_button">
         <property name="visible">True</property>
         <property name="can_focus">False</property>
+        <property name="tooltip_text" translatable="yes">Go to the first image of the gallery</property>
         <property name="action_name">win.go-first</property>
         <property name="label" translatable="yes">_First Image</property>
         <property name="use_underline">True</property>
@@ -24,6 +25,7 @@
       <object class="GtkToolButton" id="prev_button">
         <property name="visible">True</property>
         <property name="can_focus">False</property>
+        <property name="tooltip_text" translatable="yes">Go to the previous image of the gallery</property>
         <property name="action_name">win.go-previous</property>
         <property name="label" translatable="yes">_Previous Image</property>
         <property name="use_underline">True</property>
@@ -38,6 +40,7 @@
       <object class="GtkToolButton" id="next_button">
         <property name="visible">True</property>
         <property name="can_focus">False</property>
+        <property name="tooltip_text" translatable="yes">Go to the next image of the gallery</property>
         <property name="action_name">win.go-next</property>
         <property name="label" translatable="yes">_Next Image</property>
         <property name="use_underline">True</property>
@@ -52,6 +55,7 @@
       <object class="GtkToolButton" id="last_button">
         <property name="visible">True</property>
         <property name="can_focus">False</property>
+        <property name="tooltip_text" translatable="yes">Go to the last image of the gallery</property>
         <property name="action_name">win.go-last</property>
         <property name="label" translatable="yes">_Last Image</property>
         <property name="use_underline">True</property>
@@ -76,6 +80,7 @@
       <object class="GtkToolButton" id="zoom_in_button">
         <property name="visible">True</property>
         <property name="can_focus">False</property>
+        <property name="tooltip_text" translatable="yes">Enlarge the image</property>
         <property name="action_name">win.zoom-in</property>
         <property name="label" translatable="yes">_Zoom In</property>
         <property name="use_underline">True</property>
@@ -90,6 +95,7 @@
       <object class="GtkToolButton" id="zoom_out_button">
         <property name="visible">True</property>
         <property name="can_focus">False</property>
+        <property name="tooltip_text" translatable="yes">Shrink the image</property>
         <property name="action_name">win.zoom-out</property>
         <property name="label" translatable="yes">Zoom _Out</property>
         <property name="use_underline">True</property>
@@ -104,6 +110,7 @@
       <object class="GtkToolButton" id="zoom_normal_button">
         <property name="visible">True</property>
         <property name="can_focus">False</property>
+        <property name="tooltip_text" translatable="yes">Shrink the image</property>
         <property name="action_name">win.zoom-normal</property>
         <property name="label" translatable="yes">_Normal Size</property>
         <property name="use_underline">True</property>
@@ -118,6 +125,7 @@
       <object class="GtkToggleToolButton" id="zoom_fit_toggle">
         <property name="visible">True</property>
         <property name="can_focus">False</property>
+        <property name="tooltip_text" translatable="yes">Shrink the image</property>
         <property name="action_name">win.toggle-zoom-fit</property>
         <property name="label" translatable="yes">_Best Fit</property>
         <property name="use_underline">True</property>
@@ -142,6 +150,7 @@
       <object class="GtkToolButton" id="rotate_left_button">
         <property name="visible">True</property>
         <property name="can_focus">False</property>
+        <property name="tooltip_text" translatable="yes">Rotate the image 90 degrees to the left</property>
         <property name="action_name">win.rotate-270</property>
         <property name="label" translatable="yes">Rotate Counter_clockwise</property>
         <property name="use_underline">True</property>
@@ -156,6 +165,7 @@
       <object class="GtkToolButton" id="rotate_right_button">
         <property name="visible">True</property>
         <property name="can_focus">False</property>
+        <property name="tooltip_text" translatable="yes">Rotate the image 90 degrees to the right</property>
         <property name="action_name">win.rotate-90</property>
         <property name="label" translatable="yes">_Rotate Clockwise</property>
         <property name="use_underline">True</property>
@@ -180,6 +190,7 @@
       <object class="GtkToggleToolButton" id="gallery_toggle">
         <property name="visible">True</property>
         <property name="can_focus">False</property>
+        <property name="tooltip_text" translatable="yes">Changes the visibility of the image gallery pane in 
the current window</property>
         <property name="action_name">win.view-gallery</property>
         <property name="label" translatable="yes">_Image Gallery</property>
         <property name="use_underline">True</property>
@@ -204,6 +215,7 @@
       <object class="GtkToggleToolButton" id="pause_toggle">
         <property name="visible">True</property>
         <property name="can_focus">False</property>
+        <property name="tooltip_text" translatable="yes">Pause or resume the slideshow</property>
         <property name="action_name">win.pause-slideshow</property>
         <property name="label" translatable="yes">_Best Fit</property>
         <property name="use_underline">True</property>
diff --git a/src/eog-window.c b/src/eog-window.c
index 5329f95..12293c7 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -1825,6 +1825,9 @@ eog_window_get_exit_fullscreen_button (EogWindow *window)
                                              GTK_ICON_SIZE_BUTTON);
        gtk_button_set_image (GTK_BUTTON (button), image);
        gtk_button_set_always_show_image (GTK_BUTTON (button), TRUE);
+       gtk_widget_set_tooltip_text(button,
+                                   _("Leave fullscreen mode"));
+
 
        g_signal_connect (button, "clicked",
                          G_CALLBACK (exit_fullscreen_button_clicked_cb),
@@ -4246,6 +4249,8 @@ eog_window_construct_ui (EogWindow *window)
                                                           GTK_ICON_SIZE_BUTTON);
        gtk_actionable_set_action_name (GTK_ACTIONABLE (fullscreen_button),
                                        "win.view-fullscreen");
+       gtk_widget_set_tooltip_text(fullscreen_button,
+                                   _("Show the current image in fullscreen mode"));
        gtk_header_bar_pack_end (GTK_HEADER_BAR (headerbar), fullscreen_button);
        gtk_widget_show (fullscreen_button);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]