diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2015-06-16 12:02:41 -0700 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2015-06-17 11:48:37 -0700 |
commit | 9c7b0f0491d24d950387244fe5b4e750f11fa1e4 (patch) | |
tree | 5c81639a22dd26c9bdbfa3f73e9ca9914795a4f8 /gtk/gtkoverlay.c | |
parent | 3b1b171be54dc45dc566595d6fe245f6742fa042 (diff) | |
download | gtk+-9c7b0f0491d24d950387244fe5b4e750f11fa1e4.tar.gz |
overlay: remove gtk_overlay_add_pass_through_overlay()
The API to access this functionality will be the setter we just added in
the previous commit.
https://bugzilla.gnome.org/show_bug.cgi?id=750568
Diffstat (limited to 'gtk/gtkoverlay.c')
-rw-r--r-- | gtk/gtkoverlay.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/gtk/gtkoverlay.c b/gtk/gtkoverlay.c index efe85572dc..9512a2d78b 100644 --- a/gtk/gtkoverlay.c +++ b/gtk/gtkoverlay.c @@ -948,46 +948,3 @@ gtk_overlay_get_overlay_pass_through (GtkOverlay *overlay, return pass_through; } - -/** - * gtk_overlay_add_pass_through_overlay: - * @overlay: a #GtkOverlay - * @widget: a #GtkWidget to be added to the container - * - * Adds @widget to @overlay, allowing input to fall through - * to the main child in non-interactive areas. - * - * The widget will be stacked on top of the main widget - * added with gtk_container_add(). - * - * The position at which @widget is placed is determined - * from its #GtkWidget:halign and #GtkWidget:valign properties. - * - * Since: 3.18 - */ -void -gtk_overlay_add_pass_through_overlay (GtkOverlay *overlay, - GtkWidget *widget) -{ - GtkOverlayPrivate *priv = overlay->priv; - GtkOverlayChild *child; - - g_return_if_fail (GTK_IS_OVERLAY (overlay)); - g_return_if_fail (GTK_IS_WIDGET (widget)); - - child = g_slice_new0 (GtkOverlayChild); - child->widget = widget; - child->pass_through = TRUE; - - priv->children = g_slist_append (priv->children, child); - - if (gtk_widget_get_realized (GTK_WIDGET (overlay))) - { - child->window = gtk_overlay_create_child_window (overlay, child); - gtk_widget_set_parent (widget, GTK_WIDGET (overlay)); - } - else - gtk_widget_set_parent (widget, GTK_WIDGET (overlay)); - - gtk_widget_child_notify (widget, "index"); -} |