diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2013-11-12 16:55:23 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2014-01-22 17:10:04 +0100 |
commit | caeb89609614f815f61a64657abb6db797f329f9 (patch) | |
tree | c34b898994c4043394113874d896aade37a53d8e /gtk/gtkentry.c | |
parent | 8a661b878603669fd6fbefd6ecd71d4850b93c74 (diff) | |
download | gtk+-caeb89609614f815f61a64657abb6db797f329f9.tar.gz |
Introduce GtkPopover
Now that the GtkBubbleWindow object has been cleaned up and made
more generic, rename it as GtkPopover and make it public.
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; |