HI
I complied your programme what you sent . But it did
not set any opacity , the opacity is always 255(which
is default).
I am using redhat 9.0
kernel 2.4.20-8.
Graphics card : Nvidia RIVA TNT2.
DirectFB 0.9.20
gtk+-directfb-2.0.9-2
If gdk_directfb_window_set_opacity() works for
gtk+-directfb-2.0.9-2 , please tell me what may be the
problem .
If not i think you might be using cvs version of
gdk-directfb . If you are using then can i have that
version of gdk-directfb or can you tell me what tag of
cvs i have to use from gdk-directfb cvs module .
If you can send me your gtk+-directfb then it will be
better .
Please help me i need it very badly .
With Regards
Manoj
--- Sven Neumann <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Manoj Kumar Bhatta <[EMAIL PROTECTED]> writes:
>
> > I am sending my c code it as atachment with
> Makefile
>
> I compiled your code, tried it and it works as
> expected. What exactly
> is your problem?
>
> As a reference, I am including a cleaned up and
> slightly changed
> version of your test code here:
>
>
> #include <gtk/gtk.h>
> #include <gdk/gdkdirectfb.h>
>
> static gboolean opacity_high = FALSE;
>
> static void
> opacity_toggle (GtkWidget *widget,
> gpointer data)
> {
> GtkWidget *window = GTK_WIDGET (data);
>
> opacity_high = !opacity_high;
>
> gdk_directfb_window_set_opacity (window->window,
> opacity_high ? 120 : 20);
> }
>
> int
> main (int argc, char *argv[])
> {
> GtkWidget *window;
> GtkWidget *button;
>
> gtk_init (&argc, &argv);
>
> window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
> gtk_window_set_title (GTK_WINDOW (window),
> "Opacity Window");
>
> gtk_container_set_border_width (GTK_CONTAINER
> (window), 100);
> button = gtk_button_new_with_mnemonic ("_Yes");
> gtk_container_add (GTK_CONTAINER (window),
> button);
> gtk_widget_show (button);
>
> gtk_widget_realize (window);
> opacity_toggle (window, window);
> gtk_widget_show (window);
>
> g_signal_connect (button, "clicked",
> G_CALLBACK (opacity_toggle),
> window);
>
> g_signal_connect (window, "destroy",
> G_CALLBACK (gtk_main_quit),
> NULL);
>
> gtk_main ();
>
> return 0;
> }
__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
--
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with
"unsubscribe directfb-dev" as subject.