Some automatic GTK# refactoring no one knows why.

This commit is contained in:
2017-05-15 07:32:34 +01:00
parent 968ddc7a89
commit fbcb5b58ab
3 changed files with 10 additions and 8 deletions

View File

@@ -671,7 +671,7 @@ public partial class dlgAdd
global::Gtk.ButtonBox.ButtonBoxChild w61 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w60[this.btnDialog]));
w61.Expand = false;
w61.Fill = false;
if((this.Child != null))
if ((this.Child != null))
{
this.Child.ShowAll();
}

View File

@@ -8,7 +8,7 @@ namespace Stetic
internal static void Initialize(Gtk.Widget iconRenderer)
{
if((Stetic.Gui.initialized == false))
if ((Stetic.Gui.initialized == false))
{
Stetic.Gui.initialized = true;
}
@@ -20,11 +20,12 @@ namespace Stetic
public static Gdk.Pixbuf LoadIcon(Gtk.Widget widget, string name, Gtk.IconSize size)
{
Gdk.Pixbuf res = widget.RenderIcon(name, size, null);
if((res != null))
if ((res != null))
{
return res;
}
else {
else
{
int sz;
int sy;
global::Gtk.Icon.SizeLookup(size, out sz, out sy);
@@ -32,13 +33,14 @@ namespace Stetic
{
return Gtk.IconTheme.Default.LoadIcon(name, sz, 0);
}
catch(System.Exception)
catch (System.Exception)
{
if((name != "gtk-missing-image"))
if ((name != "gtk-missing-image"))
{
return Stetic.IconLoader.LoadIcon(widget, "gtk-missing-image", size);
}
else {
else
{
Gdk.Pixmap pmap = new Gdk.Pixmap(Gdk.Screen.Default.RootWindow, sz, sz);
Gdk.GC gc = new Gdk.GC(pmap);
gc.RgbFgColor = new Gdk.Color(255, 255, 255);

View File

@@ -309,7 +309,7 @@ namespace osrepodbmgr
global::Gtk.ButtonBox.ButtonBoxChild w30 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w29[this.btnDialog]));
w30.Expand = false;
w30.Fill = false;
if ((this.Child != null))
if((this.Child != null))
{
this.Child.ShowAll();
}