[gedit] Put the format after the key when getting the settings. Fixes bug #642711.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Put the format after the key when getting the settings. Fixes bug #642711.
- Date: Sun, 20 Feb 2011 13:23:47 +0000 (UTC)
commit b68682fb9672d68438b44c2e4df777fe39c29d62
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sun Feb 20 14:22:08 2011 +0100
Put the format after the key when getting the settings. Fixes bug #642711.
plugins/modelines/modeline-parser.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/modelines/modeline-parser.c b/plugins/modelines/modeline-parser.c
index 7fad276..fcb0e0c 100644
--- a/plugins/modelines/modeline-parser.c
+++ b/plugins/modelines/modeline-parser.c
@@ -790,7 +790,7 @@ modeline_parser_apply_modeline (GtkSourceView *view)
{
guint tab_width;
- g_settings_get (settings, "u", GEDIT_SETTINGS_TABS_SIZE, &tab_width);
+ g_settings_get (settings, GEDIT_SETTINGS_TABS_SIZE, "u", &tab_width);
gtk_source_view_set_tab_width (view, tab_width);
}
@@ -825,7 +825,7 @@ modeline_parser_apply_modeline (GtkSourceView *view)
{
guint right_margin_pos;
- g_settings_get (settings, "u", GEDIT_SETTINGS_RIGHT_MARGIN_POSITION,
+ g_settings_get (settings, GEDIT_SETTINGS_RIGHT_MARGIN_POSITION, "u",
&right_margin_pos);
gtk_source_view_set_right_margin_position (view,
right_margin_pos);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]