gtk+ r21641 - in trunk: . gtk
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r21641 - in trunk: . gtk
- Date: Mon, 13 Oct 2008 12:54:40 +0000 (UTC)
Author: chpe
Date: Mon Oct 13 12:54:39 2008
New Revision: 21641
URL: http://svn.gnome.org/viewvc/gtk+?rev=21641&view=rev
Log:
Bug 555724 â gtkcellrendereraccel not initialised correctly
Modified:
trunk/ChangeLog
trunk/gtk/gtkcellrendereraccel.c
Modified: trunk/gtk/gtkcellrendereraccel.c
==============================================================================
--- trunk/gtk/gtkcellrendereraccel.c (original)
+++ trunk/gtk/gtkcellrendereraccel.c Mon Oct 13 12:54:39 2008
@@ -52,6 +52,10 @@
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 @@
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]