Mercurial > dwindows
comparison gtk/dw.c @ 55:b6948eac375a
Sync with the latest dynamic windows, tree fixes, and other miscellaneous
stuff.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 21 Nov 2001 22:31:55 +0000 |
parents | c4e1139d9872 |
children | 1ed95c8ec2ff |
comparison
equal
deleted
inserted
replaced
54:c4e1139d9872 | 55:b6948eac375a |
---|---|
2957 | 2957 |
2958 lastselect = (GtkWidget *)gtk_object_get_data(GTK_OBJECT(handle), "lastselect"); | 2958 lastselect = (GtkWidget *)gtk_object_get_data(GTK_OBJECT(handle), "lastselect"); |
2959 if(lastselect == item) | 2959 if(lastselect == item) |
2960 gtk_object_set_data(GTK_OBJECT(handle), "lastselect", NULL); | 2960 gtk_object_set_data(GTK_OBJECT(handle), "lastselect", NULL); |
2961 | 2961 |
2962 gtk_tree_remove_item(GTK_TREE(tree), item); | |
2963 gtk_widget_destroy(item); | 2962 gtk_widget_destroy(item); |
2964 DW_MUTEX_UNLOCK; | 2963 DW_MUTEX_UNLOCK; |
2965 } | 2964 } |
2966 | 2965 |
2967 int _dw_container_setup(HWND handle, unsigned long *flags, char **titles, int count, int separator, int extra) | 2966 int _dw_container_setup(HWND handle, unsigned long *flags, char **titles, int count, int separator, int extra) |
5406 { | 5405 { |
5407 thisname = "focus-in-event"; | 5406 thisname = "focus-in-event"; |
5408 if(GTK_IS_COMBO(thiswindow)) | 5407 if(GTK_IS_COMBO(thiswindow)) |
5409 thiswindow = GTK_COMBO(thiswindow)->entry; | 5408 thiswindow = GTK_COMBO(thiswindow)->entry; |
5410 } | 5409 } |
5410 else if(strcmp(signame, "lose-focus") == 0) | |
5411 { | |
5412 thisname = "focus-out-event"; | |
5413 if(GTK_IS_COMBO(thiswindow)) | |
5414 thiswindow = GTK_COMBO(thiswindow)->entry; | |
5415 } | |
5411 else if(GTK_IS_TREE(thiswindow) && strcmp(signame, "tree-select") == 0) | 5416 else if(GTK_IS_TREE(thiswindow) && strcmp(signame, "tree-select") == 0) |
5412 { | 5417 { |
5413 if(thisfunc) | 5418 if(thisfunc) |
5414 { | 5419 { |
5415 gtk_object_set_data(GTK_OBJECT(thiswindow), "select-child-func", (gpointer)thisfunc); | 5420 gtk_object_set_data(GTK_OBJECT(thiswindow), "select-child-func", (gpointer)thisfunc); |