Re: vpaned and size
- From: Arno <dark-arno ifrance com>
- To: Victor <drzoidberg wanadoo es>
- Cc: Gtk app devel <gtk-app-devel-list gnome org>
- Subject: Re: vpaned and size
- Date: Sun, 28 Jul 2002 12:13:19 +0200
Victor wrote:
You have to handle "size_request" signal that emits the window.
For example (in Gtk+-1.2):
static gboolean size_request_cb (GtkWidget *widget, GtkRequisition *req,
gpointer data)
{
GtkWidget *vpaned = (gpointer) data;
gtk_paned_set_position (GTK_PANED (vpaned), ...);
return TRUE;
}
GtkWidget *main_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
GtkWidget *vpaned = gtk_vpaned_new ();
...
gtk_container_add (GTK_CONTAINER (main_window), vpaned);
....
gtk_signal_connect (GTK_OBJECT (main_window), "size_request",
(GtkSignalFunc) size_request_cb, (gpointer) vpaned);
(this function is deprecated in gtk+-2.0)
....
Like you said, it's deprecated in GTK 2. And I use GTK 2... So I must
find an other solution
Victor
Arno
______________________________________________________________________________
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]