erlgtk question

mats cronqvist mats.cronqvist@REDACTED
Wed Sep 29 14:12:29 CEST 2004


   gtk_widget_modify_fg is gtk 2.0 (erlgtk is based on gtk 1.2).
   i think you should use gtk:widget_modify_style and (erlgtk-specific)  
gtk:rc_style_put_fg

   mats

>
> Hello,
>
> I'm trying to port my ex11 widget library to erlgtk.
>
> Two questions:
>
> 1) any ideas on how to set the background color of a top level widget?
>
> 2) failing that how can I add a new command to erlgtk?
>
>    There is a function
>
>      gtk_widget_modify_fg (widget, GTK_STATE_NORMAL, &color);
>
>    Which should do what I want but it's not in the library
>
>    Cheers
>
>    /Joe





More information about the erlang-questions mailing list