gtk_clist bug? (fwd)



I posted this message a couple of days ago, but I didn't receive any
replys on it, and I haven't figured it out myself ...

Could someone please help me?

  Gert


---------- Forwarded message ----------
Date: Tue, 6 Apr 1999 19:21:58 +0200 (CEST)
From: Gert <gs2@nowmoo.demon.nl>
To: gtk-list@redhat.com
Subject: gtk_clist bug?

Hi,

I have a gtk_hpaned, with in the right pane, a gtk_scrolled_window
containg a 3 columned gtk_clist.
The scrolled window has the policy (NEVER, AUTOMATIC).
The gtk_clist has 3 columns:
 o A fixed one
 o A variable sized one
 o A fixed one

Well, that's how I want it. The middle column should be the one resized
when the gtk_clist is resized, so that column 0 and 2 remain their size.
But, when I resize the list (by dragging the pane-handle) the most right
column is resized, the same if the contents of the list het bigger then
list can show, and the vertical scrollbar appears.

I used this on the colums:
---
  char *titles[] = {"", "Name", "Obj #"};
[SNIP]
  w->userlist = gtk_clist_new_with_titles(3, titles);
  gtk_widget_show(w->userlist);
  gtk_container_add(GTK_CONTAINER(w->scrollw), w->userlist);
  gtk_clist_column_titles_passive(GTK_CLIST(w->userlist));

  gtk_clist_set_column_width(GTK_CLIST(w->userlist), 0, 13);
  gtk_clist_set_column_resizeable(GTK_CLIST(w->userlist), 0, FALSE);

  gtk_clist_set_column_width(GTK_CLIST(w->userlist), 1, 50);
  /* the  50  is just the default value */
  gtk_clist_set_column_resizeable(GTK_CLIST(w->userlist), 1, TRUE);

  gtk_clist_set_column_width(GTK_CLIST(w->userlist), 2, 35);
  gtk_clist_set_column_resizeable(GTK_CLIST(w->userlist), 2, FALSE);

  gtk_clist_set_row_height(GTK_CLIST(w->userlist), 16);
---
Between the colums 0 and 1, you can't resize, but between column 1 and 2
you can ...

Frankly, I don't understand it, so I think it's a gtk_clist bug ...

  Gert

-------------------------------------------------------------------------------
   ~     Gert, Gs2, The Blue Mage - whatever you prefer
  'v'    E-Mail   : Gs2@dds.nl
 // \\   Computer : nowmoo.demon.nl
/(   )\  Project  : gMOO, a MOO (and MUD) client for the unises
 ^`~'^   HomePage : http://www.nowmoo.demon.nl




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]