[gedit] Put the window settings on delay mode. Fixes bug #644630
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Put the window settings on delay mode. Fixes bug #644630
- Date: Sun, 13 Mar 2011 13:52:47 +0000 (UTC)
commit 9970c6e340f43b751f4eeb99d411e8574d50129f
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sun Mar 13 14:45:13 2011 +0100
Put the window settings on delay mode. Fixes bug #644630
window settings are applied only once the window is closed. We do not
want to keep writing to disk when the window is dragged around
gedit/gedit-window.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index 689d13c..f1be872 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -159,6 +159,8 @@ save_panels_state (GeditWindow *window)
g_settings_set_int (window->priv->window_settings,
GEDIT_SETTINGS_BOTTOM_PANEL_ACTIVE_PAGE, panel_page);
}
+
+ g_settings_apply (window->priv->window_settings);
}
#ifdef OS_OSX
@@ -4093,7 +4095,11 @@ gedit_window_init (GeditWindow *window)
window->priv->fullscreen_animation_timeout_id = 0;
window->priv->editor_settings = g_settings_new ("org.gnome.gedit.preferences.editor");
window->priv->ui_settings = g_settings_new ("org.gnome.gedit.preferences.ui");
+
+ /* window settings are applied only once the window is closed. We do not
+ want to keep writing to disk when the window is dragged around */
window->priv->window_settings = g_settings_new ("org.gnome.gedit.state.window");
+ g_settings_delay (window->priv->window_settings);
window->priv->message_bus = gedit_message_bus_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]