[gtk+/wip/csd: 124/134] window: Don't decorate non-toplevel windows
- From: Rob Bradford <rbradford src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/csd: 124/134] window: Don't decorate non-toplevel windows
- Date: Thu, 7 Feb 2013 13:24:34 +0000 (UTC)
commit 727786411e6fcf696c61d08433c2d5643ff79978
Author: Rob Bradford <rob linux intel com>
Date: Sat Jul 28 15:13:52 2012 +0100
window: Don't decorate non-toplevel windows
gtk/gtkwindow.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index e6ba977..53f85be 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -6659,7 +6659,7 @@ gtk_window_get_preferred_width (GtkWidget *widget,
border_width =
2 * gtk_container_get_border_width (GTK_CONTAINER (window));
- if (priv->client_decorated)
+ if (priv->client_decorated && priv->type == GTK_WINDOW_TOPLEVEL)
{
context = gtk_widget_get_style_context (widget);
state = gtk_style_context_get_state (context);
@@ -6719,7 +6719,7 @@ gtk_window_get_preferred_height (GtkWidget *widget,
*minimum_size = 0;
*natural_size = 0;
- if (priv->client_decorated)
+ if (priv->client_decorated && priv->type == GTK_WINDOW_TOPLEVEL)
{
context = gtk_widget_get_style_context (widget);
state = gtk_style_context_get_state (context);
@@ -7902,7 +7902,7 @@ gtk_window_draw (GtkWidget *widget,
gtk_style_context_add_class (context, GTK_STYLE_CLASS_BACKGROUND);
- if (priv->client_decorated)
+ if (priv->client_decorated && priv->type == GTK_WINDOW_TOPLEVEL)
{
gtk_style_context_add_class (context, "window-border");
gtk_widget_get_allocation (widget, &allocation);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]