X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=demos%2Fgtk-demo%2Foffscreen_window.c;h=72a51490e1c1728f22e02438340e696328e428d3;hb=edc65ce1d239aed73a0a273825ea4886757fd1c2;hp=08654c1c7de087101b2b497398e4f63abced95cc;hpb=eb90ec751354db580e125a1526eb6c1be9a565d4;p=~andy%2Fgtk diff --git a/demos/gtk-demo/offscreen_window.c b/demos/gtk-demo/offscreen_window.c index 08654c1c7..72a51490e 100644 --- a/demos/gtk-demo/offscreen_window.c +++ b/demos/gtk-demo/offscreen_window.c @@ -184,7 +184,7 @@ pick_offscreen_child (GdkWindow *offscreen_window, GtkAllocation child_area; double x, y; - if (bin->child && GTK_WIDGET_VISIBLE (bin->child)) + if (bin->child && gtk_widget_get_visible (bin->child)) { to_child (bin, widget_x, widget_y, &x, &y); @@ -262,7 +262,7 @@ gtk_rotated_bin_realize (GtkWidget *widget) attributes.window_type = GDK_WINDOW_OFFSCREEN; child_requisition.width = child_requisition.height = 0; - if (bin->child && GTK_WIDGET_VISIBLE (bin->child)) + if (bin->child && gtk_widget_get_visible (bin->child)) { attributes.width = bin->child->allocation.width; attributes.height = bin->child->allocation.height; @@ -331,7 +331,7 @@ gtk_rotated_bin_remove (GtkContainer *container, GtkRotatedBin *bin = GTK_ROTATED_BIN (container); gboolean was_visible; - was_visible = GTK_WIDGET_VISIBLE (widget); + was_visible = gtk_widget_get_visible (widget); if (bin->child == widget) { @@ -339,7 +339,7 @@ gtk_rotated_bin_remove (GtkContainer *container, bin->child = NULL; - if (was_visible && GTK_WIDGET_VISIBLE (container)) + if (was_visible && gtk_widget_get_visible (GTK_WIDGET (container))) gtk_widget_queue_resize (GTK_WIDGET (container)); } } @@ -382,7 +382,7 @@ gtk_rotated_bin_size_request (GtkWidget *widget, child_requisition.width = 0; child_requisition.height = 0; - if (bin->child && GTK_WIDGET_VISIBLE (bin->child)) + if (bin->child && gtk_widget_get_visible (bin->child)) gtk_widget_size_request (bin->child, &child_requisition); s = sin (bin->angle); @@ -416,7 +416,7 @@ gtk_rotated_bin_size_allocate (GtkWidget *widget, allocation->y + border_width, w, h); - if (bin->child && GTK_WIDGET_VISIBLE (bin->child)) + if (bin->child && gtk_widget_get_visible (bin->child)) { GtkRequisition child_requisition; GtkAllocation child_allocation; @@ -474,7 +474,7 @@ gtk_rotated_bin_expose (GtkWidget *widget, GtkAllocation child_area; cairo_t *cr; - if (bin->child && GTK_WIDGET_VISIBLE (bin->child)) + if (bin->child && gtk_widget_get_visible (bin->child)) { pixmap = gdk_offscreen_window_get_pixmap (bin->offscreen_window); child_area = bin->child->allocation; @@ -566,7 +566,7 @@ do_offscreen_window (GtkWidget *do_widget) gtk_container_add (GTK_CONTAINER (bin), button); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) gtk_widget_show_all (window); else {