Assign all g_signal_connect() and friends to gulong variables
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=87821
This commit is contained in:
		 Alberto Garcia
					Alberto Garcia
				
			
				
					committed by
					
						 Christian Dywan
						Christian Dywan
					
				
			
			
				
	
			
			
			 Christian Dywan
						Christian Dywan
					
				
			
						parent
						
							56d5b45443
						
					
				
				
					commit
					d6a73fd5b0
				
			| @ -214,28 +214,17 @@ gail_container_real_initialize (AtkObject *obj, | ||||
|                                 gpointer  data) | ||||
| { | ||||
|   GailContainer *container = GAIL_CONTAINER (obj); | ||||
|   guint handler_id; | ||||
|  | ||||
|   ATK_OBJECT_CLASS (gail_container_parent_class)->initialize (obj, data); | ||||
|  | ||||
|   container->children = gtk_container_get_children (GTK_CONTAINER (data)); | ||||
|  | ||||
|   /* | ||||
|    * We store the handler ids for these signals in case some objects | ||||
|    * need to remove these handlers. | ||||
|    */ | ||||
|   handler_id = g_signal_connect (data, | ||||
|                                  "add", | ||||
|                                  G_CALLBACK (gail_container_add_gtk), | ||||
|                                  obj); | ||||
|   g_object_set_data (G_OBJECT (obj), "gail-add-handler-id",  | ||||
|                      GUINT_TO_POINTER (handler_id)); | ||||
|   handler_id = g_signal_connect (data, | ||||
|                                  "remove", | ||||
|                                  G_CALLBACK (gail_container_remove_gtk), | ||||
|                                  obj); | ||||
|   g_object_set_data (G_OBJECT (obj), "gail-remove-handler-id",  | ||||
|                      GUINT_TO_POINTER (handler_id)); | ||||
|   g_signal_connect (data, "add", | ||||
|                     G_CALLBACK (gail_container_add_gtk), | ||||
|                     obj); | ||||
|   g_signal_connect (data, "remove", | ||||
|                     G_CALLBACK (gail_container_remove_gtk), | ||||
|                     obj); | ||||
|  | ||||
|   if (GTK_IS_TOOLBAR (data)) | ||||
|     obj->role = ATK_ROLE_TOOL_BAR; | ||||
|  | ||||
| @ -43,7 +43,7 @@ struct _GailLabel | ||||
|   gint           cursor_position; | ||||
|   gint           selection_bound; | ||||
|   gint           label_length; | ||||
|   guint          window_create_handler; | ||||
|   gulong         window_create_handler; | ||||
|   gboolean       has_top_level; | ||||
| }; | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user