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
uttons ? but then
with an array I still have to have a separate callback ? please help out.
_
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Gautam Ravi
Sent: Friday, February 29, 2008 12:11 PM
To: gtk-list@gnome.org
Subject: Re: Button from an image (round Button)
e to create a separate callback function for each button ? and create
> the buttons separately? Or can I have an array of this buttons ? but then
> with an array I still have to have a separate callback ? please help out.
>
>
> ------
>
> *From:* [EMAIL
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]>: