[gtk] text: Refine the touch popup
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] text: Refine the touch popup
- Date: Wed, 17 Apr 2019 23:40:54 +0000 (UTC)
commit 836b5a217ad800a8c8ada230f7c0d5d232d3d3ce
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Apr 17 23:20:04 2019 +0000
text: Refine the touch popup
The touch popup was meant to have linked buttons.
gtk/gtktext.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtktext.c b/gtk/gtktext.c
index 60aa6e7c55..7666c78265 100644
--- a/gtk/gtktext.c
+++ b/gtk/gtktext.c
@@ -5852,8 +5852,8 @@ gtk_text_selection_bubble_popup_show (gpointer user_data)
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
g_object_set (box, "margin", 10, NULL);
gtk_widget_show (box);
- toolbar = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
- gtk_widget_show (toolbar);
+ toolbar = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
+ gtk_style_context_add_class (gtk_widget_get_style_context (toolbar), "linked");
gtk_container_add (GTK_CONTAINER (priv->selection_bubble), box);
gtk_container_add (GTK_CONTAINER (box), toolbar);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]