[gimp] app: make the accel renderer editable



commit fdd0b6d64d627df8346cb987b7a85eed2201c170
Author: Michael Natterer <mitch gimp org>
Date:   Fri Feb 12 21:57:58 2010 +0100

    app: make the accel renderer editable

 app/widgets/gimpdeviceinfoeditor.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/app/widgets/gimpdeviceinfoeditor.c b/app/widgets/gimpdeviceinfoeditor.c
index 740c022..466e04c 100644
--- a/app/widgets/gimpdeviceinfoeditor.c
+++ b/app/widgets/gimpdeviceinfoeditor.c
@@ -144,6 +144,10 @@ gimp_device_info_editor_init (GimpDeviceInfoEditor *editor)
                                                NULL);
 
   cell = gtk_cell_renderer_accel_new ();
+  g_object_set (cell,
+                "mode",     GTK_CELL_RENDERER_MODE_EDITABLE,
+                "editable", TRUE,
+                NULL);
   gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (key_view),
                                                -1, _("Key"),
                                                cell,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]