Re: vpaned and size
- From: Victor <drzoidberg wanadoo es>
- To: dark-arno ifrance com
- Cc: Gtk app devel <gtk-app-devel-list gnome org>
- Subject: Re: vpaned and size
- Date: 27 Jul 2002 20:38:07 +0200
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)
....
Victor
Message: 1
Date: Sat, 27 Jul 2002 11:13:28 +0200
From: Arno <dark-arno ifrance com>
To: Mailling List gtk-app-devel-list <gtk-app-devel-list gnome org>
Subject: vpaned and size
Hello,
I create a vpaned. At the creation, I use :
gtk_paned_set_position (GTK_PANED (vpaned), 200);
But when I resize the window, it's the bottom of the vpaned whose the
size change. I would like to fix the bottom and it's the top whose size
change.
Thank you
Arno
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]