Mercurial > dwindows
comparison gtk/dw.c @ 422:3269c10bc243
Using GtkTreeSelection instead of GtkTreeView in the signal handler code
for GTK 2.x was incorrect. Fixed.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 15 May 2003 16:32:54 +0000 |
parents | 0cc801c0f2b6 |
children | c1c75e363a91 |
comparison
equal
deleted
inserted
replaced
421:49654a5adcf2 | 422:3269c10bc243 |
---|---|
7827 thiswindow = (GtkWidget *)gtk_tree_view_get_selection(GTK_TREE_VIEW(thiswindow)); | 7827 thiswindow = (GtkWidget *)gtk_tree_view_get_selection(GTK_TREE_VIEW(thiswindow)); |
7828 thisname = "changed"; | 7828 thisname = "changed"; |
7829 | 7829 |
7830 sigid = _set_signal_handler(treeview, window, sigfunc, data, thisfunc); | 7830 sigid = _set_signal_handler(treeview, window, sigfunc, data, thisfunc); |
7831 cid = g_signal_connect(G_OBJECT(thiswindow), thisname, (GCallback)thisfunc, (gpointer)sigid); | 7831 cid = g_signal_connect(G_OBJECT(thiswindow), thisname, (GCallback)thisfunc, (gpointer)sigid); |
7832 _set_signal_handler_id(thiswindow, sigid, cid); | 7832 _set_signal_handler_id(treeview, sigid, cid); |
7833 DW_MUTEX_UNLOCK; | 7833 DW_MUTEX_UNLOCK; |
7834 return; | 7834 return; |
7835 } | 7835 } |
7836 #else | 7836 #else |
7837 else if(GTK_IS_TREE(thiswindow) && strcmp(signame, DW_SIGNAL_ITEM_CONTEXT) == 0) | 7837 else if(GTK_IS_TREE(thiswindow) && strcmp(signame, DW_SIGNAL_ITEM_CONTEXT) == 0) |