[Glade-users] Glade UI Preferences




On 20 Apr 2009, at 17:23, Alexey Kurochkin wrote:

On Mon, 2009-04-20 at 11:04 -0500, Alexey Kurochkin wrote:
On Mon, 2009-04-20 at 08:59 -0500, Alexey Kurochkin wrote:
On Sun, 2009-04-19 at 10:17 +0100, Simon Langley wrote:
I am trying to use Glade on a netbook with a 1024x600 screen and  
when
the palette is integrated into the main display, I cannot resize  
the
window to fit on the screen.

For some reason the palette window has a minimum size (when  
integrated
or separate) that is larger than strictly necessary.

So, my questions are these.  Is there any way to get around the
(unnecessary) minimum size restriction?  If not, is there any way  
of
turning off the row of buttons on the main display to give a bit  
more
space?

To my understanding the cause of the problem is the line

gtk_widget_set_size_request (widget, -1, rows *
child_allocation.height);

in the glade-palette-box.c file. It forces minimum height of the  
palette
to be the number of rows multiplied by the maximum height of a row,
which would be the height of the expander button plus the height  
of an
icon. I think it is mistake to multiply the height by the number of
rows, as there could be unreasonably many of them to fit the  
palette on
any screen at all. Maybe the size requisition should be even omitted
altogether. You can try to fiddle with that line, recompile, and  
see if
I'm right. In any case, file a bug in bugzilla.gnome.org to get it
fixed.

I filed a bug http://bugzilla.gnome.org/show_bug.cgi?id=579624


On the other hand I was completely wrong. That line is fine.  
Problem is
even simpler. In the glade-window.c there's a line
gtk_widget_set_size_request (palette, 200, 540);



The only preferences I could find were for the project not Glade  
itself.
_______________________________________________
Glade-users maillist  -  Glade-users at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-users

_______________________________________________
Glade-users maillist  -  Glade-users at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-users

_______________________________________________
Glade-users maillist  -  Glade-users at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-users

_______________________________________________
Glade-users maillist  -  Glade-users at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-users

Thanks for looking into this and for filing a bug report Alexey.

I presume that this would only become apparent for users with very  
small screens but even ignoring the fact that the palette has a  
vertical scroll bar, the minimum height of 540 is still bigger than  
necessary.

Otherwise Glade works fine on my netbook (Acer Aspire One running  
Jaunty).

Simon




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]