1. 20 Jun, 2002 3 commits
    • Owen Taylor's avatar
      Add a singleton object that we can use to get notification when displays · 5830bf89
      Owen Taylor authored
      Thu Jun 20 16:49:00 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkdisplaymanager.[ch] gdk/gdk.[ch] gdk/gdkdisplay.c
              gdk/gdkinternals.h gdk/x11/gdkdisplay-x11.c
              gdk/win32/gdkdisplay-win32.c: Add a singleton object that
              we can use to get notification when displays
              appear / disappear or the default display changes.
      
              gdk_set_default_display() => gdk_display_manager_set_default_display()
              gdk_list_displays() => gdk_display_manager_list_displays().
              (#85696)
      
              * gdk/Makefile.am gdk/gdkmarshalers.list: Add marshaler
              generation.
      
              * gdk/gdkintl.h: Add this.
      
              * gtk/gtkmain.c: Add gtk_parse_args() that initializes
              GTK+ without opening a display.
      
              * gtk/gtkmain.c: Set things up so if a module
              exports gtk_module_init() and gtk_module_display_init(),
              then we treat it as multihead aware, otherwise,
              we only initialize it after the default display is set.
      5830bf89
    • Owen Taylor's avatar
      Patch from Erwann Chenede. · 4251a51e
      Owen Taylor authored
      Thu Jun 20 15:53:21 2002  Owen Taylor  <otaylor@redhat.com>
      
      	Patch from Erwann Chenede.
      
      	* gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkprivate-x11.h:
      	Introduce a yes/no/unknown GdkTristate, use it
      	in a couple of places. (#79962)
      
      	* gdk/x11/gdkwindow-x11.c gdk/x11/gdkdisplay-x11.h: Make
      	gravity_works per-display. (#79963)
      4251a51e
    • Owen Taylor's avatar
      Only change the double click time if the screen for the notification is · 49be7176
      Owen Taylor authored
      Thu Jun 20 14:51:30 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtksettings.c (gtk_settings_notify): Only
              change the double click time if the screen for
              the notification is screen 0 of the display.
              (#77978)
      
              * gdk/gdkevents.c (gdk_display_set_double_click_time): Fix
              half-done rename.
      49be7176
  2. 18 Jun, 2002 5 commits
    • Owen Taylor's avatar
      Set the display. · a0cd7079
      Owen Taylor authored
      Tue Jun 18 19:38:08 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkinput.c (_gdk_init_input_core): Set the
              display.
      
              * gdk/x11/gdkwindow-x11.c (_gdk_moveresize_handle_event): Fix
              missing check for mv_resize == NULL.
      a0cd7079
    • Owen Taylor's avatar
      Make the core pointer object per-display. (#85698) · 1abf7df6
      Owen Taylor authored
      Tue Jun 18 19:11:51 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkdisplay.[ch] gdk/gdkevents.c gdk/gdkinput.h
              gdk/gdkinternals.h gdk/win32/gdkevents-win32.c
              gdk/win32/gdkinput-win32.[ch] gdk/x11/gdkevents-x11.c
              gdk/x11/gdkinput{,-none,-x11}.c gdk/x11/gdkinputprivate.h:
              Make the core pointer object per-display. (#85698)
      1abf7df6
    • Owen Taylor's avatar
      Replace gdk_cursor_new_for_screen() with gdk_cursor_new_for_display(). · 621fb746
      Owen Taylor authored
      Tue Jun 18 14:41:48 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkcursor.[ch] gdk/x11/gdkcursor-x11.c
              gdk/x11/gdkprivate-x11.h gdk/win32/gdkcursor-win32.c: Replace
              gdk_cursor_new_for_screen() with gdk_cursor_new_for_display().
              (#85671)
      
              * gtk/gtkclist.c gtk/gtkcombo.c gtk/gtkcurve.c gtk/gtkdnd.c
              gtk/gtkentry.c gtk/gtkhandlebox.c gtk/gtkhsv.c gtk/gtklabel.c
              gtk/gtkpaned.c gtk/gtktext.c gtk/gtktextview.c
              gtk/gtktipsquery.c gtk/gtktreeviewcolumn.c:
              Adapt to above change.
      621fb746
    • Owen Taylor's avatar
      ue Jun 18 12:04:10 2002 Owen Taylor <otaylor@redhat.com> · 1371ded5
      Owen Taylor authored
              * gdk/gdk.c (gdk_init_check): Change handling
              of gdk_intialized(), so that gdk_parse_args(),
              gdk_init_check() sequence works.
      1371ded5
    • Owen Taylor's avatar
      Add a gboolean create argument, so we don't create the structure unless we · 3c041990
      Owen Taylor authored
      Tue Jun 18 11:46:33 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkwindow-x11.c (get_move_resize_data): Add
              a gboolean create argument, so we don't create the
              structure unless we actually emulate move-resize
              drags.
      3c041990
  3. 14 Jun, 2002 2 commits
  4. 13 Jun, 2002 2 commits
  5. 10 Jun, 2002 2 commits
    • Hans Breuer's avatar
      added gdkdisplay and gdkscreen · 6539a7d3
      Hans Breuer authored
      2002-06-10  Hans Breuer  <hans@breuer.org>
      
      	* gdk/makefile.msc : added gdkdisplay and gdkscreen
      
      	* gdk/win32/gdkdisplay-win32.c (gdk_open_display) :
      	need to gdk_screen_set_default_colormap(). Also un-static
      	some exported gdk_display_*() functions
      
      	* gdk/win32/gdkdrawable-win32.c : added "gdkscreen.h"
      
      	* gdk/win32/gdkscreen-win32.c : implement
      	gdk_screen_get_number, fixed typo, added rewuired headers
      
      	[merge from 2.0.x branch, should we really manifest
      	 GtkPlug as being an X11 only thing this way? See #58541]
      	* gtk/gtkwindow.c (gtk_window_show): Conditionalize
      	GTK_IS_PLUG() check on GDK_WINDOWING_X11. (Problem
      	reported by Sven Neumann)
      6539a7d3
    • Tor Lillqvist's avatar
      [ merge from stable ] · 663ec013
      Tor Lillqvist authored
      2002-06-10  Tor Lillqvist  <tml@iki.fi>
      
      	[ merge from stable ]
      
      	* gdk/win32/gdkmain-win32.c (gdk_screen_get_width_mm,
      	gdk_screen_get_height_mm): Use the "logical dpi" to calculate
      	(pseudo) physical sizes. Similar to the use of "logical dpi" in
      	Pango as suggested by Joaquin Cuenca Abela.
      
      	Two fixes by Florent Duguet:
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Correct
      	semantics for setting cursor to NULL (should use cursor of parent
      	window).
      
      	* gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get): Plug memory
      	leak.
      663ec013
  6. 06 Jun, 2002 2 commits
    • Matthias Clasen's avatar
      Set hardware_keycode for KeyRelease events. (#84305) · 91745dfe
      Matthias Clasen authored
      	* gdk/x11/gdkevents-x11.c (gdk_event_translate): Set
      	hardware_keycode for KeyRelease events.  (#84305)
      91745dfe
    • Owen Taylor's avatar
      Changes multihead reorganizing code for win32 support, mostly from a patch · aeaaae04
      Owen Taylor authored
      Wed Jun  5 18:34:47 2002  Owen Taylor  <otaylor@redhat.com>
      
      	Changes multihead reorganizing code for win32 support,
      	mostly from a patch by Hans Breuer.
      
      	* gdk/gdkcolor.c gdk/x11/gdkcolor-x11.c gdk/gdkcursor.c
      	  gdk/x11/gdkcursor-x11.c gdk/gdkevents.c gdk/x11/gdkevents-x11.c
      	  gdk/gdkfont.c gdk/x11/gdkfont-x11.c gdk/gdkkeys.c
      	  gdk/x11/gdkkeys-x11.c gdk/gdkimage.c gdk/x11/gdkimage-x11.c
      	  gdk/gdkscreen.c gdk/x11/gdkmain-x11.c
      	  gdk/gdkdisplay.c gdk/gdkevents-x11.c gdk/gdkpango.c
      	  gdk/x11/gdkpango-x11.c gdk/gdkselection.c
      	  gdk/x11/gdkselection-x11.c gdk/gdkwindow.c
      	  gdk/x11/gdkwindow-x11.c gdk/gdkvisual.c gdk/x11/gdkvisual-x11.c:
      	  Move port-independent singlehead wrapper functions into
      	  port-independent part of GDK. (#80009)
      
      	* gdk/win32/gdkcolor-win32.c gdk/win32/gdkcursor-win32.c
      	  gdk/win32/gdkevents-win32.c gdk/win32/gdkfont-win32.c
      	  gdk/win32/gdkimage-win32.c gdk/win32/gdkkeys-win32.c
      	  gdk/win32/gdkmain-win32.c gdk/win32/gdkproperty-win32.c
      	  gdk/win32/gdkselection-win32.c gdk/win32/gkwindow-win32.c:
      	Turn singlehead functions into "multihead" functions that ignore
      	their GdkDisplay or GdkScreen arguments.
      
      	* gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
      	gdk/win32/gdkinput-win32.c gdk/win32/gdkprivate-win32.h:
      	Misc multihead-compatibility changes.
      
      	* gtk/gtk.def gdk/gdk.def: Update for multihead functions.
      
      	* gdk/gdkcolormap.h gdk/gdkvisual.h gdk/x11/gdkcolormap-x11.c
      	gdk/x11/gdkvisual-x11.c: Remove the screen fields
      	from the public parts of the colormap/visual structures, add accessors
      	instead.
      
      	* gdk/gdkpixbuf-render.c gdk/gdkpixmap.c gdk/gdkrgb.c
      	  gdk/x11/gdkcolormap-x11.c gdk/x11/gdkimage-x11.c
      	  gdk/x11/gdkimage-x11.c gdk/x11/gdkprivate-x11.h gtk/gtkgc.c
      	  gtk/gtkstyle.c gtk/gtkwidget.c: Use accessors to get the screen
      	for colormaps, visuals; move the fields into the private
      	structures for the x11 backend.
      
      	* gdk/gdkdisplay.[ch] gdk/x11/gdkdisplay-x11.[ch]
      	  gdk/gdkscreen.[ch] gdk/x11/gdkscreen-x11.c:
      	Remove virtualization of screen and display functions.
      	(#79990, patch from Erwann Chenede)
      
      	* gdk/win32/gdkdisplay-x11.c gdk/win32/gdkscreen-win32.c
      	gdk/win32/{Makefile.am, makefile.msc, makefile.mingw}:
      	New files containing stub implementations of Display,
      	Screen functions.
      
      	* gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkdisplay-x11.[ch]
      	gdk/x11/gdkx.h: Clean up function exports and what
      	headers they are in. (#79954)
      
      	* gdk/x11/gdkx.h: Fix macro that was referring to a non-existant
      	screen->screen_num. (In the patch for #79972, Erwann Chenede)
      
      	* gdk/gdkscreen.c gdk/gdkwindow.c gdk/x11/gdkinternals.h
      	 gdk/x11/gdkscreen-x11.c: Fix gdk_screen_get_window_at_pointer()
      	to use window hooks. (#79972, patch partly from Erwann Chenede)
      
      	* gdk/x11/gdkdisplay-x11.c gdk/x11/gdkevents-x11.c: Fix
      	some warnings.
      aeaaae04
  7. 03 Jun, 2002 1 commit
  8. 28 May, 2002 1 commit
    • Matthias Clasen's avatar
      Markup fixes · 2aaf3c0e
      Matthias Clasen authored
      	* gtk/gtkwindow.c (gtk_window_move): Markup fixes
      
      	* gtk/gtkrc.c (gtk_rc_get_module_dir): Markup fixes.
      
      	* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_for_screen): Update docs
      	for Docbook XML.
      
      	* gtk/*, gdk/*, gdk-pixbuf/*: Create XML, not SGML.
      
      	* gtk/tmpl/*: Remove property documentation which comes from the
      	source now.
      
      	* gtk/building.sgml: Remove traces of gxi.
      2aaf3c0e
  9. 21 May, 2002 1 commit
  10. 20 May, 2002 1 commit
  11. 16 May, 2002 1 commit
  12. 14 May, 2002 5 commits
    • Owen Taylor's avatar
      Subsitute in @PERL@ instead of hardcoded /usr/bin/perl. (#78355, Gareth · 41261ba1
      Owen Taylor authored
      Tue May 14 19:53:15 2002  Owen Taylor  <otaylor@redhat.com>
      
              * demos/gtk-demo/geninclude.pl.in configure.in:
              Subsitute in @PERL@ instead of hardcoded
              /usr/bin/perl. (#78355, Gareth Pearce. Fix based
              on patch from Matthias Clasen)
      
              * gdk/Makefile.am: Patch from Daniel Elstner to use glib-mkenums
              instead of makeenums.pl.
      
              * gdk/{x11,linux-fb,win32}/Makefile.am: Hack to
              get gdkenumtypes.h built first.
      41261ba1
    • Owen Taylor's avatar
      Fix prepending at the start of the list. (#56349, Thomas Leonard.) · 390ad328
      Owen Taylor authored
      Tue May 14 18:13:10 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkdnd-x11.c (gdk_window_cache_filter): Fix
              prepending at the start of the list. (#56349,
              Thomas Leonard.)
      
              * gtk/gtksignal.h (gtk_signal_disconnect_by_func): Add
              explicit casts to GSignalMatchType for C++ compatibility.
              (#77601)
      390ad328
    • Owen Taylor's avatar
      Add a sanity g_return_if_fail() check for the depths for the window and · 1dd8a145
      Owen Taylor authored
      Tue May 14 15:40:49 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkwindow-{linux-fb,win32,x11.c} (gdk_window_set_back_pixmap):        Add a sanity g_return_if_fail() check for the depths
              for the window and pixmap. (#79191, Shivaram Upadhyayula)
      1dd8a145
    • Owen Taylor's avatar
      Try adding a #ifndef/#define for XkbKeySymEntry to make up for OSF broken · 44859f93
      Owen Taylor authored
      Tue May 14 15:09:33 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkkeys-x11.c: Try adding a #ifndef/#define
              for XkbKeySymEntry to make up for OSF broken
              XKB extension. (#77819, Gareth Pearce)
      
              * gtk/gtklayout.c: Clamp the upper values in response
              to ::size-allocate if necessary. (#81290, Christophe Saout)
      
              * gtk/gtkcombo.c (gtk_combo_entry_focus_out): Handle
              combo being destroyed before idle fires.
              (#81396, Timo Sirainen)
      44859f93
    • Owen Taylor's avatar
      Discard configure events from SubstructureNotify. (#81760, Rich Burridge) · 278582d6
      Owen Taylor authored
      Tue May 14 11:21:19 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkevents-x11.c (gdk_event_translate):
              Discard configure events from SubstructureNotify.
              (#81760, Rich Burridge)
      
              * gtk/gtkfontsel.c (cmp_families): Use g_utf8_strcoll(), not
              strcmp().
      
              * gtk/gtkmenuitem.c (gtk_menu_item_size_allocate): Clamp
      	width of child allocation to >= 1. (Fixes warnings from
              #77639, Martin Schulze)
      278582d6
  13. 07 May, 2002 2 commits
  14. 06 May, 2002 1 commit
  15. 03 May, 2002 1 commit
    • Erwann Chenede -'s avatar
      Rationalized the screen initialization process, changed the GdkDisplayX11 · 7fa24a2f
      Erwann Chenede - authored
      2002-05-03 Erwann Chenede - <erwann.chenede@sun.com>
      
        * gdk/x11/gdkvisual-x11.c:
        * gdk/x11/gdkwindow-x11.c:
        * gdk/x11/gdkdisplay-x11.[hc] (gdk_open_display) :
        Rationalized the screen initialization process,
        changed the GdkDisplayX11 screen list to an array.
      
        * gdk/x11/gdkscreen-x11.[hc] (_gdk_x11_screen_new) :
        Moved the xinerama init functions to gdkdisplay-x11.c to
        this file, create a single function to fully initialize
        a GdkScreen. #79981
      7fa24a2f
  16. 02 May, 2002 3 commits
    • Matthias Clasen's avatar
      Doc updates. · 7b168e71
      Matthias Clasen authored
      7b168e71
    • Erwann Chenede -'s avatar
      make gdk_screen_get_monitor_at_point cross platform instead of backend · 1258d179
      Erwann Chenede - authored
      2002-05-02 Erwann Chenede - <erwann.chenede@sun.com>
      
        * gdk/gdkscreen.c (gdk_screen_get_monitor_at_point):
        * gdk/gdkscreen.h :
        * gdk/x11/gdkscreen-x11.c :
        make gdk_screen_get_monitor_at_point cross platform instead
        of backend dependant. #80480
        * tests/testxinerama.c (main):
        changed the warning message.
      1258d179
    • Erwann Chenede -'s avatar
      removed unneeded ref. #79977 · 94076bc3
      Erwann Chenede - authored
      2002-05-02 Erwann Chenede - <erwann.chenede@sun.com>
      
        * gdk/x11/gdkscreen-x11.c (gdk_screen_x11_get_root_window):
        removed unneeded ref. #79977
        * gdk/x11/gdkscreen-x11.[hc] (gdk_screen_use_virtual_screen):
        * gdk/x11/gdkdisplay-x11.c (check_*_xinerama):
        removed gdk_screen_use_virtual_screen function and
        use_virtual_screen member variable from GdkScreenX11. #79957
      94076bc3
  17. 01 May, 2002 3 commits
    • Erwann Chenede -'s avatar
      removed that function as gdk_drawable_get_screen does the job. #79964 · f7ecb81e
      Erwann Chenede - authored
      2002-05-01 Erwann Chenede - <erwann.chenede@sun.com>
      
        * gdk/gdkpixmap.[hc] (gdk_pixmap_get_screen):
        * x11/gdkpixmap-x11.c:
        removed that function as gdk_drawable_get_screen
        does the job. #79964
      f7ecb81e
    • Erwann Chenede -'s avatar
      remove virtualization and made it cross platform. fix #79961 fixed · 2325caf9
      Erwann Chenede - authored
      2002-05-01 Erwann Chenede - <erwann.chenede@sun.com>
      
        * gdk/gdkscreen.[hc] (gdk_screen_x11_get_monitor_at_window):
          remove virtualization and made it cross platform. fix #79961
        * gdk/x11/gdkdisplay-x11.c (check_solaris_xinerama):
          fixed initialization bugs.
        * gdk/x11/gdkscreen-x11.[hc] (gdk_screen_get_monitor_geometry):
        * tests/testxinerama.c:
        * gtk/gtkwindow.c (gtk_window_compute_configure_request):
        * gtk/gtkmenu.c (gtk_menu_position):
          take a GdkRectangle argument instead of returning
          a GdkRectangle * and propagated the changes. fix #79974
      2325caf9
    • Anders Carlsson's avatar
      Use the same key when setting and getting NetWmSupportedAtoms. · ec72bb76
      Anders Carlsson authored
      2002-05-01  Anders Carlsson  <andersca@gnu.org>
      
      	* gdk/x11/gdkevents-x11.c
      	(gdk_x11_screen_supports_net_wm_hint): Use the same
      	key when setting and getting NetWmSupportedAtoms.
      ec72bb76
  18. 30 Apr, 2002 4 commits
    • Matthias Clasen's avatar
      Improve a warning. · e3d181b8
      Matthias Clasen authored
      	* gtk/gtkcontainer.c (gtk_container_class_install_child_property):
      	Improve a warning.
      
      	* gdk/linux-fb/gdkinput.c (gdk_device_get_axis): Remove a broken
      	and redundant doc comment.
      
      	* gtk/gtkprogress.c (gtk_progress_class_init):
      	* gtk/gtkprogressbar.c (gtk_progress_bar_class_init):
      	* gtk/gtktexttag.c (gtk_text_tag_class_init):
      	* gtk/gtknotebook.c (gtk_notebook_class_init): Better blurbs,
      	incorporating stuff from the doc templates.
      
      	* gtk/gtkplug.c (gtk_plug_construct): Fix docs.
      e3d181b8
    • Owen Taylor's avatar
      fix problem with finalizing non-initialized fully display when failing to · 75e53551
      Owen Taylor authored
      Tue Apr 30 14:23:43 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkdisplay-x11.c (gdk_open_display): fix
      	problem with finalizing non-initialized fully display
      	when failing to open display.
      
      	* tests/testxinerama.c: Xinerama test case from
      	multihead branch, with some cleanups. (Start even
      	if there is only one monitor, for one.)
      75e53551
    • Owen Taylor's avatar
      Update for multihead. · c117408d
      Owen Taylor authored
      Tue Apr 30 12:26:31 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk-sections.txt: Update for multihead.
      
              * multihead.sgml gtk-docs.sgml:	Add overview of
      	multihead from	multihead branch.
      
      	* tmpl/gdkdisplay.sgml	tmpl/gdkscreen.sgml: New
              sections from multihead	branch.
      c117408d
    • Erwann Chenede -'s avatar
      retionalized multihead code in _gdk_x11_copy_to_image. fixes #80256 and · 508daa7d
      Erwann Chenede - authored
      2002-04-30  Erwann Chenede - <erwann.chenede@sun.com>
      
              * gdk/x11/gdkimage-x11.c : retionalized multihead code
      	in _gdk_x11_copy_to_image. fixes #80256 and ungrab problems.
      508daa7d