[Xfce4-commits] <parole:master> Improve "Open Location"-dialog

Christoph Mende noreply at xfce.org
Mon Jul 23 01:25:19 CEST 2012


Updating branch refs/heads/master
         to 0a5c4ad7451893cabbebbab312415b0ccf247df6 (commit)
       from 3a90e5a06c5748419bdeaa55c291fbcda13cbfbc (commit)

commit 0a5c4ad7451893cabbebbab312415b0ccf247df6
Author: Simon Steinbeiss <ochosi at xfce.org>
Date:   Wed Jul 11 05:48:26 2012 +0200

    Improve "Open Location"-dialog

 data/interfaces/open-location.ui |   36 +-----------------------------------
 src/parole-open-location.c       |    3 ++-
 2 files changed, 3 insertions(+), 36 deletions(-)

diff --git a/data/interfaces/open-location.ui b/data/interfaces/open-location.ui
index ca7ced4..7c41108 100644
--- a/data/interfaces/open-location.ui
+++ b/data/interfaces/open-location.ui
@@ -4,6 +4,7 @@
   <!-- interface-requires libxfce4ui 4.5 -->
   <!-- interface-naming-policy project-wide -->
   <object class="XfceTitledDialog" id="open-location">
+    <property name="title" translatable="yes">Open Location</property>
     <property name="default_width">400</property>
     <property name="icon_name">gtk-network</property>
     <property name="type_hint">normal</property>
@@ -20,40 +21,6 @@
             <property name="orientation">vertical</property>
             <property name="spacing">5</property>
             <child>
-              <object class="GtkHBox" id="hbox1">
-                <property name="visible">True</property>
-                <property name="spacing">5</property>
-                <child>
-                  <object class="GtkLabel" id="label1">
-                    <property name="visible">True</property>
-                    <property name="label" translatable="yes">Enter the address of a location to open</property>
-                  </object>
-                  <packing>
-                    <property name="expand">False</property>
-                    <property name="fill">False</property>
-                    <property name="position">0</property>
-                  </packing>
-                </child>
-                <child>
-                  <object class="GtkImage" id="image1">
-                    <property name="visible">True</property>
-                    <property name="has_tooltip">True</property>
-                    <property name="stock">gtk-info</property>
-                    <property name="icon-size">1</property>
-                  </object>
-                  <packing>
-                    <property name="expand">False</property>
-                    <property name="fill">False</property>
-                    <property name="position">1</property>
-                  </packing>
-                </child>
-              </object>
-              <packing>
-                <property name="fill">False</property>
-                <property name="position">0</property>
-              </packing>
-            </child>
-            <child>
               <object class="GtkHBox" id="hbox2">
                 <property name="visible">True</property>
                 <property name="spacing">5</property>
@@ -69,7 +36,6 @@
                 </child>
                 <child>
                   <object class="GtkButton" id="clear-history">
-                    <property name="label" translatable="yes">Clear history</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <property name="receives_default">True</property>
diff --git a/src/parole-open-location.c b/src/parole-open-location.c
index bddf303..8fdcab4 100644
--- a/src/parole-open-location.c
+++ b/src/parole-open-location.c
@@ -204,9 +204,10 @@ ParoleOpenLocation *parole_open_location (GtkWidget *parent)
 					 NULL);
     
     gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
-    
+
     g_signal_connect_swapped (gtk_builder_get_object (builder, "clear-history"), "clicked",
 			      G_CALLBACK (parole_open_location_clear_history), model);
+    gtk_widget_set_tooltip_text (GTK_WIDGET (gtk_builder_get_object (builder, "clear-history")), _("Clear History"));
     
     g_signal_connect (dialog, "delete-event",
 		      G_CALLBACK (gtk_widget_destroy), NULL);


More information about the Xfce4-commits mailing list