Dear Sven and friends,
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. And
also What ever I do with the fonts settings, I could not change the title
bar's font. Which I want ??..
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.
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.
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)
* How to change the title bar colors
* Can I use linux api inside the gtk source. Like opening a device handle
etc...
* How will I have a context menu (The one when you press the right mouse
button)
Please help me clear my doubts.
Thank you and best regards
RD
-----Original Message-----
From: Sven Neumann [mailto:[EMAIL PROTECTED]]On Behalf Of Sven
Neumann
Sent: Tuesday, May 21, 2002 08:07 P
To: R O N A L D D U C K
Cc: Directfb-Users
Subject: [directfb-users] Re: How to have a theme for DirectFB
applications
Hi,
"R O N A L D D U C K" <[EMAIL PROTECTED]> writes:
> 1) I saw the screen shot
> (http://www.directfb.org/news/count/gtk-themed-alpha.png) in the website,
> but how will I do that for my applications.
for that screenshot we used a GTK+ pixbuf theme rendered by the
directfb-engine and started the application using the
--transparent-unfocused command-line option.
> 2) I used the GLADE-0.6.4 version to develop my screens, it is working
> pretty good. I am able to run my application using gtk+-directfb-2.0.2. My
> problem is, I am running at 1024X768 resolution, and the font are not
> attractive, meaning the fonts used for Menu, labels, etc are not looking
> attractive. My question is how will I change those fonts, because when I
saw
> the application examples provided with gtk+directfb, all are demonstrating
> changing of fonts in the widget level (e.g calendar), what I want is to
the
> change the font of the menu etc. Please help to me to resolve this
problem.
that's a basic GTK+ questions and could most probably be answerded by
looking at the GTK+ docs. I'll give a short answer anyway...
Fonts for GTK+-DirectFB as well as all backends that use PangoFT2 or
PangoXft are configured thru the file /etc/X11/XftConfig. This looks
X11-specific but it is not. We just share the configuration file.
Have a look at the Xft man-page to learn how more about the file
format. In XftConfig font aliases are assigned to real fonts. You
should at least have aliases for "sans", "serif" and "mono" so all
GTK+ apps can rely that these fonts are available.
You may also change the default font for GTK+-2.0 applications by
editing the file ~/.gtkrc-2.0. The following two lines chooses a
larger default font for all widgets:
style "font-style" { font_name = "sans 15" }
class "GtkWidget" style "font-style"
> 3) When I move my mouse away from my application, the application title
bar
> etc, is becoming like a inactive window, I don't like the effect, how will
> stop this effect.
I fear that's hardcoded into the window decoration code. Normally you'd
use a window manager that controls how focus is assigned to windows. The
window decorations drawn by GTK+ are a lame hack to work around the lack
of a window manager.
> 4) I want to create a main window which is fully maximized and which
cannot
> be moved or resized or sized using mouse or keyboard. How will I do that.
I
> was able to create a maximized window, but the problem is I am able to
move
> the window here and there using my mouse.
full-screen windows are considered bad user interface and for that
reason GTK+ doesn't provide a functionality to implement them. AFAIK
the GTK+ team is reconsidering this decision at the moment and I
expect this to be added in GTK+-2.2. I'm sure it can already be done
with some evil hacks.
Salut, Sven
--
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with
"unsubscribe directfb-users" as subject.
Vijay Ananth K
Manager - Software Development Group.
Indus Teqsite Pvt. Ltd.
No.7, Arya Gowder Road,
West Mambalam, Chennai,
Tamilnadu, India - 600033.
Ph: +91(44)4800908, +91(44)4848702, +91(44)4837460
Fax: +91(44)4848703.
email: [EMAIL PROTECTED]
[EMAIL PROTECTED]
BEGIN:VCARD
VERSION:2.1
N:;Vijay;Ananth;Mr
FN:Vijay Ananth
NICKNAME:VAK
ORG:Indus Teqsite Pvt. Ltd.;Software Development Group
TITLE:Manager
TEL;WORK;VOICE:91-44-4800908
TEL;WORK;FAX:91-44-4848703
ADR;WORK;ENCODING=QUOTED-PRINTABLE:;;#7, Arya Gowder Road,=0D=0AWest Mambalam;Chennai;Tamil Nadu;600033;India
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:#7, Arya Gowder Road,=0D=0AWest Mambalam=0D=0AChennai, Tamil Nadu 600033=0D=
=0AIndia
URL;WORK:http://www.industeqsite.com
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20010531T062151Z
END:VCARD