[latexila] Don't use g_settings_get_range() (deprecated)
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Don't use g_settings_get_range() (deprecated)
- Date: Sat, 27 Dec 2014 17:56:07 +0000 (UTC)
commit af4066ac1457a858f34d7d48d53505cf6ee00c4b
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Dec 27 18:48:00 2014 +0100
Don't use g_settings_get_range() (deprecated)
src/preferences_dialog.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/preferences_dialog.vala b/src/preferences_dialog.vala
index a8a4e16..5a69c10 100644
--- a/src/preferences_dialog.vala
+++ b/src/preferences_dialog.vala
@@ -352,7 +352,8 @@ public class PreferencesDialog : Dialog
private void set_spin_button_range (SpinButton spin_button, GLib.Settings settings,
string key)
{
- Variant range = settings.get_range (key);
+ GLib.SettingsSchema schema = settings.settings_schema;
+ Variant range = schema.get_key (key).get_range ();
string range_type;
Variant range_contents;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]