gcompris r3475 - in branches/gcomprixogoo: . src/gcompris
- From: bcoudoin svn gnome org
- To: svn-commits-list gnome org
- Subject: gcompris r3475 - in branches/gcomprixogoo: . src/gcompris
- Date: Wed, 23 Jul 2008 21:25:58 +0000 (UTC)
Author: bcoudoin
Date: Wed Jul 23 21:25:57 2008
New Revision: 3475
URL: http://svn.gnome.org/viewvc/gcompris?rev=3475&view=rev
Log:
* src/gcompris/gcompris.c: (setup_window), (gc_fullscreen_set),
(main): fixed fullscreen to work again correctly on gnome. I had to
remove gtk_widget_hide() and gdk_window_set_functions(). These had been
added before to have the fullscreen on KDE. Need someone to check again.
Modified:
branches/gcomprixogoo/ChangeLog
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 Wed Jul 23 21:25:57 2008
@@ -714,7 +714,7 @@
hints.width_inc = 1;
hints.height_inc = 1;
hints.min_aspect = (float)BOARDWIDTH/BOARDHEIGHT;
- hints. max_aspect = (float)BOARDWIDTH/BOARDHEIGHT;
+ hints.max_aspect = (float)BOARDWIDTH/BOARDHEIGHT;
gtk_window_set_geometry_hints (GTK_WINDOW (window),
NULL,
&hints,
@@ -728,7 +728,6 @@
* -------------------
*/
- // gtk_window_set_policy (GTK_WINDOW (window), FALSE, FALSE, TRUE);
gtk_window_set_default_size(GTK_WINDOW(window), BOARDWIDTH, BOARDHEIGHT);
gtk_window_set_wmclass(GTK_WINDOW(window), "gcompris", "GCompris");
@@ -975,19 +974,12 @@
if(state)
{
gdk_window_set_decorations (window->window, 0);
- gdk_window_set_functions (window->window, 0);
gtk_window_fullscreen (GTK_WINDOW(window));
gtk_widget_set_uposition (window, 0, 0);
}
else
{
- /* The hide must be done at least for KDE */
- if (is_mapped)
- gtk_widget_hide (window);
gdk_window_set_decorations (window->window, GDK_DECOR_ALL);
- if (is_mapped)
- gtk_widget_show (window);
- gdk_window_set_functions (window->window, GDK_FUNC_ALL);
gtk_window_unfullscreen (GTK_WINDOW(window));
/* Mandatory or on windows we get iconified */
@@ -1723,8 +1715,8 @@
setup_window ();
- if (properties->fullscreen)
- gc_fullscreen_set(properties->fullscreen);
+ // if (properties->fullscreen)
+ // gc_fullscreen_set(properties->fullscreen);
gtk_widget_show_all (window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]