[sparklediff] Change layout a bit
This commit is contained in:
parent
233ec83b18
commit
17b95ee0cf
|
@ -68,11 +68,10 @@ namespace SparkleShare {
|
||||||
ButtonNext.Clicked += NextInComboBox;
|
ButtonNext.Clicked += NextInComboBox;
|
||||||
ButtonNext.ExposeEvent += EqualizeSizes;
|
ButtonNext.ExposeEvent += EqualizeSizes;
|
||||||
|
|
||||||
controls.PackStart (new Label (""), true, false, 0);
|
|
||||||
controls.PackStart (ButtonPrevious, false, false, 0);
|
controls.PackStart (ButtonPrevious, false, false, 0);
|
||||||
controls.PackStart (ButtonNext, false, false, 0);
|
controls.PackStart (ButtonNext, false, false, 0);
|
||||||
controls.PackStart (ComboBox, false, false, 9);
|
|
||||||
controls.PackStart (new Label (""), true, false, 0);
|
controls.PackStart (new Label (""), true, false, 0);
|
||||||
|
controls.PackStart (ComboBox, false, false, 0);
|
||||||
|
|
||||||
PackStart (controls, false, false, 0);
|
PackStart (controls, false, false, 0);
|
||||||
PackStart (ScrolledWindow, true, true, 0);
|
PackStart (ScrolledWindow, true, true, 0);
|
||||||
|
|
|
@ -161,7 +161,7 @@ namespace SparkleShare {
|
||||||
private void ResizeToViews ()
|
private void ResizeToViews ()
|
||||||
{
|
{
|
||||||
|
|
||||||
int new_width = ViewLeft.GetImage ().Pixbuf.Width + ViewRight.GetImage ().Pixbuf.Width + 100;
|
int new_width = ViewLeft.GetImage ().Pixbuf.Width + ViewRight.GetImage ().Pixbuf.Width + 200;
|
||||||
int new_height = 200;
|
int new_height = 200;
|
||||||
|
|
||||||
if (ViewLeft.GetImage ().Pixbuf.Height > ViewRight.GetImage ().Pixbuf.Height)
|
if (ViewLeft.GetImage ().Pixbuf.Height > ViewRight.GetImage ().Pixbuf.Height)
|
||||||
|
|
Loading…
Reference in a new issue