function redisplay() { $this->view->clear(); $i = 0; $clTransparentTest =& new GdkColor(0, 0, 0); gdk::gdk_color_parse('#FFAA33', $clTransparentTest); foreach ($this->model as $song) { $this->view->append(array($song['artist'], $song['title'])); $this->view->set_foreground($i++, $clTransparentTest); } }
function configure_event($widget, $event) { global $pixmap; $pixmap = new GdkPixmap($widget->window, $widget->allocation->width, $widget->allocation->height, -1); $clTransparentTest =& new GdkColor(0, 0, 0); gdk::gdk_color_parse('#FFAA33', $clTransparentTest); $style =& new GtkStyle(); $style->base[GTK_STATE_NORMAL] = $clTransparentTest; gdk::draw_rectangle($pixmap, $widget->style->white_gc, true, 0, 0, $widget->allocation->width, $widget->allocation->height); return true; }