corrade-vassal – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 vero 1  
2 // This file has been generated by the GUI designer. Do not modify.
3 namespace Stetic
4 {
5 internal class Gui
6 {
7 private static bool initialized;
8  
9 internal static void Initialize (Gtk.Widget iconRenderer)
10 {
11 if ((Stetic.Gui.initialized == false)) {
12 Stetic.Gui.initialized = true;
13 }
14 }
15 }
16  
17 internal class IconLoader
18 {
19 public static Gdk.Pixbuf LoadIcon (Gtk.Widget widget, string name, Gtk.IconSize size)
20 {
21 Gdk.Pixbuf res = widget.RenderIcon (name, size, null);
22 if ((res != null)) {
23 return res;
24 } else {
25 int sz;
26 int sy;
27 global::Gtk.Icon.SizeLookup (size, out sz, out sy);
28 try {
29 return Gtk.IconTheme.Default.LoadIcon (name, sz, 0);
30 } catch (System.Exception) {
31 if ((name != "gtk-missing-image")) {
32 return Stetic.IconLoader.LoadIcon (widget, "gtk-missing-image", size);
33 } else {
34 Gdk.Pixmap pmap = new Gdk.Pixmap (Gdk.Screen.Default.RootWindow, sz, sz);
35 Gdk.GC gc = new Gdk.GC (pmap);
36 gc.RgbFgColor = new Gdk.Color (255, 255, 255);
37 pmap.DrawRectangle (gc, true, 0, 0, sz, sz);
38 gc.RgbFgColor = new Gdk.Color (0, 0, 0);
39 pmap.DrawRectangle (gc, false, 0, 0, (sz - 1), (sz - 1));
40 gc.SetLineAttributes (3, Gdk.LineStyle.Solid, Gdk.CapStyle.Round, Gdk.JoinStyle.Round);
41 gc.RgbFgColor = new Gdk.Color (255, 0, 0);
42 pmap.DrawLine (gc, (sz / 4), (sz / 4), ((sz - 1)
43 - (sz / 4)), ((sz - 1)
44 - (sz / 4)));
45 pmap.DrawLine (gc, ((sz - 1)
46 - (sz / 4)), (sz / 4), (sz / 4), ((sz - 1)
47 - (sz / 4)));
48 return Gdk.Pixbuf.FromDrawable (pmap, pmap.Colormap, 0, 0, 0, 0, sz, sz);
49 }
50 }
51 }
52 }
53 }
54  
55 internal class ActionGroups
56 {
57 public static Gtk.ActionGroup GetActionGroup (System.Type type)
58 {
59 return Stetic.ActionGroups.GetActionGroup (type.FullName);
60 }
61  
62 public static Gtk.ActionGroup GetActionGroup (string name)
63 {
64 return null;
65 }
66 }
67 }