[gtk+: 41/54] textview: Set GTK_STYLE_CLASS_OSD on text selection popovers
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+: 41/54] textview: Set GTK_STYLE_CLASS_OSD on text selection popovers
- Date: Wed, 22 Jan 2014 17:48:16 +0000 (UTC)
commit 5bb259bc6ad512350d7250d782f4d9b880e30ae0
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Jan 14 18:09:29 2014 +0100
textview: Set GTK_STYLE_CLASS_OSD on text selection popovers
gtk/gtktextview.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 0ec8319..13f818d 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -1551,6 +1551,8 @@ gtk_text_view_init (GtkTextView *text_view)
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 (widget);
+ 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);
@@ -8946,6 +8948,8 @@ bubble_targets_received (GtkClipboard *clipboard,
gtk_widget_destroy (priv->selection_bubble);
priv->selection_bubble = gtk_popover_new (GTK_WIDGET (text_view));
+ 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]