[gtk+/gtk-3-14] Add a style class for touch selection popovers



commit cc953409d5a827e434be341c513aa3ffb99794e4
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Oct 7 13:38:05 2014 -0400

    Add a style class for touch selection popovers

 gtk/gtkentry.c    |    2 ++
 gtk/gtktextview.c |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index a6adf9f..fff64d8 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -9721,6 +9721,8 @@ bubble_targets_received (GtkClipboard     *clipboard,
   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_style_context_add_class (gtk_widget_get_style_context (priv->selection_bubble),
+                               "touch-selection");
   gtk_popover_set_position (GTK_POPOVER (priv->selection_bubble),
                             GTK_POS_TOP);
   gtk_popover_set_modal (GTK_POPOVER (priv->selection_bubble), FALSE);
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 59dcf76..489a9a6 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -9011,6 +9011,8 @@ bubble_targets_received (GtkClipboard     *clipboard,
   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_style_context_add_class (gtk_widget_get_style_context (priv->selection_bubble),
+                               "touch-selection");
   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]