Re: Size of widget



 Hello Frederick,

Fredrik Rambris writes:
Mark Leisher wrote:

    learfox> When yer definatly sure the widget has the right size you want,
    learfox> use

Another alternative is to insure your window exists with gtk_widget_realize()
and then call gtk_window_get_size() for the width and height.  Notice that one
is "widget" and the other "window".

  I had a similar doubt and Paul Barton-Davis sent me answer on the
gtk-list. 

there isn't a function called gtk_window_get_size. I've searched both
docs and includes.

  No there isn't, but there is a `gdk_window_get_size()` (*gdk* not
gtk), which worked fine for me. 

 I suggested that GTK made a gtk_window_get_size, but Paul gave
various reasons fot not having the `gtk_window_get_size'.... (check
the gtk-list archives). But personally I think GTK should have this,
hence it's a very basic function (in my opinion), and most developers
would like to have something like this ready in GTK... but that's just
me :-)

  good luck, hope this helps you,


--  
  Livio <livio linux ime usp br>




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