#26067 [Opn]: node_get_cell_style doesn't work

From: Date: Sat, 17 Jan 2004 16:34:40 +0000
Subject: #26067 [Opn]: node_get_cell_style doesn't work
References: 1  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-609@lists.php.net to get a copy of this message
ID: 26067 Updated by: sfox@php.net Reported By: cweiske at cweiske dot de Status: Open Bug Type: PHP-GTK related Operating System: windows xp PHP Version: 4.3.3 New Comment: Apologies Christian, I didn't notice this report was outstanding until today's bug summary came through. Looking into it. Previous Comments: ------------------------------------------------------------------------ [2003-11-01 00:25:50] cweiske at cweiske dot de Description: ------------ The "node_get_cell_style" of the GtkCTree widget does not work, it just returns NULL. The same problem should apply to the GtkCList. Reproduce code: --------------- <?php dl( "php_gtk." . ( strstr( PHP_OS, "WIN") ? "dll" : "so")); function delete_event() { return false; } function destroy() { Gtk::main_quit(); } $window = &new GtkWindow(); $window->set_default_size( 200, 200); $window->connect('destroy', 'destroy'); $window->connect('delete-event', 'delete_event'); $tree = &new GtkCTree( 1, 0, array( "Style")); $window->add( $tree); $window->show_all(); $node = $tree->insert_node( null, null, array( "Text"), 5, null, null, null, null, false, false); $nodestyle = $tree->node_get_cell_style( $node, 0); print_r( $nodestyle);//should be NOT null $col1 = &new GdkColor(0, 56000, 0); $nodestyle->base[GTK_STATE_NORMAL] = $col1; $tree->node_set_cell_style( $node, 0, $nodestyle); Gtk::main(); ?> Expected result: ---------------- the cell style of the first tree cell should have a nice color ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26067&edit=1

« previous php.gtk.dev (#609) next »