[gtk+/client-side-decorations] handle PROP_DISABLE_CLIENT_SIDE_DECORATIONS in {get, set}_property methods
- From: Cody Russell <bratsche src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-decorations] handle PROP_DISABLE_CLIENT_SIDE_DECORATIONS in {get, set}_property methods
- Date: Tue, 14 Jul 2009 23:55:50 +0000 (UTC)
commit 378a7f9ca917120a17fc065f50f2768798f127d9
Author: Cody Russell <bratsche gnome org>
Date: Tue Jul 14 18:55:40 2009 -0500
handle PROP_DISABLE_CLIENT_SIDE_DECORATIONS in {get,set}_property methods
gtk/gtkwindow.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 9307e6a..e8dba25 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -1064,15 +1064,17 @@ gtk_window_set_property (GObject *object,
const GValue *value,
GParamSpec *pspec)
{
- GtkWindow *window;
-
- window = GTK_WINDOW (object);
+ GtkWindow *window = GTK_WINDOW (object);
+ GtkWindowPrivate *priv = GTK_WINDOW_GET_PRIVATE (window);
switch (prop_id)
{
case PROP_TYPE:
window->type = g_value_get_enum (value);
break;
+ case PROP_DISABLE_CLIENT_SIDE_DECORATIONS:
+ priv->disable_client_side_decorations = g_value_get_boolean (value);
+ break;
case PROP_TITLE:
gtk_window_set_title (window, g_value_get_string (value));
break;
@@ -1188,6 +1190,9 @@ gtk_window_get_property (GObject *object,
case PROP_TYPE:
g_value_set_enum (value, window->type);
break;
+ case PROP_DISABLE_CLIENT_SIDE_DECORATIONS:
+ g_value_set_boolean (value, priv->disable_client_side_decorations);
+ break;
case PROP_ROLE:
g_value_set_string (value, window->wm_role);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]