On 2003.01.27 Gerard Patel wrote:
> At 05:17 PM 1/27/03 +0000, you wrote:
> 
> >I can't believe it's very difficult. I mean, take an example - I'm
> >looking at Evolution right now, a GTK app. I have it maximised; the tree
> >view on the left has no scrollbars. If I make it too thin for the whole
> >tree view to be completely displayed horizontally, guess what? A
> >scrollbar appears. If I make it too short for it to be completely
> >displayed vertically (I'm sure you can see where I'm going with
> >this...:>), hey, another scrollbar appears! Just like that. SURELY this
> >can't be *so* hard for the Mandrake tools to implement? I guess Mandrake
> >has the slight extra problem of starting its tools up with an
> >appropriate window size, but that must surely be possible too.
> 
> Hmmm... everything is possible with enough code but 
> is it worth the bother, that's always the question.
> I have just done a few minutes of search on the Internet, and
> looking at :
> http://developer.gnome.org/doc/API/gtk/gtkwindow.html
> 

Look at GtkScrolledWindow. As I see it, it is just a three-liner to make
everyone happy:
- change the GtkWindow in mcc for a GtkScrolledWindow
- let the default size for mcc whatever you want. If it is bigger than the
  screen, the system will not make it that size, but just fit to the avaliable
  space
- if you use a small screen, then the scrollbars wil be visible. if you are
  at 1600x1200, no scrollbars will appear.

As I said, just 1 line change and 1 line add to set default scrolling policy
for the GtkScrolledWindow.

Err, supposing the interfaces are implemented in perl (I just use the C gtk)

Hope this helps.

-- 
J.A. Magallon <[EMAIL PROTECTED]>      \                 Software is like sex:
werewolf.able.es                         \           It's better when it's free
Mandrake Linux release 9.1 (Cooker) for i586
Linux 2.4.21-pre3-jam3 (gcc 3.2.1 (Mandrake Linux 9.1 3.2.1-4mdk))

Reply via email to