Re: CList, how to append a widget, not text?



Q: Is there a way to append a widget to a CList (prepend, insert, etc)
Q: instead of just columnar text? I RTFM'd for an hour with no luck.

On Tue, 31 Dec 2002, John McDermott wrote:
 A: From the Tutorial 
A: (http://www-zeuthen.desy.de/computing/documentation/perl/gtkperl-tutorial/tut-28.html), 
the functions are:

       $clist->set_row_data( $row, $data );
       $clist->set_row_data_full( $row, $data, $destroy );
       $clist->get_row_data( $row );
       $clist->get_row_from_data( $data );

So I guess the answer is no :-) I know of those functions, it
just seemed that having a widget in a CList cell would be *so*
useful... 

and this I was optimistic based upon this tempting function,
described so in the Tutorial (CList page):

QUOTE 

There is one more call that is related to what's inside a cell
in the clist, and that's:

$clist->get_cell_type( $row, $column );

which returns the type of data in a cell. The return value is one of:

'empty'
'text'
'pixmap'
'pixtext'
'widget'        <------ THIS!

END QUOTE



Alas, RTFM again this morning (from
http://developer.gnome.org/doc/API/gtk/gtkclist.html#GTKCELLTYPE
note last line):

QUOTE

enum GtkCellType

typedef enum
{
  GTK_CELL_EMPTY,
  GTK_CELL_TEXT,
  GTK_CELL_PIXMAP,
  GTK_CELL_PIXTEXT,
  GTK_CELL_WIDGET
} GtkCellType;

Identifies the type of element in the current cell of the
CList. Cells can contain text, pixmaps, or both. 

Unfortunately support for GTK_CELL_WIDGET was never completed.

END QUOTE





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