Commit 5d8d3da1 authored by Paolo Borelli's avatar Paolo Borelli Committed by Paolo Borelli

use gtk_accelerator_get_default_mod_mask instead of hardcoding SHIFT |

2006-02-24  Paolo Borelli  <pborelli@katamail.com>

	* gedit/gedit-view.c: use gtk_accelerator_get_default_mod_mask
	instead of hardcoding SHIFT | CONTROL.
parent e3e4445e
2006-02-24 Paolo Borelli <pborelli@katamail.com>
* gedit/gedit-view.c: use gtk_accelerator_get_default_mod_mask
instead of hardcoding SHIFT | CONTROL.
2006-02-24 Paolo Borelli <pborelli@katamail.com>
* gedit/gedit-ui.h: change Replace accel to ctrl+H as mandated, by the
......
......@@ -1187,6 +1187,9 @@ search_window_key_press_event (GtkWidget *widget,
GeditView *view)
{
gboolean retval = FALSE;
guint modifiers;
modifiers = gtk_accelerator_get_default_mod_mask ();
/* Close window */
if (event->keyval == GDK_Tab)
......@@ -1194,7 +1197,7 @@ search_window_key_press_event (GtkWidget *widget,
hide_search_window (view, FALSE);
retval = TRUE;
}
/* Close window and cancel the search */
if (event->keyval == GDK_Escape)
{
......@@ -1226,7 +1229,7 @@ search_window_key_press_event (GtkWidget *widget,
retval = TRUE;
}
if (((event->state & (GDK_CONTROL_MASK | GDK_SHIFT_MASK)) == (GDK_CONTROL_MASK | GDK_SHIFT_MASK)) &&
if (((event->state & modifiers) == (GDK_CONTROL_MASK | GDK_SHIFT_MASK)) &&
(event->keyval == GDK_g || event->keyval == GDK_G))
{
search_again (view, TRUE);
......@@ -1240,7 +1243,7 @@ search_window_key_press_event (GtkWidget *widget,
retval = TRUE;
}
if (((event->state & (GDK_CONTROL_MASK | GDK_SHIFT_MASK)) == GDK_CONTROL_MASK) &&
if (((event->state & modifiers) == GDK_CONTROL_MASK) &&
(event->keyval == GDK_g || event->keyval == GDK_G))
{
search_again (view, FALSE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment