summaryrefslogtreecommitdiff
path: root/gtk/ui/gtkfilechooserwidget.ui
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-02-14 00:48:26 -0500
committerMatthias Clasen <mclasen@redhat.com>2015-02-14 01:03:38 -0500
commitff87c6516bdfcf40a11ef56d8206d3b484563159 (patch)
treee55213a153bf6024013ccad65db151e4bda43117 /gtk/ui/gtkfilechooserwidget.ui
parent2c5ea0dd4578e33571fe4c0c14c36c1604631f69 (diff)
downloadgtk+-ff87c6516bdfcf40a11ef56d8206d3b484563159.tar.gz
file chooser: Allow to limit search
Add a button to allow restricting search to the current folder (and subdirectories). This makes the search more useful, and makes the file chooser more similar to nautilus.
Diffstat (limited to 'gtk/ui/gtkfilechooserwidget.ui')
-rw-r--r--gtk/ui/gtkfilechooserwidget.ui24
1 files changed, 24 insertions, 0 deletions
diff --git a/gtk/ui/gtkfilechooserwidget.ui b/gtk/ui/gtkfilechooserwidget.ui
index 1eb433225f..83e095ce42 100644
--- a/gtk/ui/gtkfilechooserwidget.ui
+++ b/gtk/ui/gtkfilechooserwidget.ui
@@ -134,6 +134,30 @@
<signal name="stop-search" handler="search_entry_stop_cb" swapped="yes"/>
</object>
</child>
+ <child>
+ <object class="GtkBox">
+ <property name="visible">True</property>
+ <style>
+ <class name="linked"/>
+ </style>
+ <child>
+ <object class="GtkRadioButton" id="current_location_radio">
+ <property name="visible">True</property>
+ <property name="draw-indicator">False</property>
+ <property name="label" translatable="yes">Home</property>
+ <signal name="toggled" handler="search_entry_activate_cb" swapped="yes"/>
+ </object>
+ </child>
+ <child>
+ <object class="GtkRadioButton">
+ <property name="visible">True</property>
+ <property name="draw-indicator">False</property>
+ <property name="group">current_location_radio</property>
+ <property name="label" translatable="yes">All Files</property>
+ </object>
+ </child>
+ </object>
+ </child>
</object>
<packing>
<property name="name">search</property>