Re: Is it possible to share a callback function in order to detect which button is clicked?
- From: Siddhesh Poyarekar <siddhesh poyarekar gmail com>
- To: Bokyun Na <bkna kpu ac kr>
- Cc: gtk-list gnome org
- Subject: Re: Is it possible to share a callback function in order to detect which button is clicked?
- Date: Thu, 4 Feb 2010 13:27:48 +0530
On Thu, Feb 4, 2010 at 1:23 PM, Bokyun Na <bkna kpu ac kr> 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]