diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-03-02 05:19:28 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-03-03 20:19:03 +0100 |
commit | 1fe7d3cefd1aeabd6d8cab2a68673bb1f7876988 (patch) | |
tree | 6e161718bd71eaec8c358f9eb83c2a40c9835278 /gtk/gtkpaned.c | |
parent | f4d9c7be2b8d76c720ae8c38ca27f7618f5bf029 (diff) | |
download | gtk+-1fe7d3cefd1aeabd6d8cab2a68673bb1f7876988.tar.gz |
Deprecate widget flag: GTK_WIDGET_MAPPED
Use gtk_widget_get_mapped() instead.
https://bugzilla.gnome.org/show_bug.cgi?id=69872
Diffstat (limited to 'gtk/gtkpaned.c')
-rw-r--r-- | gtk/gtkpaned.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c index 17d401621c..e09a9807cd 100644 --- a/gtk/gtkpaned.c +++ b/gtk/gtkpaned.c @@ -894,7 +894,7 @@ gtk_paned_size_allocate (GtkWidget *widget, child2_allocation.height = MAX (1, widget->allocation.y + widget->allocation.height - child2_allocation.y - border_width); } - if (GTK_WIDGET_MAPPED (widget) && + if (gtk_widget_get_mapped (widget) && (old_handle_pos.x != paned->handle_pos.x || old_handle_pos.y != paned->handle_pos.y || old_handle_pos.width != paned->handle_pos.width || @@ -906,7 +906,7 @@ gtk_paned_size_allocate (GtkWidget *widget, if (GTK_WIDGET_REALIZED (widget)) { - if (GTK_WIDGET_MAPPED (widget)) + if (gtk_widget_get_mapped (widget)) gdk_window_show (paned->handle); if (paned->priv->orientation == GTK_ORIENTATION_HORIZONTAL) @@ -930,7 +930,7 @@ gtk_paned_size_allocate (GtkWidget *widget, /* Now allocate the childen, making sure, when resizing not to * overlap the windows */ - if (GTK_WIDGET_MAPPED (widget) && + if (gtk_widget_get_mapped (widget) && ((paned->priv->orientation == GTK_ORIENTATION_HORIZONTAL && paned->child1->allocation.width < child1_allocation.width) || @@ -1070,7 +1070,7 @@ gtk_paned_expose (GtkWidget *widget, { GtkPaned *paned = GTK_PANED (widget); - if (gtk_widget_get_visible (widget) && GTK_WIDGET_MAPPED (widget) && + if (gtk_widget_get_visible (widget) && gtk_widget_get_mapped (widget) && paned->child1 && gtk_widget_get_visible (paned->child1) && paned->child2 && gtk_widget_get_visible (paned->child2)) { |