[gtk+] Display localised accelerator keys also in OTHER mode



commit db7d72c82fb33debd200c2ce2576048473e6f3bf
Author: Christian Persch <chpe gnome org>
Date:   Sat Apr 11 01:53:32 2009 -0400

    Display localised accelerator keys also in OTHER mode
    
    This fixes bug 572797.
---
 gtk/gtkcellrendereraccel.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/gtk/gtkcellrendereraccel.c b/gtk/gtkcellrendereraccel.c
index 9b10d86..306bc5e 100644
--- a/gtk/gtkcellrendereraccel.c
+++ b/gtk/gtkcellrendereraccel.c
@@ -249,7 +249,10 @@ convert_keysym_state_to_string (GtkCellRendererAccel *accel,
 	{
 	  gchar *name;
 
-	  name = gtk_accelerator_name (keysym, mask);
+	  name = gtk_accelerator_get_label (keysym, mask);
+	  if (name == NULL)
+	    name = gtk_accelerator_name (keysym, mask);
+
 	  if (keysym == 0)
 	    {
 	      gchar *tmp;



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