[tracker/tracker-0.8] tracker-preferences: add filechooser button for ignored directories
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.8] tracker-preferences: add filechooser button for ignored directories
- Date: Tue, 6 Apr 2010 12:09:46 +0000 (UTC)
commit 486f0eabec663e4cfa56f367461b88c3c621bf7d
Author: Tshepang Lekhonkhobe <tshepang gmail com>
Date: Mon Apr 5 13:56:15 2010 +0200
tracker-preferences: add filechooser button for ignored directories
src/tracker-preferences/tracker-preferences.ui | 23 +++++++++++++++++++--
src/tracker-preferences/tracker-preferences.vala | 6 ++++-
2 files changed, 25 insertions(+), 4 deletions(-)
---
diff --git a/src/tracker-preferences/tracker-preferences.ui b/src/tracker-preferences/tracker-preferences.ui
index 7a6164a..fbe36f1 100644
--- a/src/tracker-preferences/tracker-preferences.ui
+++ b/src/tracker-preferences/tracker-preferences.ui
@@ -906,11 +906,12 @@
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
- <object class="GtkButton" id="button_ignored_directories_add">
+ <object class="GtkButton" id="button_ignored_directories_globs_add">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
- <signal name="clicked" handler="button_ignored_directories_add_clicked_cb"/>
+ <property name="tooltip_text" translatable="yes">Opens text entry for glob patterns</property>
+ <signal name="clicked" handler="button_ignored_directories_globs_add_clicked_cb"/>
<child>
<object class="GtkImage" id="image6">
<property name="visible">True</property>
@@ -942,7 +943,23 @@
</packing>
</child>
<child>
- <placeholder/>
+ <object class="GtkButton" id="button_ignored_directories_globs_add1">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="tooltip_text" translatable="yes">Opens the filechooser dialogue</property>
+ <signal name="clicked" handler="button_ignored_directories_add_clicked_cb"/>
+ <child>
+ <object class="GtkImage" id="image2">
+ <property name="visible">True</property>
+ <property name="stock">gtk-directory</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="position">2</property>
+ </packing>
</child>
</object>
<packing>
diff --git a/src/tracker-preferences/tracker-preferences.vala b/src/tracker-preferences/tracker-preferences.vala
index 3691df4..fd3c213 100644
--- a/src/tracker-preferences/tracker-preferences.vala
+++ b/src/tracker-preferences/tracker-preferences.vala
@@ -205,10 +205,14 @@ public static void button_index_single_add_clicked_cb (Button source) {
add_dir (liststore_index_single);
}
-public static void button_ignored_directories_add_clicked_cb (Button source) {
+public static void button_ignored_directories_globs_add_clicked_cb (Button source) {
add_freevalue (liststore_ignored_directories);
}
+public static void button_ignored_directories_add_clicked_cb (Button source) {
+ add_dir (liststore_ignored_directories);
+}
+
public static void button_ignored_directories_remove_clicked_cb (Button source) {
del_dir (treeview_ignored_directories);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]