[Fwd: GtkSocket - howto set initial size]
- From: Gal Aviel <galaviel bezeqint net il>
- To: gtk-list gnome org
- Subject: [Fwd: GtkSocket - howto set initial size]
- Date: Fri, 18 Jul 2003 20:27:18 +0300
--- Begin Message ---
- From: Gal Aviel <galaviel bezeqint net il>
- To: gtk-app-devel gnome org
- Subject: GtkSocket - howto set initial size
- Date: Fri, 18 Jul 2003 20:19:18 +0300
Hi All,
How can I set the initial size of a GtkSocket (I'm using Gtk 2.2.2 on 
RH8 x86)?
I want to set the *initial* size of the socket to the size specified by 
the WM_HINTS/PSIZE
that the embedee sets on its toplevel window (PSIZE is currently un-used 
in gtksocket.c at all).
However I *do* want the user to be able to shrink the socket/embedded 
window below
and above that initial size.
I'm looking for something similar to gtk_window_set_default_size() but for
a widget.
This is important for me, since I'm embedding NEdit (the text editor), 
where one of the
user preferences is the initial size of the nedit window (expressed as 
rows x cols). NEdit
takes this preference and after considering the size of the menu etc 
sets PSIZE.
Any thoughts ?
Thanks in advance,
Gal.
--- End Message ---
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]