mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-31 08:22:16 +01:00 
			
		
		
		
	renamed GMainDispatch.dispatching_sources to be more descriptive and
2008-05-02 13:24:13 Tim Janik <timj@imendio.com> * glib/gmain.c: renamed GMainDispatch.dispatching_sources to be more descriptive and distinguishable within the source file. svn path=/trunk/; revision=6874
This commit is contained in:
		
				
					committed by
					
						 Tim Janik
						Tim Janik
					
				
			
			
				
	
			
			
			
						parent
						
							27dba4c28b
						
					
				
				
					commit
					02e2b95393
				
			| @@ -1,3 +1,8 @@ | ||||
| 2008-05-02 13:24:13  Tim Janik  <timj@imendio.com> | ||||
|  | ||||
| 	* glib/gmain.c: renamed GMainDispatch.dispatching_sources to be more | ||||
| 	descriptive and distinguishable within the source file. | ||||
|  | ||||
| 2008-04-21  Tor Lillqvist  <tml@novell.com> | ||||
|  | ||||
| 	Bug 528752 - Win32 build and SSL not working | ||||
|   | ||||
							
								
								
									
										12
									
								
								glib/gmain.c
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								glib/gmain.c
									
									
									
									
									
								
							| @@ -108,7 +108,7 @@ typedef struct _GMainDispatch GMainDispatch; | ||||
| struct _GMainDispatch | ||||
| { | ||||
|   gint depth; | ||||
|   GSList *source; /* stack of current sources */ | ||||
|   GSList *dispatching_sources; /* stack of current sources */ | ||||
| }; | ||||
|  | ||||
| struct _GMainContext | ||||
| @@ -1829,7 +1829,7 @@ GSource * | ||||
| g_main_current_source (void) | ||||
| { | ||||
|   GMainDispatch *dispatch = get_dispatch (); | ||||
|   return dispatch->source ? dispatch->source->data : NULL; | ||||
|   return dispatch->dispatching_sources ? dispatch->dispatching_sources->data : NULL; | ||||
| } | ||||
|  | ||||
| /** | ||||
| @@ -2004,13 +2004,13 @@ g_main_dispatch (GMainContext *context) | ||||
| 	   * This is a performance hack - do not revert to g_slist_prepend()! | ||||
| 	   */ | ||||
| 	  current_source_link.data = source; | ||||
| 	  current_source_link.next = current->source; | ||||
| 	  current->source = ¤t_source_link; | ||||
| 	  current_source_link.next = current->dispatching_sources; | ||||
| 	  current->dispatching_sources = ¤t_source_link; | ||||
| 	  need_destroy = ! dispatch (source, | ||||
| 				     callback, | ||||
| 				     user_data); | ||||
| 	  g_assert (current->source == ¤t_source_link); | ||||
| 	  current->source = current_source_link.next; | ||||
| 	  g_assert (current->dispatching_sources == ¤t_source_link); | ||||
| 	  current->dispatching_sources = current_source_link.next; | ||||
| 	  current->depth--; | ||||
| 	   | ||||
| 	  if (cb_funcs) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user