[gtk+/gtk-3-20] window: Make the sample code obey the party line on geometry widgets



commit d14cdf29985e9d2aae1dfc1156c0811ed483e810
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Mar 29 19:58:21 2016 +0200

    window: Make the sample code obey the party line on geometry widgets
    
    The geometry_widget parameter is deprecated [1]. If one is passed, we
    remove GDK_HINT_BASE_SIZE and GDK_HINT_RESIZE_INC from the mask [2].
    
    [1] commit 08974a1e9a6099a5a94b9d56970dbf96e473ba87
    [2] commit f7cc4abbad76f354cdc740e7fb9192719f72a89a
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764321

 gtk/gtkwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 8da2363..a7f86de 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -11415,7 +11415,7 @@ gtk_XParseGeometry (const char   *string,
  *   gtk_widget_show_all (vbox);
  *
  *   gtk_window_set_geometry_hints (GTK_WINDOW (window),
- *                                 window,
+ *                                 NULL,
  *                                 &size_hints,
  *                                 GDK_HINT_MIN_SIZE |
  *                                 GDK_HINT_BASE_SIZE |


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]