[gtk] textview: Refine touch popup
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] textview: Refine touch popup
- Date: Wed, 17 Apr 2019 23:40:59 +0000 (UTC)
commit 2681f7c7af3d71c8d94a63d156931ea55c189cd6
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Apr 17 23:21:29 2019 +0000
textview: Refine touch popup
The touch popup was meant to have linked buttons.
gtk/gtktextview.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 8eff8f634f..c7c83c7d26 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -8790,8 +8790,8 @@ gtk_text_view_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]