Re: Is it possible to share a callback function in order to detect which button is clicked?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 4, 2010 at 1:23 PM, Bokyun Na <bkna@xxxxxxxxx> wrote:
> I put a simple code to test which a button is clicked
>
> There are two buttons.
>
> I would know which button is clicked in the function
> “on_window_partition()”.
>

You can. The button object is sent as the first argument in the
callback. All you have to do is set the same callback for both button
clicks.


-- 
Siddhesh Poyarekar
http://siddhesh.in
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux