[gtk+/client-side-decorations: 66/92] handle PROP_DISABLE_CLIENT_SIDE_DECORATIONS in {get, set}_property methods
- From: Cody Russell <bratsche src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/client-side-decorations: 66/92] handle PROP_DISABLE_CLIENT_SIDE_DECORATIONS in {get, set}_property methods
- Date: Fri, 16 Apr 2010 19:32:39 +0000 (UTC)
commit 860b49cf51e707786da41c4b7d03a4f33ef11359
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 | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 034ff80..4c45b9a 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -1081,9 +1081,8 @@ gtk_window_set_property (GObject *object,
{
GtkWindow *window;
GtkWindowPrivate *priv;
-
- window = GTK_WINDOW (object);
+ window = GTK_WINDOW (object);
priv = GTK_WINDOW_GET_PRIVATE (window);
switch (prop_id)
@@ -1091,6 +1090,9 @@ gtk_window_set_property (GObject *object,
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;
@@ -1209,6 +1211,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]