Hello,
"At a first glance at two or three examples their code looked comparitively
easy to me." should also mean, that i am far from being an expert in these
things. The whole matter is also branded with "Theming". But a theme is more
a .gtkrc (please find out yourself, what that is) for a given
Hello,
you cannot - at least directly.
But perhaps one of the many engines for gtk has this
as an option. There are too few hints to these engines
in the documentation - i used gtk via pygtk (Python) for
two years in a midsize project never getting to any hint
to the engines.
Engines can provid
How i can to create a round button in GTK+ in c code?
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list
2008/2/29 Demetris Zavorotnichenko <[EMAIL PROTECTED]>:
>
> I want to create a keypad with 34 buttons
>
> So I create the buttons in a loop.
>
> And assign a callback function to the button
>
> But I have only 1 callback function and 34 buttons so how do I know which
> button has been pressed in th
om an image (round Button)
2008/2/29 Demetris Zavorotnichenko <[EMAIL PROTECTED]>:
>>>>>gtk_widget_shape_combine_mask(GTK_WIDGET(button),mask, ...);
doesn't work like this with errors
>>>>gdk_window_shape_combine_mask (button->window, mask, ...);
t; or
> gdk_window_shape_combine_mask (button->window, mask, ...);
>
>
>
>
>
> It compiles
>
> But when I run the application I get:
>
>
>
> gtk_widget_shape_combine_mask: assertion 'GTK_IS_WIDGET (widget)' failed
>
>
>
> What am I doing wron
tam Ravi
Sent: Friday, February 29, 2008 12:11 PM
To: gtk-list@gnome.org
Subject: Re: Button from an image (round Button)
2008/2/28 Demetris Zavorotnichenko <[EMAIL PROTECTED]>:
I have done it like this:
gtk_widget_shape_combine_mask(GTK_WIDGET(button->window),mask,0,0);
You are t
27; failed
>
>
>
> What am I doing wrong?
>
>
>
> How should the function look like ?
>
>
>
>
> --
>
> *From:* Gautam Ravi [mailto:[EMAIL PROTECTED]
> *Sent:* Thursday, February 28, 2008 3:19 PM
> *To:* Demetris Zavorotnichenk
ion look like ?
_
From: Gautam Ravi [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 28, 2008 3:19 PM
To: Demetris Zavorotnichenko
Cc: gtk-list@gnome.org
Subject: Re: Button from an image (round Button)
Hi,
GtkButton has its own GdkWindow. It can be accessed like GTK_WIDGET
(bu
Hi,
GtkButton has its own GdkWindow. It can be accessed like GTK_WIDGET
(button)->window.
You can do the "shape_combine_mask" for the GtkButton's window also. See
that "shape_combine_mask" is done when it is realized.
--
Regards
Gautam
2008/2/27 Demetris Zavorotnichenko <[EMAIL PROTECTED]>:
Hi everyone.
Forgive me if my question is going to sound silly. But I'm new to GTK so I
have to ask.
I want to create a button that would not be as a normal button, but with a
shape I have from a PNG image(with transparency)
I have tried to do "shape_combine_mask" , created the masks, b
would display only the round button icons.
Is it possible and if so, how?
Thank you,
Bokyun Na
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list
12 matches
Mail list logo