forked from AuroraMiddleware/gtk
Bug 555724 – gtkcellrendereraccel not initialised correctly
svn path=/trunk/; revision=21641
This commit is contained in:
parent
cebdb8b6df
commit
e68135a992
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user