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.
I'm still working on the implementation of that
specification. Its gonna kill be before it is over but will
be worth it in the end:) I just have to go through more dry
reading and trying to figure out how to implement it with
out breaking my arcetecture. Very slow process when you are
trying to do it right.
BTW. This diary entry made possible by Mozilla!
July 25:
I got mozilla built and running. Right now plying with the
gtk+ wrapper. After 12+ hours switching between c and
c++ you start to see funny things in the code:) I don't
reccommend downloading, compiling, playing/learning,
accidentally mixing versions, building, breaking, building
again, pulling hair ot of head, creating gtk+ app utilizing
gecko for first time, and considering licensing issues
between GPL and MOZPL in > 12 hours unless you have
large quantities of caffeine saturated beverages available.
Anyway I look forward to tomorrow and getting some real
functionality into a basic browser app utilizing gecko
from todays daily build. Yea I know Galeon does it but I'd
like a gtk+ light browser that doesn't rely on
GNOME. I love GNOME but why integrate a light browser with
it. Its suppoused to be LIGHT. Maybe if I
work on the project enough I'll be able to open it up and
get an awsome standalone gtk+ gecko browser. I'll call it
SGGB (Standalone Gtk+ Gecko Browser). Now I'm getting
silly. Too much work and caffien and not enough
sleep. I'll get to bed now.
-----------------------------------------
-----------------------------------------
I'm building mozilla from the source toay. I'm interested
in getting just the gtk+ wrapper working for light
browsing.
Implimentation of that protocol is really
slow!
I hope to have it working in about 2 weeks, but I have a
feeling that 2 weeks is a little optimistic. Hope my
manager understands.
---------------------------
---------------------------
I hope nyma reads
this because I have an answer to the g++ name mangling
problem. I had the same problem a week ago. The function
that you are exporting needs to be delcared in an
extern "C" block. Here is an example...
extern "C" {
void MyNonMangledFunction ( int argc, char** argv );
}
This should stop C++ from mangaling the function names in
the extern "C" block.
hope this helps nyma.
So far I really like Advogato.org. The dicussions threads are awsome with qutie a bit of good technical content. I'll be visiting more and if I like it be making more diary entrys.
FOAF updates: Trust rankings are now exported, making the data available to other users and websites. An external FOAF URI has been added, allowing users to link to an additional FOAF file.
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!