CTree and CList get_text behavior
- From: Mike Fletcher <fletch phydeaux org>
- To: gtk-list redhat com
- Subject: CTree and CList get_text behavior
- Date: 06 Apr 1999 14:29:42 -0400
The problem I'm having is that the CList get_text call (and
similarly for CTree node_get_text) don't return anything for PIXTEXT
cells, only TEXT cells. A patch changing this was mailed to the list
back in January:
URL http://archive.redhat.com/gtk-list/1999-January/0526.html
diff -u ../gtk+-1.1.13/gtk/gtkctree.c gtk/gtkctree.c
--- ../gtk+-1.1.13/gtk/gtkctree.c Thu Jan 21 12:20:11 1999
+++ gtk/gtkctree.c Thu Jan 21 11:59:54 1999
@@ -4845,8 +4845,15 @@
if (column < 0 || column >= GTK_CLIST (ctree)->columns)
return 0;
- if (GTK_CTREE_ROW (node)->row.cell[column].type != GTK_CELL_TEXT)
- return 0;
+ switch (GTK_CTREE_ROW (node)->row.cell[column].type)
+ {
+ case GTK_CELL_TEXT:
+ case GTK_CELL_PIXTEXT:
+ break;
+
+ default:
+ return 0;
+ }
if (text)
*text = GTK_CELL_TEXT (GTK_CTREE_ROW (node)->row.cell[column])->text;
But the above patch doesn't appear to have made it into either
1.2.1 or what's currently in CVS. Did this just get overlooked, or is
there some rationale for not being able to get at the text part of a
pixtext cell?
--
Fletch | __`'/|
fletch@phydeaux.org | "I drank what?" -- Socrates \ o.O'
678 443-6239(w) | =(___)=
| U
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]