summaryrefslogtreecommitdiff
path: root/gtk/gtkentry.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2014-01-14 18:09:02 +0100
committerCarlos Garnacho <carlosg@gnome.org>2014-01-22 17:10:06 +0100
commit65edb10243bc61dade7587d804ebc257f316ba88 (patch)
treefaef6c6e3cfe77032745a4f7e49f965cb8a43698 /gtk/gtkentry.c
parent649004ce43269e5adf7a4252065b25ad1ddcb518 (diff)
downloadgtk+-65edb10243bc61dade7587d804ebc257f316ba88.tar.gz
entry: Set GTK_STYLE_CLASS_OSD on text selection popovers
Diffstat (limited to 'gtk/gtkentry.c')
-rw-r--r--gtk/gtkentry.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index c60bf6120b..13d08e885e 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -2674,6 +2674,8 @@ gtk_entry_init (GtkEntry *entry)
gtk_widget_set_size_request (priv->magnifier, 100, 60);
_gtk_magnifier_set_magnification (GTK_MAGNIFIER (priv->magnifier), 2.0);
priv->magnifier_popover = gtk_popover_new (GTK_WIDGET (entry));
+ gtk_style_context_add_class (gtk_widget_get_style_context (priv->magnifier_popover),
+ GTK_STYLE_CLASS_OSD);
gtk_popover_set_modal (GTK_POPOVER (priv->magnifier_popover), FALSE);
gtk_container_add (GTK_CONTAINER (priv->magnifier_popover),
priv->magnifier);
@@ -9483,6 +9485,8 @@ bubble_targets_received (GtkClipboard *clipboard,
gtk_widget_destroy (priv->selection_bubble);
priv->selection_bubble = gtk_popover_new (GTK_WIDGET (entry));
+ gtk_style_context_add_class (gtk_widget_get_style_context (priv->selection_bubble),
+ GTK_STYLE_CLASS_OSD);
gtk_popover_set_position (GTK_POPOVER (priv->selection_bubble),
GTK_POS_TOP);
gtk_popover_set_modal (GTK_POPOVER (priv->selection_bubble), FALSE);