gbrainy r448 - trunk/src
- From: jmas svn gnome org
- To: svn-commits-list gnome org
- Subject: gbrainy r448 - trunk/src
- Date: Fri, 29 Aug 2008 18:06:05 +0000 (UTC)
Author: jmas
Date: Fri Aug 29 18:06:04 2008
New Revision: 448
URL: http://svn.gnome.org/viewvc/gbrainy?rev=448&view=rev
Log:
Better support for lowres
Modified:
trunk/src/ChangeLog
trunk/src/gbrainy.cs
Modified: trunk/src/gbrainy.cs
==============================================================================
--- trunk/src/gbrainy.cs (original)
+++ trunk/src/gbrainy.cs Fri Aug 29 18:06:04 2008
@@ -50,6 +50,7 @@
Gtk.TextBuffer question_buffer;
Gtk.TextBuffer solution_buffer;
TextTag tag_green;
+ bool low_res = false;
public static PlayerHistory history = null;
public static Preferences preferences = null;
@@ -134,13 +135,22 @@
session.GameManager.Difficulty = (Game.Difficulty) preferences.GetIntValue (Preferences.DifficultyKey);
drawing_area = new GameDrawingArea ();
+
+ // For low resolutions, hide the toolbar and made the drawing area smaller
+ if (drawing_area.Screen.Width> 0 && drawing_area.Screen.Height > 0) {
+ if (drawing_area.Screen.Height < 800) {
+ drawing_vbox.HeightRequest = 300;
+ low_res = true;
+ }
+ }
+
drawing_vbox.Add (drawing_area);
//app_window.Resize (500, 700);
//app_window.SizeAllocated += new SizeAllocatedHandler (OnSizeAllocated);
app_window.IconName = "gbrainy";
app_window.ShowAll ();
- if (preferences.GetBoolValue (Preferences.Toolbar) == false)
+ if (preferences.GetBoolValue (Preferences.Toolbar) == false || low_res == true)
toolbar_menuitem.Active = false;
color = label_answer.Style.Background (StateType.Normal);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]