paned example problems
- From: mcmahill mtl mit edu
- To: gtk-app-devel-list gnome org
- Subject: paned example problems
- Date: Sun, 6 Jul 2003 20:08:07 -0400 (EDT)
[resending as I forgot to add a subject the first time. sorry...]
Hi,
I'm having some strange behaviour with panes. I modified the paned.c
example from the gtk-1.2.10/examples/paned directory as follows. The
change simply adds one more paned window to the main window:
--- paned.c.orig Sat Nov 13 23:01:12 1999
+++ paned.c Sun Jul 6 22:36:14 2003
@@ -103,4 +103,5 @@
{
GtkWidget *window;
+ GtkWidget *hpaned;
GtkWidget *vpaned;
GtkWidget *list;
@@ -118,6 +119,15 @@
/* create a vpaned widget and add it to our toplevel window */
+ hpaned = gtk_hpaned_new ();
+ gtk_container_add (GTK_CONTAINER(window), hpaned);
+ gtk_paned_set_handle_size (GTK_PANED(hpaned),
+ 10);
+ gtk_paned_set_gutter_size (GTK_PANED(hpaned),
+ 15);
+ gtk_widget_show (hpaned);
+
vpaned = gtk_vpaned_new ();
- gtk_container_add (GTK_CONTAINER(window), vpaned);
+ //gtk_container_add (GTK_CONTAINER(window), vpaned);
+ gtk_paned_add2 (GTK_PANED(hpaned), vpaned);
gtk_paned_set_handle_size (GTK_PANED(vpaned),
10);
The complete code is at http://www-mtl.mit.edu/~mcmahill/paned-test.tgz
When I compile and run on a 32-bit sparc system, the window comes up
looking like:
http://www-mtl.mit.edu/~mcmahill/paned-sparc.png
but when I compile and run on a 64-bit alpha system, the window comes up
looking like:
http://www-mtl.mit.edu/~mcmahill/paned-alpha.png
Am I doing something wrong with this example or is this a bug in gtk? If
the latter, does anyone have ideas as to where I might start in debugging
it?
Many thanks,
-Dan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]