mirror of
https://github.com/claunia/apprepodbmgr.git
synced 2025-12-16 19:24:42 +00:00
Some automatic GTK# refactoring no one knows why.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user