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:
Matthias Clasen 2005-10-28 15:13:54 +00:00 committed by Matthias Clasen
parent 6a047273c3
commit 96335d4326
3 changed files with 16 additions and 1 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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);