get logic right, #66249
Fri Dec 7 20:06:14 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeview.c (validate_visible_area): get logic right, #66249 * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): fix bug where removing a node ended up with a corrupt tree. Really really nasty bug. (_gtk_rbtree_debug_spew): new debug helper function (_fixup_validation): new inline function to clean up code readability a lot.
This commit is contained in:
		 Jonathan Blandford
					Jonathan Blandford
				
			
				
					committed by
					
						 Jonathan Blandford
						Jonathan Blandford
					
				
			
			
				
	
			
			
			 Jonathan Blandford
						Jonathan Blandford
					
				
			
						parent
						
							203d7df363
						
					
				
				
					commit
					82c5ace889
				
			| @ -60,11 +60,11 @@ futz_row (void) | ||||
|     { | ||||
|     case 0: | ||||
|       /* insert */ | ||||
|       gtk_list_store_insert_after (GTK_LIST_STORE (model), | ||||
| 				   &iter2, &iter); | ||||
|       gtk_list_store_set (GTK_LIST_STORE (model), &iter2, | ||||
| 			  TEXT_COLUMN, words[g_rand_int_range (rand, 0, NUM_WORDS)], | ||||
| 			  -1); | ||||
|             gtk_list_store_insert_after (GTK_LIST_STORE (model), | ||||
|             				   &iter2, &iter); | ||||
|             gtk_list_store_set (GTK_LIST_STORE (model), &iter2, | ||||
|             			  TEXT_COLUMN, words[g_rand_int_range (rand, 0, NUM_WORDS)], | ||||
|             			  -1); | ||||
|       break; | ||||
|     case 1: | ||||
|       /* delete */ | ||||
| @ -77,8 +77,8 @@ futz_row (void) | ||||
|       if (gtk_tree_model_iter_n_children (model, NULL) == 0) | ||||
| 	return; | ||||
|       gtk_list_store_set (GTK_LIST_STORE (model), &iter, | ||||
| 			  TEXT_COLUMN, words[g_rand_int_range (rand, 0, NUM_WORDS)], | ||||
| 			  -1); | ||||
|       			  TEXT_COLUMN, words[g_rand_int_range (rand, 0, NUM_WORDS)], | ||||
|       			  -1); | ||||
|       break; | ||||
|     } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user