many buttons, one handler with gtkbuilder
- From: "Peter F. Patel-Schneider" <pfps verizon net>
- To: gtk-app-devel-list gnome org
- Subject: many buttons, one handler with gtkbuilder
- Date: Mon, 19 Jan 2009 18:25:29 -0500
Hi:
I have an application where I have many buttons (20-30) that all do the
almost "same" thing. I would like to have this done without having to
have different handlers for each button.
It seems to me that the easiest way to do this is to have "user-data" on
each button widget that differentiates between the different buttons.
However, I can't figure out how to do this easily, even when
post-processing the .ui file.
Does anyone know how to get gtkbuilder (and/or glade) to put such
differentiating data into button widgets? It seems like such an obvious
thing to do.
Peter F. Patel-Schneider
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]