[latexila] File browser: remove settings from the preferences dialog
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] File browser: remove settings from the preferences dialog
- Date: Wed, 8 Aug 2012 20:34:13 +0000 (UTC)
commit abd82a80fccb2d6de6ec5e3a9d74cf3caebe43c8
Author: SÃbastien Wilmet <swilmet gnome org>
Date: Wed Aug 8 04:15:48 2012 +0200
File browser: remove settings from the preferences dialog
src/preferences_dialog.vala | 13 +-------
src/ui/preferences_dialog.ui | 69 ------------------------------------------
2 files changed, 1 insertions(+), 81 deletions(-)
---
diff --git a/src/preferences_dialog.vala b/src/preferences_dialog.vala
index 5d9b07e..e19aa70 100644
--- a/src/preferences_dialog.vala
+++ b/src/preferences_dialog.vala
@@ -124,8 +124,7 @@ public class PreferencesDialog : Dialog
string[] settings_str =
{
"org.gnome.latexila.preferences.editor",
- "org.gnome.latexila.preferences.latex",
- "org.gnome.latexila.preferences.file-browser"
+ "org.gnome.latexila.preferences.latex"
};
foreach (string setting_str in settings_str)
@@ -296,8 +295,6 @@ public class PreferencesDialog : Dialog
{
GLib.Settings latex_settings =
new GLib.Settings ("org.gnome.latexila.preferences.latex");
- GLib.Settings fb_settings =
- new GLib.Settings ("org.gnome.latexila.preferences.file-browser");
var confirm_clean_up_checkbutton =
builder.get_object ("confirm_clean_up_checkbutton");
@@ -313,14 +310,6 @@ public class PreferencesDialog : Dialog
var clean_up_entry = builder.get_object ("clean_up_entry");
latex_settings.bind ("clean-extensions", clean_up_entry, "text",
SettingsBindFlags.DEFAULT);
-
- var file_browser_show_build = builder.get_object ("file_browser_show_build");
- fb_settings.bind ("show-build-files", file_browser_show_build, "active",
- SettingsBindFlags.DEFAULT);
-
- var file_browser_show_hidden = builder.get_object ("file_browser_show_hidden");
- fb_settings.bind ("show-hidden-files", file_browser_show_hidden, "active",
- SettingsBindFlags.DEFAULT);
}
private void set_sensitivity (GLib.Settings settings, string key, Widget widget,
diff --git a/src/ui/preferences_dialog.ui b/src/ui/preferences_dialog.ui
index d546819..334cf74 100644
--- a/src/ui/preferences_dialog.ui
+++ b/src/ui/preferences_dialog.ui
@@ -531,75 +531,6 @@
</packing>
</child>
<child>
- <object class="GtkGrid" id="grid16">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="row_spacing">6</property>
- <child>
- <object class="GtkLabel" id="label8">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="xalign">0</property>
- <property name="label" translatable="yes">File Browser</property>
- <attributes>
- <attribute name="weight" value="bold"/>
- </attributes>
- </object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">0</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkCheckButton" id="file_browser_show_build">
- <property name="label" translatable="yes">Show build files</property>
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="margin_left">12</property>
- <property name="use_action_appearance">False</property>
- <property name="xalign">0</property>
- <property name="draw_indicator">True</property>
- </object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">1</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkCheckButton" id="file_browser_show_hidden">
- <property name="label" translatable="yes">Show hidden files</property>
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="margin_left">12</property>
- <property name="use_action_appearance">False</property>
- <property name="use_underline">True</property>
- <property name="xalign">0</property>
- <property name="draw_indicator">True</property>
- </object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">2</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- </object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">2</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- <child>
<object class="GtkGrid" id="grid9">
<property name="visible">True</property>
<property name="can_focus">False</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]