[gnome-packagekit] trivial: move some of the tooltips into the markup



commit bf97fa4593b8974c61bc566815bad8f5b1f36dc5
Author: Richard Hughes <richard hughsie com>
Date:   Fri May 11 14:06:50 2012 +0100

    trivial: move some of the tooltips into the markup

 data/gpk-application.ui |    4 ++++
 src/gpk-application.c   |    8 --------
 2 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/data/gpk-application.ui b/data/gpk-application.ui
index 3c2954b..f08e729 100644
--- a/data/gpk-application.ui
+++ b/data/gpk-application.ui
@@ -42,6 +42,7 @@
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
+                <property name="tooltip_text" translatable="yes">Changes are not applied instantly, this button applies all changes</property>
                 <property name="use_action_appearance">False</property>
               </object>
               <packing>
@@ -305,6 +306,7 @@
                                         <property name="visible">True</property>
                                         <property name="can_focus">True</property>
                                         <property name="receives_default">True</property>
+                                        <property name="tooltip_text" translatable="yes">Visit home page for selected package</property>
                                         <property name="use_action_appearance">False</property>
                                         <child>
                                           <object class="GtkLabel" id="label3">
@@ -457,6 +459,7 @@
                         <property name="visible">True</property>
                         <property name="can_focus">True</property>
                         <property name="receives_default">True</property>
+                        <property name="tooltip_text" translatable="yes">Cancel search</property>
                         <property name="use_action_appearance">False</property>
                         <property name="use_stock">True</property>
                       </object>
@@ -473,6 +476,7 @@
                         <property name="visible">True</property>
                         <property name="can_focus">True</property>
                         <property name="receives_default">True</property>
+                        <property name="tooltip_text" translatable="yes">Clear current selection</property>
                         <property name="use_action_appearance">False</property>
                         <property name="use_stock">True</property>
                       </object>
diff --git a/src/gpk-application.c b/src/gpk-application.c
index df6b159..e4c127d 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -3438,21 +3438,15 @@ gpk_application_startup_cb (GtkApplication *application, GpkApplicationPrivate *
 	widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_clear"));
 	g_signal_connect (widget, "clicked",
 			  G_CALLBACK (gpk_application_button_clear_cb), priv);
-	/* TRANSLATORS: tooltip on the clear button */
-	gtk_widget_set_tooltip_text (widget, _("Clear current selection"));
 
 	/* install */
 	widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_apply"));
 	g_signal_connect (widget, "clicked",
 			  G_CALLBACK (gpk_application_button_apply_cb), priv);
-	/* TRANSLATORS: tooltip on the apply button */
-	gtk_widget_set_tooltip_text (widget, _("Changes are not applied instantly, this button applies all changes"));
 
 	widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_homepage"));
 	g_signal_connect (widget, "clicked",
 			  G_CALLBACK (gpk_application_menu_homepage_cb), priv);
-	/* TRANSLATORS: tooltip on the homepage button */
-	gtk_widget_set_tooltip_text (widget, _("Visit home page for selected package"));
 
 	widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_files"));
 	g_signal_connect (widget, "clicked",
@@ -3486,8 +3480,6 @@ gpk_application_startup_cb (GtkApplication *application, GpkApplicationPrivate *
 	g_signal_connect (widget, "clicked",
 			  G_CALLBACK (gpk_application_cancel_cb), priv);
 	gtk_widget_set_sensitive (widget, FALSE);
-	/* TRANSLATORS: tooltip on the cancel button */
-	gtk_widget_set_tooltip_text (widget, _("Cancel search"));
 
 	/* the fancy text entry widget */
 	widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "entry_text"));



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