button + style + color

From: Date: Thu, 29 Aug 2002 17:07:04 +0000
Subject: button + style + color
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-2381@lists.php.net to get a copy of this message
I'm trying to colorize some buttons (for a program that edit mud rooms, each color is a type of room) with: $lightgreen = &new GtkStyle(); $lightgreen_color = &new GdkColor('#54E763'); $lightgreen->fg[GTK_STATE_PRELIGHT] = $lightgreen_color; $lightgreen->base[GTK_STATE_NORMAL] = $lightgreen_color; and then on my button matrix I set it, for example: $botoes[1][1]->set_style($lightgreen); But the thing is that they just get gray no matter what color code I put in GdkColor... Someone knows what I'm doing wrong? -- Iuri Fiedoruk Santa Maria, RS, Brazil

« previous php.gtk.general (#2381) next »