public class gbrainy
{
[Glade.Widget("gbrainy")] Gtk.Window app_window;
[Glade.Widget] Box drawing_vbox;
[Glade.Widget] Gtk.Label question_label;
[Glade.Widget] Gtk.Label solution_label;
[Glade.Widget] Gtk.Entry answer_entry;
[Glade.Widget] Gtk.Button answer_button;
[Glade.Widget] Gtk.Button tip_button;
[Glade.Widget] Gtk.Button next_button;
[Glade.Widget] Gtk.Statusbar statusbar;
[Glade.Widget] Gtk.Toolbar toolbar;
GameDrawingArea drawing_area;
GameSession session;
const int ok_buttonid = -5;
ToolButton pause_tbbutton;
string activityId="";
string bundleId="";
public gbrainy (string [] args, params object [] props)
Catalog.Init ("gbrainy", Defines.GNOME_LOCALE_DIR);
IconFactory icon_factory = new IconFactory ();
AddIcon (icon_factory, "math-games", "math-games-32.png");
AddIcon (icon_factory, "memory-games", "memory-games-32.png");
AddIcon (icon_factory, "pause", "pause-32.png");
AddIcon (icon_factory, "resume", "resume-32.png");
AddIcon (icon_factory, "endgame", "endgame-32.png");
AddIcon (icon_factory, "allgames", "allgames-32.png");
AddIcon (icon_factory, "endprogram", "endprogram-32.png");
icon_factory.AddDefault ();
if (args.Length>0) {
}
Glade.XML gXML = new Glade.XML (null, "gbrainy.glade", "gbrainy", null);
gXML.Autoconnect (this);
Sugar.Activity activity=new Sugar.Activity(app_window, activityId, bundleId);
activity.SetActiveEvent += activeChanged;
app_window.Show();
toolbar.IconSize = Gtk.IconSize.Dnd;
Tooltips tooltips = new Tooltips ();
ToolButton button = new ToolButton ("allgames");
button.SetTooltip (tooltips, Catalog.GetString ("Play all the games"), null);
button.Label = Catalog.GetString ("All");
button.Clicked += OnAllGames;
toolbar.Insert (button, -1);
// ...