Commit 5a3fd2f7 authored by Ariadne Conill's avatar Ariadne Conill

testing/gtkglext: more deprecated symbol fixups

parent ff9e4fb0
......@@ -2,7 +2,7 @@
# Maintainer:
pkgname=gtkglext
pkgver=1.2.0
pkgrel=1
pkgrel=2
pkgdesc="GTK+ OpenGL Extension"
url="http://projects.gnome.org/gtkglext/"
arch="all"
......@@ -38,4 +38,4 @@ package() {
make DESTDIR="$pkgdir" install || return 1
}
md5sums="5c3240bfc1b21becd33ce35c5abe6f8d gtkglext-1.2.0.tar.gz
db914d28d6d4db4573361717ced19aea gtkglext-deprecated.patch"
6305d2938e4084bd9f5221c9459f8bc8 gtkglext-deprecated.patch"
......@@ -5,7 +5,7 @@
*/
- if (GTK_WIDGET_REALIZED (widget) && private->is_realized)
+ if (gtk_widget_is_realized (widget) && private->is_realized)
+ if (gtk_widget_get_realized (widget) && private->is_realized)
{
gldrawable = gdk_window_get_gl_drawable (widget->window);
gdk_gl_drawable_wait_gdk (gldrawable);
......@@ -14,7 +14,7 @@
*/
- if (GTK_WIDGET_REALIZED (widget))
+ if (gtk_widget_is_realized (widget))
+ if (gtk_widget_get_realized (widget))
gdk_window_unset_gl_capability (widget->window);
private->is_realized = FALSE;
......@@ -23,7 +23,7 @@
toplevel = gtk_widget_get_toplevel (widget);
- if (GTK_WIDGET_TOPLEVEL (toplevel) && !GTK_WIDGET_REALIZED (toplevel))
+ if (gtk_widget_is_toplevel (toplevel) && !gtk_widget_is_realized (toplevel))
+ if (gtk_widget_is_toplevel (toplevel) && !gtk_widget_get_realized (toplevel))
{
GTK_GL_NOTE (MISC,
g_message (" - Install colormap to the top-level window."));
......@@ -32,7 +32,7 @@
*/
- if (GTK_WIDGET_REALIZED (widget))
+ if (gtk_widget_is_realized (widget))
+ if (gtk_widget_get_realized (widget))
{
GTK_GL_NOTE (MISC,
g_message (" - window->bg_pixmap = %p",
......@@ -43,7 +43,7 @@
- g_return_val_if_fail (!GTK_WIDGET_NO_WINDOW (widget), FALSE);
- g_return_val_if_fail (!GTK_WIDGET_REALIZED (widget), FALSE);
+ g_return_val_if_fail (gtk_widget_get_has_window (widget), FALSE);
+ g_return_val_if_fail (!gtk_widget_is_realized (widget), FALSE);
+ g_return_val_if_fail (!gtk_widget_get_realized (widget), FALSE);
g_return_val_if_fail (GDK_IS_GL_CONFIG (glconfig), FALSE);
/*
......@@ -52,7 +52,7 @@
g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
- g_return_val_if_fail (GTK_WIDGET_REALIZED (widget), NULL);
+ g_return_val_if_fail (gtk_widget_is_realized (widget), NULL);
+ g_return_val_if_fail (gtk_widget_get_realized (widget), NULL);
gldrawable = gdk_window_get_gl_drawable (widget->window);
if (gldrawable == NULL)
......@@ -61,7 +61,7 @@
g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
- g_return_val_if_fail (GTK_WIDGET_REALIZED (widget), NULL);
+ g_return_val_if_fail (gtk_widget_is_realized (widget), NULL);
+ g_return_val_if_fail (gtk_widget_get_realized (widget), NULL);
private = g_object_get_qdata (G_OBJECT (widget), quark_gl_private);
if (private == NULL)
......@@ -70,7 +70,7 @@
{
g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
- g_return_val_if_fail (GTK_WIDGET_REALIZED (widget), NULL);
+ g_return_val_if_fail (gtk_widget_is_realized (widget), NULL);
+ g_return_val_if_fail (gtk_widget_get_realized (widget), NULL);
return gdk_window_get_gl_window (widget->window);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment