[gnome-terminal/gsettings] Only listen to changes on the specific key
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal/gsettings] Only listen to changes on the specific key
- Date: Fri, 12 Aug 2011 22:01:21 +0000 (UTC)
commit c2ad85a990414bca7270cd6f7987ddb0b8ea3135
Author: Christian Persch <chpe gnome org>
Date: Fri Aug 12 21:48:16 2011 +0200
Only listen to changes on the specific key
src/terminal-app.c | 1 -
src/terminal-app.h | 2 ++
src/terminal-screen.c | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/terminal-app.c b/src/terminal-app.c
index a89afec..3bbb79a 100644
--- a/src/terminal-app.c
+++ b/src/terminal-app.c
@@ -49,7 +49,6 @@
#endif
#define DESKTOP_INTERFACE_SETTINGS_SCHEMA "org.gnome.desktop.interface"
-#define MONOSPACE_FONT_KEY_NAME "monospace-font-name"
#define SYSTEM_PROXY_SETTINGS_SCHEMA "org.gnome.system.proxy"
diff --git a/src/terminal-app.h b/src/terminal-app.h
index 2ab4c13..13a2231 100644
--- a/src/terminal-app.h
+++ b/src/terminal-app.h
@@ -57,6 +57,8 @@ G_BEGIN_DECLS
#define GNOME_TERMINAL_ICON_NAME "utilities-terminal"
+#define MONOSPACE_FONT_KEY_NAME "monospace-font-name"
+
/* TerminalApp */
#define TERMINAL_TYPE_APP (terminal_app_get_type ())
diff --git a/src/terminal-screen.c b/src/terminal-screen.c
index 5a48eee..fb86536 100644
--- a/src/terminal-screen.c
+++ b/src/terminal-screen.c
@@ -402,7 +402,7 @@ terminal_screen_init (TerminalScreen *screen)
screen);
app = terminal_app_get ();
- g_signal_connect (terminal_app_get_desktop_interface_settings (app), "changed",
+ g_signal_connect (terminal_app_get_desktop_interface_settings (app), "changed::" MONOSPACE_FONT_KEY_NAME,
G_CALLBACK (terminal_screen_system_font_changed_cb), screen);
#ifdef GNOME_ENABLE_DEBUG
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]