[gtk+/gtk-3-10] touch popover: use underlines



commit 673d88e778af4f83b64f3e7d3f6b784daa12ea4b
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Feb 18 00:10:44 2014 -0500

    touch popover: use underlines
    
    The mnemonic underlines were 'sticking out' in the touch
    selection popover.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=723621

 gtk/gtkentry.c    |    1 +
 gtk/gtktextview.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index d124b46..fde81ba 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -9371,6 +9371,7 @@ append_bubble_action (GtkEntry     *entry,
                       gboolean      sensitive)
 {
   GtkToolItem *item = gtk_tool_button_new (NULL, label);
+  gtk_tool_button_set_use_underline (GTK_TOOL_BUTTON (item), TRUE);
   g_object_set_data (G_OBJECT (item), I_("gtk-signal"), (char *)signal);
   g_signal_connect (item, "clicked", G_CALLBACK (activate_bubble_cb), entry);
   gtk_widget_set_sensitive (GTK_WIDGET (item), sensitive);
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 4ba0af7..796fd2f 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -8822,6 +8822,7 @@ append_bubble_action (GtkTextView  *text_view,
                       gboolean      sensitive)
 {
   GtkToolItem *item = gtk_tool_button_new (NULL, label);
+  gtk_tool_button_set_use_underline (GTK_TOOL_BUTTON (item), TRUE);
   g_object_set_data (G_OBJECT (item), I_("gtk-signal"), (char *)signal);
   g_signal_connect (item, "clicked", G_CALLBACK (activate_bubble_cb), text_view);
   gtk_widget_set_sensitive (GTK_WIDGET (item), sensitive);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]