Commented out testthreads from the build process, since we won't have any
Tue Dec 15 01:38:53 1998 Owen Taylor <otaylor@redhat.com> * gtk/Makefile.am: Commented out testthreads from the build process, since we won't have any idea how to create a thread. * configure.in (LIBS): use glib-config ... gthread so we always build a thread-compatible library. * gtk/gtkaccellabel.c gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c gtk/gtkcontainer.c gtk/gtkentry.c gtk/gtklist.c gtk/gtkmenuitem.c gtk/gtknotebook.c gtk/gtkrange.c gtk/gtkselection.c gtk/gtkspinbutton.c gtk/gtktext.c gtk/gtktooltips.c gtk/gtkwidget.c: Add GTK_THREADS_ENTER/LEAVE pairs around timeouts and idles to account for the fact that they are no longer called within the GTK+ lock. * gtk/gtkprivate.h: Added definitions for locking the main GTK+ mutex. * gtk/gtkmain.c: Re-implement the main loop in terms of the GLib main loop. * gdk/gdk.h gdk/gdkthreads.c gdk/Makefile.am: Removed threading functionality, as it seems better to subsume GDK within the GTK+ lock than vice-versa. * gdk/gdkevents.c: New file, containing event handling bits from gdk.c. * gdk/gdkevents.c: Implement event source for GDK events. * configure.in gdk/gdkevents.c: Removed attempts to subtract base_id, which were already non-functional.
This commit is contained in:
		
							
								
								
									
										18
									
								
								gdk/gdk.h
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								gdk/gdk.h
									
									
									
									
									
								
							| @ -37,12 +37,16 @@ gchar* gdk_set_locale	   (void); | ||||
| gint gdk_events_pending	 (void); | ||||
| GdkEvent *gdk_event_get	 (void); | ||||
| GdkEvent *gdk_event_get_graphics_expose (GdkWindow *window); | ||||
| void gdk_event_put	 (GdkEvent     *event); | ||||
| void      gdk_event_put	 (GdkEvent     *event); | ||||
|  | ||||
| GdkEvent *gdk_event_copy     (GdkEvent *event); | ||||
| void	  gdk_event_free     (GdkEvent *event); | ||||
| guint32   gdk_event_get_time (GdkEvent *event); | ||||
|  | ||||
| void gdk_event_handler_set (GdkEventFunc   func, | ||||
| 			    gpointer       data, | ||||
| 			    GDestroyNotify notify); | ||||
|  | ||||
| void gdk_set_show_events (gint	show_events); | ||||
| void gdk_set_use_xshm	 (gint	use_xshm); | ||||
|  | ||||
| @ -933,18 +937,6 @@ GdkRegion*    gdk_regions_subtract	  (GdkRegion	  *source1, | ||||
| GdkRegion*    gdk_regions_xor		  (GdkRegion	  *source1, | ||||
| 					   GdkRegion	  *source2); | ||||
|  | ||||
| /* Threads | ||||
|  */ | ||||
|  | ||||
| gboolean      gdk_threads_init  (void); | ||||
| void          gdk_threads_enter (void); | ||||
| void          gdk_threads_leave (void); | ||||
|  | ||||
| /* If the mainloop thread is in its select, wake it up.  | ||||
|  * For GTK's idle handling  | ||||
|  */ | ||||
| void          gdk_threads_wake (void); | ||||
|  | ||||
| /* Miscellaneous */ | ||||
| void     gdk_event_send_clientmessage_toall (GdkEvent    *event); | ||||
| gboolean gdk_event_send_client_message (GdkEvent    *event, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Owen Taylor
					Owen Taylor