#26067 [NEW]: node_get_cell_style doesn't work

From: Date: Sat, 01 Nov 2003 05:25:50 +0000
Subject: #26067 [NEW]: node_get_cell_style doesn't work
Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-554@lists.php.net to get a copy of this message
From: cweiske at cweiske dot de Operating system: windows xp PHP version: 4.3.3 PHP Bug Type: PHP-GTK related Bug description: node_get_cell_style doesn't work 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 bug report at http://bugs.php.net/?id=26067&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26067&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26067&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26067&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26067&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26067&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=26067&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26067&r=support Expected behavior: http://bugs.php.net/fix.php?id=26067&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26067&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26067&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26067&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26067&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26067&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26067&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26067&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26067&r=float

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