Commit 6b7a7b5f authored by Bruno Coudoin's avatar Bruno Coudoin

added support for ctrl-f


svn path=/branches/gcomprixogoo/; revision=3497
parent bb56d52c
......@@ -96,6 +96,7 @@ static GtkEntry *widget_activation_entry;
static GcomprisProperties *properties = NULL;
static gboolean is_mapped = FALSE;
static gboolean fullscreen;
/****************************************************************************/
/* Some constants. */
......@@ -309,12 +310,20 @@ board_widget_key_press_callback (GtkWidget *widget,
goo_canvas_update(GOO_CANVAS(canvas));
return TRUE;
}
if(event->state & GDK_CONTROL_MASK && ((event->keyval == GDK_q)
else if(event->state & GDK_CONTROL_MASK && ((event->keyval == GDK_q)
|| (event->keyval == GDK_Q))) {
gc_exit();
return TRUE;
}
else if(event->state & GDK_CONTROL_MASK && ((event->keyval == GDK_f)
|| (event->keyval == GDK_F))) {
/* Toggle fullscreen */
if (fullscreen)
gc_fullscreen_set(FALSE);
else
gc_fullscreen_set(TRUE);
return TRUE;
}
switch (event->keyval)
{
......@@ -971,6 +980,7 @@ void gc_board_end()
*/
void gc_fullscreen_set(gboolean state)
{
fullscreen = state;
if(state)
{
gdk_window_set_decorations (window->window, 0);
......
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