summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2008-10-13 12:54:39 +0000
committerChristian Persch <chpe@src.gnome.org>2008-10-13 12:54:39 +0000
commite68135a992699ca4a3fb16f4fc565a68477b2fa0 (patch)
treeedeebdbd84572e086a023e9431c3c3378c757f9e
parentcebdb8b6df29eab455709cd48f3a286ad36070db (diff)
downloadgtk+-e68135a992699ca4a3fb16f4fc565a68477b2fa0.tar.gz
Bug 555724 – gtkcellrendereraccel not initialised correctly
svn path=/trunk/; revision=21641
-rw-r--r--ChangeLog6
-rw-r--r--gtk/gtkcellrendereraccel.c9
2 files changed, 15 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 078ea11313..e18d38fc12 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-10-13 Christian Persch <chpe@gnome.org>
+
+ Bug 555724 – gtkcellrendereraccel not initialised correctly
+
+ * gtk/gtkcellrendereraccel.c: Initialise the cell text.
+
2008-10-12 Simos Xenitellis <simos@gnome.org>
Bug 555625 – Updated gtk_compose_seqs_compact table
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