Skip to content
  • Michael Natterer's avatar
    Applied patch from maemo-gtk that addresses many issues wrt display · 8bdc0bf9
    Michael Natterer authored
    2005-11-10  Michael Natterer  <mitch@imendio.com>
    
    	Applied patch from maemo-gtk that addresses many issues wrt
    	display migration and display closing (bug #85715).
    
    	* gdk/gdkdisplay.c (gdk_display_dispose): don't just set the
    	default display to NULL when it's closed. Instead set the most
    	recently opened display as new default (if one exists).
    
    	* gdk/gdkpango.c (on_renderer_display_closed): fixed signature
    	of this callback.
    
    	* gdk/gdkscreen.c (gdk_screen_dispose): check if the GCs still
    	exist before unrefing them.
    
    	* gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): if the screen
    	is closed, allow destruction of the root window.
    
    	* gdk/x11/gdkdisplay-x11.c: moved some stuff from finalize() to
    	dispose(), free stuff that was leaked before.
    
    	* gdk/x11/gdkevents-x11.c (_gdk_x11_events_uninit_screen): check if
    	the xsettings_client still exists before destroying it.
    
    	* gdk/x11/gdkkeys-x11.c: added finalization and free the allocated...
    8bdc0bf9