mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
Handle Shift-G to go to the previous match, like firefox. (#320061,
2005-10-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreeview.c (gtk_tree_view_search_key_press_event): Handle Shift-G to go to the previous match, like firefox. (#320061, Christian Neumair)
This commit is contained in:
parent
6a047273c3
commit
96335d4326
@ -1,5 +1,9 @@
|
||||
2005-10-28 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_search_key_press_event): Handle
|
||||
Shift-G to go to the previous match, like firefox. (#320061, Christian
|
||||
Neumair)
|
||||
|
||||
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_build_level): Fix a
|
||||
C99ism. (#320000, Kazuki Iwamoto)
|
||||
|
||||
|
@ -1,5 +1,9 @@
|
||||
2005-10-28 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_search_key_press_event): Handle
|
||||
Shift-G to go to the previous match, like firefox. (#320061, Christian
|
||||
Neumair)
|
||||
|
||||
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_build_level): Fix a
|
||||
C99ism. (#320000, Kazuki Iwamoto)
|
||||
|
||||
|
@ -12700,6 +12700,13 @@ gtk_tree_view_search_key_press_event (GtkWidget *widget,
|
||||
retval = TRUE;
|
||||
}
|
||||
|
||||
if (((event->state & (GDK_CONTROL_MASK | GDK_SHIFT_MASK)) == (GDK_CONTROL_MASK | GDK_SHIFT_MASK))
|
||||
&& (event->keyval == GDK_g || event->keyval == GDK_G))
|
||||
{
|
||||
gtk_tree_view_search_move (widget, tree_view, TRUE);
|
||||
retval = TRUE;
|
||||
}
|
||||
|
||||
/* select next matching iter */
|
||||
if (event->keyval == GDK_Down || event->keyval == GDK_KP_Down)
|
||||
{
|
||||
@ -12707,7 +12714,7 @@ gtk_tree_view_search_key_press_event (GtkWidget *widget,
|
||||
retval = TRUE;
|
||||
}
|
||||
|
||||
if ((event->state & GDK_CONTROL_MASK) == GDK_CONTROL_MASK
|
||||
if (((event->state & (GDK_CONTROL_MASK | GDK_SHIFT_MASK)) == GDK_CONTROL_MASK)
|
||||
&& (event->keyval == GDK_g || event->keyval == GDK_G))
|
||||
{
|
||||
gtk_tree_view_search_move (widget, tree_view, FALSE);
|
||||
|
Loading…
Reference in New Issue
Block a user