[Xfce4-commits] <xfce4-notes-plugin:master> Set tooltip for title bar buttons

Mike Massonnet noreply at xfce.org
Mon Mar 15 19:30:01 CET 2010


Updating branch refs/heads/master
         to a0726fe45f5167dcdee672238fca1fcf4f23c165 (commit)
       from ff8c5ec8f0f5242477940b58a9b8d9b5e90ccf1d (commit)

commit a0726fe45f5167dcdee672238fca1fcf4f23c165
Author: Mike Massonnet <mmassonnet at xfce.org>
Date:   Mon Mar 15 19:27:14 2010 +0100

    Set tooltip for title bar buttons

 ChangeLog       |    4 ++++
 lib/window.vala |    3 ++-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 3bd5984..dea7faa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2010-03-15  Mike Massonnet <mmassonnet at xfce.org>
 
+Set tooltip for title bar buttons
+
+2010-03-15  Mike Massonnet <mmassonnet at xfce.org>
+
 Always show notebook borders
 
 If the notebook border is not shown with hidden tabs, the scrollbars are drawn
diff --git a/lib/window.vala b/lib/window.vala
index a83b55a..392bc99 100644
--- a/lib/window.vala
+++ b/lib/window.vala
@@ -218,6 +218,7 @@ namespace Xnp {
 			/* Build title */
 			var title_box = new Gtk.HBox (false, 0);
 			var menu_evbox = new Gtk.EventBox ();
+			menu_evbox.tooltip_text = _("Menu");
 			menu_evbox.set_visible_window (false);
 			this.menu_image = new Gtk.Image.from_file ("%s/pixmaps/notes-menu.png".printf (Config.PKGDATADIR));
 			menu_evbox.add (this.menu_image);
@@ -239,7 +240,7 @@ namespace Xnp {
 			title_evbox.add (this.title_label);
 			title_box.pack_start (title_evbox, true, true, 6);
 			var close_box = new Xnp.TitleBarButton (Xnp.TitleBarButtonType.CLOSE);
-			close_box.tooltip_text = Gtk.accelerator_get_label (0xff1b, 0); // GDK_Escape
+			close_box.tooltip_text = _("Hide (%s)").printf (Gtk.accelerator_get_label (0xff1b, 0)); // GDK_Escape
 			title_box.pack_start (close_box, false, false, 2);
 			title_box.show_all ();
 			vbox_frame.pack_start (title_box, false, false, 0);



More information about the Xfce4-commits mailing list