summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrendereraccel.c
diff options
context:
space:
mode:
authorKristian Rietveld <kris@gtk.org>2007-09-13 22:37:02 +0000
committerKristian Rietveld <kristian@src.gnome.org>2007-09-13 22:37:02 +0000
commite523ba2ce80634a397f39d7d44826e056c13ca9d (patch)
tree5a59ed4f94fa932abf17b64a1c7140f1392833e9 /gtk/gtkcellrendereraccel.c
parente297090fa75a34b2f094f372a5d073c0b27586ab (diff)
downloadgtk+-e523ba2ce80634a397f39d7d44826e056c13ca9d.tar.gz
implement getter for keycode property. (#476665, patch by Christian
2007-09-14 Kristian Rietveld <kris@gtk.org> * gtk/gtkcellrendereraccel.c (gtk_cell_renderer_accel_get_property): implement getter for keycode property. (#476665, patch by Christian Persch). svn path=/trunk/; revision=18817
Diffstat (limited to 'gtk/gtkcellrendereraccel.c')
-rw-r--r--gtk/gtkcellrendereraccel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkcellrendereraccel.c b/gtk/gtkcellrendereraccel.c
index 139f7701f9..e6ff68b90c 100644
--- a/gtk/gtkcellrendereraccel.c
+++ b/gtk/gtkcellrendereraccel.c
@@ -274,6 +274,10 @@ gtk_cell_renderer_accel_get_property (GObject *object,
g_value_set_flags (value, accel->accel_mods);
break;
+ case PROP_KEYCODE:
+ g_value_set_uint (value, accel->keycode);
+ break;
+
case PROP_ACCEL_MODE:
g_value_set_enum (value, accel->accel_mode);
break;