wok-next view gtkglext/stuff/patches/gtkglext-deprecated.patch @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents
children
line source
1 --- gtkglext-1.2.0.orig/gtk/gtkglwidget.c
2 +++ gtkglext-1.2.0/gtk/gtkglwidget.c
3 @@ -127,7 +127,7 @@
4 * Synchronize OpenGL and window resizing request streams.
5 */
7 - if (GTK_WIDGET_REALIZED (widget) && private->is_realized)
8 + if (gtk_widget_get_realized (widget) && private->is_realized)
9 {
10 gldrawable = gdk_window_get_gl_drawable (widget->window);
11 gdk_gl_drawable_wait_gdk (gldrawable);
12 @@ -154,7 +154,7 @@
13 * Remove OpenGL-capability from widget->window.
14 */
16 - if (GTK_WIDGET_REALIZED (widget))
17 + if (gtk_widget_get_realized (widget))
18 gdk_window_unset_gl_capability (widget->window);
20 private->is_realized = FALSE;
21 @@ -174,7 +174,7 @@
22 */
24 toplevel = gtk_widget_get_toplevel (widget);
25 - if (GTK_WIDGET_TOPLEVEL (toplevel) && !GTK_WIDGET_REALIZED (toplevel))
26 + if (gtk_widget_is_toplevel (toplevel) && !gtk_widget_get_realized (toplevel))
27 {
28 GTK_GL_NOTE (MISC,
29 g_message (" - Install colormap to the top-level window."));
30 @@ -194,7 +194,7 @@
31 * Set a background of "None" on window to avoid AIX X server crash.
32 */
34 - if (GTK_WIDGET_REALIZED (widget))
35 + if (gtk_widget_get_realized (widget))
36 {
37 GTK_GL_NOTE (MISC,
38 g_message (" - window->bg_pixmap = %p",
39 @@ -250,8 +250,8 @@
40 GTK_GL_NOTE_FUNC ();
42 g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE);
43 - g_return_val_if_fail (!GTK_WIDGET_NO_WINDOW (widget), FALSE);
44 - g_return_val_if_fail (!GTK_WIDGET_REALIZED (widget), FALSE);
45 + g_return_val_if_fail (gtk_widget_get_has_window (widget), FALSE);
46 + g_return_val_if_fail (!gtk_widget_get_realized (widget), FALSE);
47 g_return_val_if_fail (GDK_IS_GL_CONFIG (glconfig), FALSE);
49 /*
50 @@ -432,7 +432,7 @@
51 GTK_GL_NOTE_FUNC ();
53 g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
54 - g_return_val_if_fail (GTK_WIDGET_REALIZED (widget), NULL);
55 + g_return_val_if_fail (gtk_widget_get_realized (widget), NULL);
57 gldrawable = gdk_window_get_gl_drawable (widget->window);
58 if (gldrawable == NULL)
59 @@ -474,7 +474,7 @@
60 GLWidgetPrivate *private;
62 g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
63 - g_return_val_if_fail (GTK_WIDGET_REALIZED (widget), NULL);
64 + g_return_val_if_fail (gtk_widget_get_realized (widget), NULL);
66 private = g_object_get_qdata (G_OBJECT (widget), quark_gl_private);
67 if (private == NULL)
68 @@ -501,7 +501,7 @@
69 gtk_widget_get_gl_window (GtkWidget *widget)
70 {
71 g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
72 - g_return_val_if_fail (GTK_WIDGET_REALIZED (widget), NULL);
73 + g_return_val_if_fail (gtk_widget_get_realized (widget), NULL);
75 return gdk_window_get_gl_window (widget->window);
76 }