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.

Reply via email to