diff --git a/gtk/Makefile.am b/gtk/Makefile.am index d5ba0bd6cc..6df2a89adb 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -506,7 +506,6 @@ gtk_private_h_sources = \ gtkorientableprivate.h \ gtkpango.h \ gtkpathbar.h \ - gtkpopoverprivate.h \ gtkpressandholdprivate.h \ gtkprintoperation-private.h \ gtkprintutils.h \ diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c index 8415df12c6..a309bbfec8 100644 --- a/gtk/gtkpopover.c +++ b/gtk/gtkpopover.c @@ -44,7 +44,6 @@ #include #include #include "gtkpopover.h" -#include "gtkpopoverprivate.h" #include "gtktypebuiltins.h" #include "gtkmain.h" #include "gtkwindowprivate.h" @@ -123,6 +122,7 @@ gtk_popover_init (GtkPopover *popover) gtk_widget_set_has_window (widget, TRUE); popover->priv = gtk_popover_get_instance_private (popover); popover->priv->modal = TRUE; + popover->priv->apply_shape = TRUE; } static void @@ -1815,24 +1815,6 @@ gtk_popover_get_modal (GtkPopover *popover) return popover->priv->modal; } -void -_gtk_popover_set_apply_shape (GtkPopover *popover, - gboolean apply_shape) -{ - GtkPopoverPrivate *priv = popover->priv; - - g_return_if_fail (GTK_IS_POPOVER (popover)); - - apply_shape = apply_shape != FALSE; - - if (priv->apply_shape == apply_shape) - return; - - priv->apply_shape = apply_shape; - gtk_popover_update_position (popover); - gtk_widget_queue_draw (GTK_WIDGET (popover)); -} - static void gtk_popover_tracker_remove_func (gint position, gpointer user_data) diff --git a/gtk/gtkpopoverprivate.h b/gtk/gtkpopoverprivate.h deleted file mode 100644 index cd3be056ae..0000000000 --- a/gtk/gtkpopoverprivate.h +++ /dev/null @@ -1,26 +0,0 @@ -/* GTK - The GIMP Toolkit - * Copyright © 2014 Carlos Garnacho - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see . - */ - -#ifndef __GTK_POPOVER_PRIVATE_H__ -#define __GTK_POPOVER_PRIVATE_H__ - -#include "gtkpopover.h" - -void _gtk_popover_set_apply_shape (GtkPopover *popover, - gboolean apply_shape); - -#endif /* __GTK_POPOVER_PRIVATE_H__ */ diff --git a/gtk/gtkscalebutton.c b/gtk/gtkscalebutton.c index 4ef8a45089..29dee83757 100644 --- a/gtk/gtkscalebutton.c +++ b/gtk/gtkscalebutton.c @@ -57,7 +57,6 @@ #include "gtktypebuiltins.h" #include "gtkintl.h" #include "a11y/gtkscalebuttonaccessible.h" -#include "gtkpopoverprivate.h" /** * SECTION:gtkscalebutton @@ -357,9 +356,6 @@ gtk_scale_button_init (GtkScaleButton *button) gtk_widget_init_template (GTK_WIDGET (button)); gtk_popover_set_relative_to (GTK_POPOVER (priv->dock), GTK_WIDGET (button)); - /* FIXME: to be removed when compositing over native windows is fixed */ - _gtk_popover_set_apply_shape (GTK_POPOVER (priv->dock), TRUE); - /* Need a local reference to the adjustment */ g_object_ref (priv->adjustment);