From e68135a992699ca4a3fb16f4fc565a68477b2fa0 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 13 Oct 2008 12:54:39 +0000 Subject: =?UTF-8?q?Bug=20555724=20=E2=80=93=20gtkcellrendereraccel=20not?= =?UTF-8?q?=20initialised=20correctly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/trunk/; revision=21641 --- gtk/gtkcellrendereraccel.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gtk/gtkcellrendereraccel.c') diff --git a/gtk/gtkcellrendereraccel.c b/gtk/gtkcellrendereraccel.c index 0a5375068e..1142cd94fc 100644 --- a/gtk/gtkcellrendereraccel.c +++ b/gtk/gtkcellrendereraccel.c @@ -52,6 +52,10 @@ static GtkCellEditable * GdkRectangle *background_area, GdkRectangle *cell_area, GtkCellRendererState flags); +static gchar *convert_keysym_state_to_string (GtkCellRendererAccel *accel, + guint keysym, + GdkModifierType mask, + guint keycode); enum { ACCEL_EDITED, @@ -74,6 +78,11 @@ G_DEFINE_TYPE (GtkCellRendererAccel, gtk_cell_renderer_accel, GTK_TYPE_CELL_REND static void gtk_cell_renderer_accel_init (GtkCellRendererAccel *cell_accel) { + gchar *text; + + text = convert_keysym_state_to_string (cell_accel, 0, 0, 0); + g_object_set (cell_accel, "text", text, NULL); + g_free (text); } static void -- cgit v1.2.1