Hi,
"R O N A L D D U C K" <[EMAIL PROTECTED]> writes:
> Eureka!!!, it worked well. But introduced some more doubts, if change
> the gtk-rc file it is getting applied to all the widgets, So What I did was
> instead of using GtkWidget, I used GtkButton, GtkProgress etc, This time it
> was not disturbing all the widgets whereas all my Buttons and progress is
> changing to the color and font specified in the gtk-rc file which I don't
> want. Tell me how to change properties like font, color etc to a particular
> widget, I actually wanted to do it through the code, but there is no example
> or function I could find. If you know how to do it please let me know.
hardcoding the look of any widgets is definitely bad style and shouldn't
be done. That's what themes and gtkrc files were designed for: let the
user override the look to make it fit her preferences and her needs.
What you can do is to distribute your application with a custom gtkrc
file that is installed along with it. Then let your application read that
custom gtkrc on startup by calling gtk_rc_parse() explicitely.
> And
> also What ever I do with the fonts settings, I could not change the title
> bar's font. Which I want ??..
as I said, the window decorations are nothing more than a hack in
GTK+. It's not configurable and doesn't respect any theme settings. It
shouldn't be too hard to change it but at the moment neither Alexander
Larsson nor me have the time or motivation to improve it.
> Regarding the theme background found in the snapshot, I tried using the
> same command line (--transparent-unfocused) after filling the /dev/fb with
> some picture, but is not working, it is redrawing the entire screen with the
> standard (blue) background.
There are a couple of parameters you can set in /etc/directfbrc or
~/.directfbrc that control how the background is handled:
bg-none
Disable background clear.
bg-color=AARRGGBB
Use background color (hex).
bg-image=<filename>
Use background image.
bg-tile=<filename>
Use tiled background image.
> I am also facing a peculiar problem, by default I am booting my system
> in level 3, and in this level gpm is not started. Even I checked wheather it
> is running, then When I invoke my application (build with directfb), the
> mouse is not at all working. Whereas, If I start the gpm service and stop it
> and then If I run the application the mouse is working, What is happening
> when I start and stop the gpm service, which is making the mouse to work.
what kind of mouse are you using?
> I also want some tips or help on doing the following things,
>
> * I would like to have the application background like the desktop
> background available Linux (KDE, GNOME etc..) (gradient, picture etc...),
> How to do this. Note: (I am using directfb only and not X or anything)
see above.
> * How to change the title bar colors
see above.
> * Can I use linux api inside the gtk source. Like opening a device handle
> etc...
sure, what should keep you from doing so?
> * How will I have a context menu (The one when you press the right mouse
> button)
that's a pure GTK+ question. Have you checked the example code /
tutorial that comes with the GTK+ (and GTK+-DirectFB) source?
Salut, Sven
--
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with
"unsubscribe directfb-users" as subject.