[Xfce4-commits] <parole:master> Improve "Open Location"-dialog
Simon Steinbeiss
noreply at xfce.org
Mon Jul 23 01:24:11 CEST 2012
Updating branch refs/heads/master
to 478bf554829acf087d3d2f4ea6292a9fc21d0d2a (commit)
from dfa0bc2acb4f22aa964fe421dd1d4f4544d19be8 (commit)
commit 478bf554829acf087d3d2f4ea6292a9fc21d0d2a
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