[gtk+] Don't show resize grips on override-redirect window
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Don't show resize grips on override-redirect window
- Date: Fri, 8 Oct 2010 18:02:56 +0000 (UTC)
commit 0ebf090d9e91589cd0b7fa514677b24f712c2994
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Oct 8 14:01:46 2010 -0400
Don't show resize grips on override-redirect window
gtk/gtkwindow.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 0703592..0d363a0 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -5354,9 +5354,16 @@ update_grip_visibility (GtkWindow *window)
gboolean
gtk_window_resize_grip_is_visible (GtkWindow *window)
{
+ GtkWindowPrivate *priv;
+
g_return_val_if_fail (GTK_IS_WINDOW (window), FALSE);
- if (!window->priv->resizable)
+ priv = window->priv;
+
+ if (priv->type == GTK_WINDOW_POPUP)
+ return FALSE;
+
+ if (!priv->resizable)
return FALSE;
if (gtk_widget_get_realized (GTK_WIDGET (window)))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]