10 Aug 2001 infodragon   » (Apprentice)

It has been a long time... Anyway I'm still working on the same realtime communication package for linux, in the past year it has really matured into a powerfull piece of software, too bad I can never release it....

But, I've started the userinterface of the project and it is being done in gtk+. I've developed 1 custome widget that I've got permission to release under the LGPL after the project is released. When that happens it will be nice to give back to a community that has given me so much.

My current head banging experience is changing the background color of gtk widgets, it is really beginning to suck, I've discoved a way to get label widgets background to change by this little snipet of code

	GtkRcStyle *rc_style = gtk_rc_style_new();

rc_style->color_flags[GTK_STATE_NORMAL] = (GtkRcFlags)(rc_style->color_flags[GTK_STATE_NORMAL] | GTK_RC_BG);

rc_style->bg[GTK_STATE_NORMAL].red = 0; rc_style->bg[GTK_STATE_NORMAL].green = 0; rc_style->bg[GTK_STATE_NORMAL].blue = 0xA0FF;

gtk_widget_modify_style (eventBox, rc_style); gtk_widget_modify_style (label1, rc_style);

But it only seems to work for labels, and I need entries, if anybody happens to read this and knows how to change gtk+ widget colors please I beg you, email me!!!

Well, I got to go.

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!