mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-26 05:15:31 +00:00
More 104 bug fixes
svn path=/trunk/gtk-sharp/; revision=7750
This commit is contained in:
parent
1a079be869
commit
a31190ba9d
|
@ -10,7 +10,7 @@ using GtkSharp;
|
||||||
public class Fifteen
|
public class Fifteen
|
||||||
{
|
{
|
||||||
const int SCRAMBLE_MOVES = 256;
|
const int SCRAMBLE_MOVES = 256;
|
||||||
static Window window = null;
|
static Gtk.Window window = null;
|
||||||
static Canvas canvas = null;
|
static Canvas canvas = null;
|
||||||
static BoardPiece [] board;
|
static BoardPiece [] board;
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ public class Fifteen
|
||||||
BoardPiece.Debug = true;
|
BoardPiece.Debug = true;
|
||||||
Program fifteen = new Program ("Fifteen", "0.1", Modules.UI, args);
|
Program fifteen = new Program ("Fifteen", "0.1", Modules.UI, args);
|
||||||
|
|
||||||
window = new Window ("Fifteen #");
|
window = new Gtk.Window ("Fifteen #");
|
||||||
VBox box = new VBox (false, 0);
|
VBox box = new VBox (false, 0);
|
||||||
window.Add (box);
|
window.Add (box);
|
||||||
window.DefaultSize = new Size (300, 300);
|
window.DefaultSize = new Size (300, 300);
|
||||||
|
@ -86,11 +86,11 @@ public class Fifteen
|
||||||
Menu file_menu = new Menu ();
|
Menu file_menu = new Menu ();
|
||||||
|
|
||||||
ImageMenuItem scramble_item = new ImageMenuItem ("_Scramble");
|
ImageMenuItem scramble_item = new ImageMenuItem ("_Scramble");
|
||||||
scramble_item.Image = new Gtk.Image (Stock.Refresh, IconSize.Menu);
|
scramble_item.Image = new Gtk.Image (Gtk.Stock.Refresh, IconSize.Menu);
|
||||||
scramble_item.Activated += new EventHandler (Scramble);
|
scramble_item.Activated += new EventHandler (Scramble);
|
||||||
|
|
||||||
ImageMenuItem quit_item = new ImageMenuItem ("_Quit");
|
ImageMenuItem quit_item = new ImageMenuItem ("_Quit");
|
||||||
quit_item.Image = new Gtk.Image (Stock.Quit, IconSize.Menu);
|
quit_item.Image = new Gtk.Image (Gtk.Stock.Quit, IconSize.Menu);
|
||||||
quit_item.Activated += new EventHandler (Quit);
|
quit_item.Activated += new EventHandler (Quit);
|
||||||
|
|
||||||
file_menu.Append (scramble_item);
|
file_menu.Append (scramble_item);
|
||||||
|
|
|
@ -112,7 +112,7 @@ namespace GtkSamples {
|
||||||
args);
|
args);
|
||||||
|
|
||||||
GnomeHelloWorld hello = new GnomeHelloWorld ();
|
GnomeHelloWorld hello = new GnomeHelloWorld ();
|
||||||
Window win = hello.CreateWindow ();
|
Gtk.Window win = hello.CreateWindow ();
|
||||||
win.ShowAll ();
|
win.ShowAll ();
|
||||||
kit.Run ();
|
kit.Run ();
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue