[gnome-video-arcade] Make the Properties window size persistent.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-video-arcade] Make the Properties window size persistent.
- Date: Sat, 6 Mar 2010 21:41:09 +0000 (UTC)
commit f385d860b123a0959e9c0b47e1412e10c880226d
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Mar 6 15:32:50 2010 -0500
Make the Properties window size persistent.
data/gnome-video-arcade.schemas | 36 ++++++++++++++++++++++++++++++++++++
src/gva-common.h | 1 +
src/gva-properties.c | 4 ++++
3 files changed, 41 insertions(+), 0 deletions(-)
---
diff --git a/data/gnome-video-arcade.schemas b/data/gnome-video-arcade.schemas
index 54e0134..20bf0ec 100644
--- a/data/gnome-video-arcade.schemas
+++ b/data/gnome-video-arcade.schemas
@@ -101,6 +101,30 @@
</schema>
<schema>
+ <applyto>/apps/gnome-video-arcade/properties-height</applyto>
+ <key>/schemas/apps/gnome-video-arcade/properties-height</key>
+ <owner>gnome-video-arcade</owner>
+ <type>int</type>
+ <default>400</default>
+ <locale name="C">
+ <short>Properties height</short>
+ <long>The height of the Properties window.</long>
+ </locale>
+ </schema>
+
+ <schema>
+ <applyto>/apps/gnome-video-arcade/properties-maximized</applyto>
+ <key>/schemas/apps/gnome-video-arcade/properties-maximized</key>
+ <owner>gnome-video-arcade</owner>
+ <type>bool</type>
+ <default>false</default>
+ <locale name="C">
+ <short>Properties maximized</short>
+ <long>True if the Properties window is maximized.</long>
+ </locale>
+ </schema>
+
+ <schema>
<applyto>/apps/gnome-video-arcade/properties-page</applyto>
<key>/schemas/apps/gnome-video-arcade/properties-page</key>
<owner>gnome-video-arcade</owner>
@@ -113,6 +137,18 @@
</schema>
<schema>
+ <applyto>/apps/gnome-video-arcade/properties-width</applyto>
+ <key>/schemas/apps/gnome-video-arcade/properties-width</key>
+ <owner>gnome-video-arcade</owner>
+ <type>int</type>
+ <default>500</default>
+ <locale name="C">
+ <short>Properties width</short>
+ <long>The width of the Properties window.</long>
+ </locale>
+ </schema>
+
+ <schema>
<applyto>/apps/gnome-video-arcade/search</applyto>
<key>/schemas/apps/gnome-video-arcade/search</key>
<owner>gnome-video-arcade</owner>
diff --git a/src/gva-common.h b/src/gva-common.h
index 9b67cf6..9dc401b 100644
--- a/src/gva-common.h
+++ b/src/gva-common.h
@@ -51,6 +51,7 @@
#define GVA_GCONF_FULL_SCREEN_KEY GVA_GCONF_PREFIX "/full-screen"
#define GVA_GCONF_ERROR_FILE_KEY GVA_GCONF_PREFIX "/error-file"
#define GVA_GCONF_PROPERTIES_PAGE_KEY GVA_GCONF_PREFIX "/properties-page"
+#define GVA_GCONF_PROPERTIES_PREFIX GVA_GCONF_PREFIX "/properties"
#define GVA_GCONF_SEARCH_KEY GVA_GCONF_PREFIX "/search"
#define GVA_GCONF_SELECTED_GAME_KEY GVA_GCONF_PREFIX "/selected-game"
#define GVA_GCONF_SELECTED_MATCH_KEY GVA_GCONF_PREFIX "/selected-match"
diff --git a/src/gva-properties.c b/src/gva-properties.c
index 667b340..2a469df 100644
--- a/src/gva-properties.c
+++ b/src/gva-properties.c
@@ -802,6 +802,10 @@ gva_properties_init (void)
GVA_WIDGET_PROPERTIES_MUSIC_BUTTON, "notify::status",
G_CALLBACK (properties_notify_music_status_cb), NULL);
+ gconf_bridge_bind_window (
+ gconf_bridge_get (), GVA_GCONF_PROPERTIES_PREFIX,
+ GTK_WINDOW (GVA_WIDGET_PROPERTIES_WINDOW), TRUE, FALSE);
+
font_name = gva_get_monospace_font_name ();
desc = pango_font_description_from_string (font_name);
gtk_widget_modify_font (text_view, desc);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]