viewgit/index.php:465 Only variables should be passed by reference [2048]

viewgit/index.php:466 Non-static method GeSHi::get_language_name_from_extension() should not be called statically [2048]

  1. // ------------------------------------------------------------------------------
  2. // <autogenerated>
  3. // This code was generated by a tool.
  4. //
  5. //
  6. // Changes to this file may cause incorrect behavior and will be lost if
  7. // the code is regenerated.
  8. // </autogenerated>
  9. // ------------------------------------------------------------------------------
  10.  
  11. namespace Stetic {
  12.  
  13.  
  14. internal class Gui {
  15.  
  16. private static bool initialized;
  17.  
  18. internal static void Initialize(Gtk.Widget iconRenderer) {
  19. if ((Stetic.Gui.initialized == false)) {
  20. Stetic.Gui.initialized = true;
  21. }
  22. }
  23. }
  24.  
  25. internal class IconLoader {
  26.  
  27. public static Gdk.Pixbuf LoadIcon(Gtk.Widget widget, string name, Gtk.IconSize size, int sz) {
  28. Gdk.Pixbuf res = widget.RenderIcon(name, size, null);
  29. if ((res != null)) {
  30. return res;
  31. }
  32. else {
  33. try {
  34. return Gtk.IconTheme.Default.LoadIcon(name, sz, 0);
  35. }
  36. catch (System.Exception ) {
  37. if ((name != "gtk-missing-image")) {
  38. return Stetic.IconLoader.LoadIcon(widget, "gtk-missing-image", size, sz);
  39. }
  40. else {
  41. Gdk.Pixmap pmap = new Gdk.Pixmap(Gdk.Screen.Default.RootWindow, sz, sz);
  42. Gdk.GC gc = new Gdk.GC(pmap);
  43. gc.RgbFgColor = new Gdk.Color(255, 255, 255);
  44. pmap.DrawRectangle(gc, true, 0, 0, sz, sz);
  45. gc.RgbFgColor = new Gdk.Color(0, 0, 0);
  46. pmap.DrawRectangle(gc, false, 0, 0, (sz - 1), (sz - 1));
  47. gc.SetLineAttributes(3, Gdk.LineStyle.Solid, Gdk.CapStyle.Round, Gdk.JoinStyle.Round);
  48. gc.RgbFgColor = new Gdk.Color(255, 0, 0);
  49. pmap.DrawLine(gc, (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)), ((sz - 1) - (sz / 4)));
  50. pmap.DrawLine(gc, ((sz - 1) - (sz / 4)), (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)));
  51. return Gdk.Pixbuf.FromDrawable(pmap, pmap.Colormap, 0, 0, 0, 0, sz, sz);
  52. }
  53. }
  54. }
  55. }
  56. }
  57.  
  58. internal class ActionGroups {
  59.  
  60. public static Gtk.ActionGroup GetActionGroup(System.Type type) {
  61. return Stetic.ActionGroups.GetActionGroup(type.FullName);
  62. }
  63.  
  64. public static Gtk.ActionGroup GetActionGroup(string name) {
  65. return null;
  66. }
  67. }
  68. }