gcompris r3497 - branches/gcomprixogoo/src/gcompris
- From: bcoudoin svn gnome org
- To: svn-commits-list gnome org
- Subject: gcompris r3497 - branches/gcomprixogoo/src/gcompris
- Date: Sun, 17 Aug 2008 21:43:06 +0000 (UTC)
Author: bcoudoin
Date: Sun Aug 17 21:43:06 2008
New Revision: 3497
URL: http://svn.gnome.org/viewvc/gcompris?rev=3497&view=rev
Log:
added support for ctrl-f
Modified:
branches/gcomprixogoo/src/gcompris/gcompris.c
Modified: branches/gcomprixogoo/src/gcompris/gcompris.c
==============================================================================
--- branches/gcomprixogoo/src/gcompris/gcompris.c (original)
+++ branches/gcomprixogoo/src/gcompris/gcompris.c Sun Aug 17 21:43:06 2008
@@ -96,6 +96,7 @@
static GcomprisProperties *properties = NULL;
static gboolean is_mapped = FALSE;
+static gboolean fullscreen;
/****************************************************************************/
/* Some constants. */
@@ -309,12 +310,20 @@
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_fullscreen_set(gboolean state)
{
+ fullscreen = state;
if(state)
{
gdk_window_set_decorations (window->window, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]