Question about window resizing

2010-05-11 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I have an app where I have been using gtk_window_set_policy that I have
it set to allow the window to grow and shrink and I set a specific size
on a GtkSocket that is embedded in the window using
gtk_widget_set_size_request. I am trying to prepare my code for GTK 3.0
and noticed that the gtk_window_set_policy is no longer supported and I
am to use gtk_window_set_resizable. However, once I do that I cannot
shrink the window anymore due to the the gtk_widget_set_size_request
blocking the shrink.

Is there a technique I can use to allow the shrink without using
gtk_window_set_policy?

Kevin
- -- 
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x7D0BD5D1
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkvpbREACgkQ6w2kMH0L1dHSMwCfZ86Jecl8hXhYXslQg+bY9vey
WEQAn07zdCqE22ps8VwgUepfZsLrb7jN
=RDNG
-END PGP SIGNATURE-
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Widget choice / top level window resizing

2010-03-25 Thread David Nečas
On Thu, Mar 25, 2010 at 09:28:01AM +1100, Matthew Allen wrote:
 The code I'm porting to Gtk has all it's own layout systems in place
 anyway and I want to bypass using Gtk layout to get something working
 quickly. At the moment I can get a basic window showing on the screen
 with an appropriate set of child widgets using GtkFixed, however the
 main window is then stuck at the initial size that I created it at,
 i.e. I can't resize it smaller, because all the Widgets have a minimum
 size as specified by gtk_widget_size_request. I'm new to Gtk :)

At least the container widget has to *not* request a fixed size,
whatever its children do.

A better alternative to GtkFixed might be GtkLayout but, generally, if
you want a specialized container you will have to write it.  Or consider
using Gtk's packing containers because fixed position based layouts
tend to break when anything in the app or the envitionment changes.

Yeti

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Window resizing

2007-06-01 Thread John Coppens
Hi all...

I need a hand. In a program I have a small toolbar separate from the main
window. The toolbar is a GtkToolbar inside a GtkWindow. The problem is
that I cannot seem to make the GtkWindow resize to adjust to the toolbar
size (I want to switch vertical/horizontal). Also, I need to adjust to
other glyph sizes.

I tried to obtain the toolbar's size, but get the actual size, not the
one I need to show the toolbar completely.

It seems as if the toolbar doesn't have any influence on the window's
size...

Can anybody help?

John
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Window resizing

2007-06-01 Thread John Coppens
On Fri, 1 Jun 2007 22:13:47 -0300
John Coppens [EMAIL PROTECTED] wrote:

 Hi all...
 
 I need a hand. In a program I have a small toolbar separate from the
 main window. The toolbar is a GtkToolbar inside a GtkWindow. The
 problem is that I cannot seem to make the GtkWindow resize to adjust to
 the toolbar size (I want to switch vertical/horizontal). Also, I need
 to adjust to other glyph sizes.
 
 I tried to obtain the toolbar's size, but get the actual size, not the
 one I need to show the toolbar completely.
 
 It seems as if the toolbar doesn't have any influence on the window's
 size...

Quite accidently, solved! If the 'arrow' is enabled, no size requests
seem to go the window, because the 'arrow' on the toolbar would take care
of shifts anyway. 

Sorry for the noise...

John
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list