After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 2682 - Keybindings in GtkCTree for non-us keyboards.
Keybindings in GtkCTree for non-us keyboards.
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
1.2.x
Other other
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 1999-10-11 05:22 UTC by René Seindal
Modified: 2011-02-04 16:09 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description René Seindal 2001-01-27 19:46:51 UTC
Package: gtk+
Version: 1.2.6
Severity: wishlist


Hi,

Here is a patch which adds some keybindings to GtkCTree. Some keyboards
have the + key without shift and the = key shifted. The default bindings
in
GtkCTree didn't handle that, so I have added some.

With these changes + expands a node, whether it is shifted or not.
Likewise, = toggles, shifted or not.
Control + and control - expands and collapses recursively, like the
keypad+ and - do.


-- 
René Seindal (rene@seindal.dk)                 
http://www.seindal.dk/rene/
 
 
------------------------------------------------------------------------
*** gtkctree.c~ Wed Sep 15 04:08:48 1999
--- gtkctree.c  Fri Sep 24 14:39:03 1999
***************
*** 474,479 ****
--- 474,488 ----
                                "change_focus_row_expansion", 1,
                                GTK_TYPE_ENUM,
GTK_CTREE_EXPANSION_EXPAND);
    gtk_binding_entry_add_signal (binding_set,
+                               '+', 0,
+                               "change_focus_row_expansion", 1,
+                               GTK_TYPE_ENUM,
GTK_CTREE_EXPANSION_EXPAND);
+   gtk_binding_entry_add_signal (binding_set,
+                               '+', GDK_CONTROL_MASK,
+                               "change_focus_row_expansion", 1,
+                               GTK_TYPE_ENUM,
+                               GTK_CTREE_EXPANSION_EXPAND_RECURSIVE);
+   gtk_binding_entry_add_signal (binding_set,
                                GDK_KP_Add, 0,
                                "change_focus_row_expansion", 1,
                                GTK_TYPE_ENUM,
GTK_CTREE_EXPANSION_EXPAND);
***************
*** 487,492 ****
--- 496,506 ----
                                "change_focus_row_expansion", 1,
                                GTK_TYPE_ENUM,
GTK_CTREE_EXPANSION_COLLAPSE);
    gtk_binding_entry_add_signal (binding_set,
+                               '-', GDK_CONTROL_MASK,
+                               "change_focus_row_expansion", 1,
+                               GTK_TYPE_ENUM,
+                               GTK_CTREE_EXPANSION_COLLAPSE_RECURSIVE);
+   gtk_binding_entry_add_signal (binding_set,
                                GDK_KP_Subtract, 0,
                                "change_focus_row_expansion", 1,
                                GTK_TYPE_ENUM,
GTK_CTREE_EXPANSION_COLLAPSE);
***************
*** 500,505 ****
--- 514,523 ----
                                "change_focus_row_expansion", 1,
                                GTK_TYPE_ENUM,
GTK_CTREE_EXPANSION_TOGGLE);
    gtk_binding_entry_add_signal (binding_set,
+                               '=', GDK_SHIFT_MASK,
+                               "change_focus_row_expansion", 1,
+                               GTK_TYPE_ENUM,
GTK_CTREE_EXPANSION_TOGGLE);
+   gtk_binding_entry_add_signal (binding_set,
                                GDK_KP_Multiply, 0,
                                "change_focus_row_expansion", 1,
                                GTK_TYPE_ENUM,
GTK_CTREE_EXPANSION_TOGGLE);
------------------------------------------------------------------------

-- 
René Seindal (rene@seindal.dk)			http://www.seindal.dk/rene/




------- Bug moved to this database by debbugs-export@bugzilla.gnome.org 2001-01-27 14:46 -------
This bug was previously known as bug 2682 at http://bugs.gnome.org/
http://bugs.gnome.org/show_bug.cgi?id=2682
Originally filed under the gtk+ product and general component.

The original reporter (rene@seindal.dk) of this bug does not have an account here.
Reassigning to the exporter, debbugs-export@bugzilla.gnome.org.
Reassigning to the default owner of the component, gtk-bugs@gtk.org.

Comment 1 Havoc Pennington 2001-01-28 05:35:49 UTC
Seems like it should maybe go in both stable and HEAD.
Comment 2 Owen Taylor 2001-02-19 21:40:26 UTC
Applied. For 2.0, this really should be handled by better
handling of modifiers in general. (See #50300)