diff options
Diffstat (limited to 'gtk/gtkentry.c')
-rw-r--r-- | gtk/gtkentry.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index d457471aed..b87bc06742 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -63,7 +63,7 @@ #include "gtkwidgetprivate.h" #include "gtkstylecontextprivate.h" #include "gtktexthandleprivate.h" -#include "gtkbubblewindowprivate.h" +#include "gtkpopover.h" #include "gtktoolbar.h" #include "a11y/gtkentryaccessible.h" @@ -158,7 +158,7 @@ struct _GtkEntryPrivate gchar *placeholder_text; - GtkBubbleWindow *bubble_window; + GtkWidget *bubble_window; GtkTextHandle *text_handle; GtkWidget *selection_bubble; guint selection_bubble_timeout_id; @@ -9405,9 +9405,9 @@ bubble_targets_received (GtkClipboard *clipboard, if (priv->selection_bubble) gtk_widget_destroy (priv->selection_bubble); - priv->selection_bubble = _gtk_bubble_window_new (GTK_WIDGET (entry)); - _gtk_bubble_window_set_position (GTK_BUBBLE_WINDOW (priv->selection_bubble), - GTK_POS_TOP); + priv->selection_bubble = gtk_popover_new (GTK_WIDGET (entry)); + gtk_popover_set_position (GTK_POPOVER (priv->selection_bubble), + GTK_POS_TOP); toolbar = GTK_WIDGET (gtk_toolbar_new ()); gtk_toolbar_set_style (GTK_TOOLBAR (toolbar), GTK_TOOLBAR_TEXT); @@ -9456,8 +9456,7 @@ bubble_targets_received (GtkClipboard *clipboard, rect.width = 0; } - _gtk_bubble_window_set_pointing_to (GTK_BUBBLE_WINDOW (priv->selection_bubble), - &rect); + gtk_popover_set_pointing_to (GTK_POPOVER (priv->selection_bubble), &rect); gtk_widget_show (priv->selection_bubble); priv->selection_bubble_timeout_id = 0; |