Re: GtkCellRendererToggle not responding to clicks?
- From: Muthiah Annamalai <dearestchum yahoo co in>
- To: Alem Dain <alem dain gmail com>, gtk-app-devel-list gnome org
- Cc:
- Subject: Re: GtkCellRendererToggle not responding to clicks?
- Date: Sun, 12 Jun 2005 01:44:39 -0700 (PDT)
Hello Alem!
--- Alem Dain <alem dain gmail com> wrote:
Hi all. It would seem that the little toggle button
in my GtkTreeView
doesn't respond to being clicked on, as in, it
doesn't change state,
and no callback is called... back.
Because you didnot set any!
I do
gtk_tree_view_insert_column_with_attributes(
GTK_TREE_VIEW(keyboards_view), -1, "Active",
gtk_cell_renderer_toggle_new(),
"active", ACTIVE_COLUMN,
NULL);
Try this:
GtkCellRenderer
*widget=gtk_cell_renderer_toggle_new();
g_signal_connect(G_OBJECT(widget),"toggled",
G_CALLBACK(yours_cb),model);
Its straight from gtk-demo.
Thanks
Muthu.
__________________________________
Discover Yahoo!
Have fun online with music videos, cool games, IM and more. Check it out!
http://discover.yahoo.com/online.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]