1. 17 Nov, 2002 1 commit
    • Manish Singh's avatar
      add -DGDK_DISABLE_DEPRECATED · 89fd6ad3
      Manish Singh authored
      Sun Nov 17 13:45:08 2002  Manish Singh  <yosh@gimp.org>
      
              * gdk/Makefile.am: add -DGDK_DISABLE_DEPRECATED
      
              * gdk/gdk.c (gdk_exit): remove obsolete comment
      
              * gdk/gdk.h: declare gdk_input_add_full if GTK_COMPILATION for
              gtk_input_add_full
      
              * gdk/gdkcolor.c (gdk_color_white, gdk_color_black): use
              gdk_colormap_alloc_color instead of gdk_color_alloc
      
              * gdk/gdkcolor.h: declare gdk_colormap_change if GDK_COMPILATION for
              gdk_colors_store. Also, gdk_colors_{alloc,free} for
              gdk_rgb_try_colormap
      
              * gdk/gdkdrawable.h: declare gdk_draw_string if GTK_COMPILATION for
              gtk_default_draw_string. Also, gdk_draw_text and gdk_draw_text_wc
              if GDK_COMPILATION for the respective gdk_window_ and gdk_pixmap_
              functions.
      
              * gdk/gdkfont.c: #undef GDK_DISABLE_DEPRECATED, completely compat
              code here
      
              * gdk/gdkfont.h: allow the GdkFont structure and a few gdk_font_
              functions for compat code in GDK_COMPILATION and GTK_COMPILATION.
      
              * gdk/gdkrgb.c (gdk_rgb_cmap_fail, gdk_rgb_try_colormap): use
              gdk_colormap_free_colors instead of gdk_colors_free.
      
              * gdk/gdkrgb.c (gdk_draw_rgb_image_core): no need to set fg/bg
              for own_gc, unused.
      
              * gdk/gdkwindow.h: declare gdk_window_get_deskrelative_origin if
              GTK_COMPILATION for gtk_handle_box_button_changed.
      
              * gdk/x11/Makefile.am: add -DGDK_DISABLE_DEPRECATED, renmae
              -DINSIDE_GDK_X11 to -DGDK_COMPILATION
      
              * gdk/x11/gdkcolor-x11.c: remove duplicate doc string for
              gdk_colormap_alloc_colors.
      
              * gdk/x11/gdkfont-x11.c:  #undef GDK_DISABLE_DEPRECATED, completely
              compat code here
      
              * gdk/x11/gdkx.h: use GDK_COMPILATION instead of INSIDE_GDK_X11,
              allow a few gdk_x11_font_ functions if GDK_COMPILATION for compat
              code
      
              * gtk/Makefile.am: add -DGDK_DISABLE_DEPRECATED
      
              * gtk/gtkclist.c
              * gtk/gtkctree.c
              * gtk/gtkpixmap.c
              * gtk/gtkpreview.c
              * gtk/gtktext.c: #undef GDK_DISABLE_DEPRECATED, deprecated widget
      
              * gtk/gtkhandlebox.c (gtk_handle_box_motion): use
              gdk_window_set_geometry_hints instead of gdk_window_set_hints.
      
              * gtk/gtkmain.c (gtk_exit): call exit directly
      
              * gtktipsquery.c (gtk_tips_query_real_start_query)
              * gtk/gtktreeitem.c (gtk_tree_item_add_pixmaps): remove some
              deprecated GDK usage.
      89fd6ad3
  2. 16 Nov, 2002 2 commits
    • Tor Lillqvist's avatar
      Add missing entries, needed by gtk. · 36a56b08
      Tor Lillqvist authored
      2002-11-16  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/gdk.def: Add missing entries, needed by gtk.
      
      	* gdk/win32/gdkcolor-win32.c (gdk_screen_get_system_colormap):
      	Remove g_return_val_if_fail call. This function is called from
      	gdk_display_open() with the _gdk_screen it just created, but when
      	gdk_screen_get_default() still returns NULL.
      
      	* gdk/win32/gdkdisplay-win32.c
      	* gdk/win32/gdkscreen-win32.c: Make more like the linux-fb
      	versions. For instance, don't call
      	gdk_display_manager_set_default_display() from gdk_display_open().
      
      	* gdk/win32/gdkglobals-win32.c: Move _gdk_display, _gdk_screen and
      	_gdk_parent_root here.
      
      	* gdk/win32/gdkinput.c (gdk_display_list_devices): New function.
      
      	* gdk/win32/gdkmain-win32.c (gdk_get_display): New function.
      
      	* gdk/win32/gdkvisual-win32.c (gdk_screen_get_system_visual):
      	Don't require that the screen parameter is non-NULL. It can be,
      	and the linux-fb version doesn't check either.
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint,
      	gdk_window_set_skip_pager_hint, gdk_window_fullscreen,
      	gdk_window_unfullscreen): Implement as no-ops.
      36a56b08
    • Tor Lillqvist's avatar
      Reflect recent renamings and removals of functions. · fda3e296
      Tor Lillqvist authored
      2002-11-15  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/gdk.def: Reflect recent renamings and removals of functions.
      
      	Merge from stable:
      
      	Start implementing all fill styles (i.e. tiled, stippled, and
      	opaque stippled in addition to the plain solid style) in the Win32
      	backend in an elegant and generic way. For now only did the
      	draw_rectangle() and draw_glyphs() methods. The rest will
      	follow. Previously some of the drawing methods implemented opaque
      	stippling, but not tiles or non-opaque stippling.
      
      	Seems to work fine, now the check marks show up in check buttons,
      	the stippled background and stippled text in gtk-demo's Text
      	Widget look as they should, and GtkText's line wrap arrow shows
      	correctly instead of an ugly rectangle. [This refers to the stable
      	branch, haven't actually checked HEAD.]
      
      	The implementation does do a lot of pixmap handling and blitting
      	back and forth, especially on Win9x. But performance is hopefully
      	not an issue. I don't think many applications do a lot of tiled or
      	stippled drawing.
      
      	* gdk/win32/gdkprivate-win32.h: Define a new macro, GDI_CALL, that
      	calls a GDI function and prints a warning if it failed. Also
      	API_CALL for non-GDI calls. Cleans all the the if (!BlaBla())
      	WIN32_GDI_FAILED ("BlaBla") snippets, these can now be written
      	GDI_CALL (BlaBla, ()). Declare new functions.
      
      	* gdk/win32/gdkdrawable-win32.c: Use GDI_CALL macro in lots of places.
      
      	(generic_draw): New function that handles all the blitting
      	necessary to implement tiles and stipples. A function that
      	actually draws stuff is passed as a parameter to
      	generic_draw(). If the fill style is solid, it is called
      	directly, to draw on the destination drawable. Otherwise it is
      	called to draw on a temporary mask bitmap, which then is used in
      	blitting operations. The tiles and/or stipples are rendered into
      	another temporary pixmap. If MaskBlt() is available (on NT/2k/XP),
      	it is used, otherwise a sequence of BitBlt() is used to do the
      	final composition onto the destination drawable.
      
      	(draw_tiles_lowlevel, draw_tiles): Some renaming and code
      	reorg. Use BitBlt() to blit each tile, not gdk_draw_drawable().
      
      	(rop2_to_rop3): New function, does binary->ternary rop mapping.
      
      	(blit_from_pixmap, blit_inside_window, blit_from_window): Use
      	rop2_to_rop3(). Previously used SRCCOPY always...
      
      	(draw_rectangle, gdk_win32_draw_rectangle, draw_glyphs,
      	gdk_win32_draw_glyphs): Split functionality into two functions,
      	with generic_draw() doing its magic inbetween.
      
      	* gdk/win32/gdkevents-win32.c: Remove the TrackMouseEvent code, it
      	was ifdeffed out and wouldn't have done anything even if
      	enabled. Remove the GDK_EVENT_FUNC_FROM_WINDOW_PROC code, didn't
      	have any effect any more anyway after all the changes GTK+ has
      	gone through in the last years. Remove some #if 0 code.
      
      	* gdk/win32/gdkgc-win32.c (gdk_gc_copy): Set the copy's hdc field
      	to NULL in case a GC is copied while it has a Windows DC active.
      
      	* gdk/win32/gdkprivate-win32.h
      	* gdk/win32/gdkglobals-win32.c: Remove gdk_event_func_from_window_proc.
      
      	* gdk/win32/gdkmain-win32.c: Remove -event-func-from-window-proc
      	option. If there is a PRETEND_WIN9X envvar, set windows_version as
      	if on Win9x.
      
      	* gdk/win32/gdkpixmap-win32.c (_gdk_win32_pixmap_new,
      	gdk_pixmap_new): Combine these two, _gdk_win32_pixmap_new() wasn't
      	used or exported. Make a bit more like the X11 version. Hopefully
      	I didn't break the fragile palettized display ("pseudocolor")
      	code.
      
      	* gdk/win32/gdkgc-win32.c: Various debugging output improvements.
      
      	(predraw_set_foreground): Check whether
      	tile/stipple origins are valid when calling SetBrushOrgEx().
      
      	(gdk_win32_hdc_get): Ifdef out code that tries to handle the
      	stipple by converting it into a region, and combining the clip
      	region with that. A stipple shouldn't work like that, it should
      	replicate in x and y directions. Stipples are now handled by
      	generic_draw() in gdkdrawable-win32.c.
      
      	* gdk/win32/gdkmain-win32.c: (gdk_win32_gcvalues_mask_to_string,
      	gdk_win32_rop2_to_string): New debugging functions.
      
      	(gdk_win32_print_dc): Print also DC's rop2 and text color.
      fda3e296
  3. 14 Nov, 2002 2 commits
  4. 13 Nov, 2002 1 commit
  5. 12 Nov, 2002 1 commit
    • Tor Lillqvist's avatar
      gdk/win32/gdkprivate-win32.h Rename all global variables and functions to · e96a41be
      Tor Lillqvist authored
      2002-11-12  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkprivate-win32.h
      	* gdk/win32/*.c: Rename all global variables and functions to
      	start with underscore.
      
      	Merge from stable:
      
      	More work on the Win32 backend. The cause of some scrolling
      	problems was that SetWindowPos() and ScrollWindowEx() don't blit
      	those parts of the window they think are invalid. As we didn't
      	keep Windows's update region in synch with GDK's, Windows thought
      	those areas that in fact had been updated were invalid. Calling
      	ValidateRgn() in _gdk_windowing_window_queue_antiexpose() seems to
      	be an elegant and efficient solution, removing from Windows's
      	update region those areas we are about to repaint proactively.
      
      	In some cases garbage leftover values were used for the clip
      	origin in GdkGCWin32. This showed up as odd blank areas around the
      	pixmaps included in the Text Widget in gtk-demo.
      
      	Having the clip region either as a GdkRegion or a HRGN in
      	GdkGCWin32 was unnecessary, it's better to just use a HRGN.
      
      	The translation and antiexpose queue handling in
      	gdkgeometry-win32.c seems unnecessary (and not implementable in
      	the same way as on X11 anyway, no serial numbers) on Windows,
      	ifdeffed out.
      
      	Don't (try to) do guffaw scrolling as there is no static window
      	gravity on Windows. Guffaw scrolling would be unnecessary anyway,
      	as there is the ScrollWindow() API. This improves the behaviour of
      	the Text Widget demo in gtk-demo a lot. But I have no idea how the
      	lack of static win gravity should be handled in other places where
      	the X11 code uses it. Especially _gdk_window_move_resize_child().
      
      	There is still some problem in expose handling. By moving an
      	obscuring window back and forth over testgtk's main window, for
      	instance, every now and then you typically get narrow vertical or
      	horizontal strips of pixels that haven't been properly redrawn
      	after being exposed. A fencepost error somewhere?
      
      	Otherwise, all of testgtk and gtk-demo except "big windows" now
      	seem to work pretty well.
      
      	Bug #79720 should be fixed now.
      
      	* gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string,
      	gdk_win32_print_paletteentries, gdk_win32_print_system_palette,
      	gdk_win32_print_hpalette)
      	* gdk/win32/gdkdrawable-win32.c (gdk_win32_drawable_description)
      	* gdk/win32/gdkevents-win32.c (gdk_win32_message_name):
      	Move all debugging helper functions to gdkmain-win32.c.
      
      	* gdk/win32/gdkdrawable-win32.c (_gdk_win32_draw_tiles):
      	Rewrite. Make static. Must take tile origin parameters, too.
      
      	(gdk_win32_draw_rectangle): Pass the tile/stipple origin to
      	_gdk_win32_draw_tiles(). Remove #if 0 code.
      
      	(blit_inside_window): Don't call ScrollDC(), that didn't work at
      	all like I thought. A simple call to BitBlt() is enough.
      
      	* gdk/win32/gdkevents-win32.c (gdk_event_translate) Remove unused
      	latin_locale_loaded variable.
      
      	(_gdk_win32_get_next_tick): New function. Used to make sure
      	timestamps of events are always increasing, both in events
      	generated from the window procedure and in events gotten via
      	PeekMessage(). Not sure whether this is actually useful, but it
      	seemed as a good idea.
      
      	(real_window_procedure): Don't use a local GdkEventPrivate
      	variable. Don't attempt any compression of configure or expose
      	events here, handled elsewhere.
      
      	(erase_background): Accumulate window offsets when traversing up
      	the parent chain for GDK_PARENT_RELATIVE_BG, in order to get
      	correct alignment of background pixmaps. Don't fill with
      	BLACK_BRUSH if GDK_NO_BG.
      
      	(gdk_event_get_graphics_expose): A bit more verbose debugging output.
      
      	(gdk_event_translate): Use _gdk_win32_get_next_tick(). In the
      	WM_PAINT handler, don't check for empty update rect. When we get a
      	WM_PAINT, the update region isn't empty. And if it for some
      	strange reason is, that will be handled later anyway. Call
      	GetUpdateRgn() before calling BeginPaint() and EndPaint() (which
      	empty the update region).
      
      	* gdk/win32/gdkdnd-win32.c
      	* gdk/win32/gdkinput-win32.c:
      	Use _gdk_win32_get_next_tick().
      
      	* gdk/win32/gdkfont-win32.c: Use %p to print HFONTs.
      
      	(gdk_text_size): Remove, unused.
      
      	* gdk/win32/gdkgc-win32.c:  Set clip origins to zero
      	when appropriate.
      
      	(gdk_gc_copy): Increase refcount on colormap if present.
      
      	(gdk_win32_hdc_get): Handle just hcliprgn. If we have a stipple,
      	combine it with clip region after selecting into the DC.
      
      	(_gdk_win32_bitmap_to_hrgn): Rename from _gdk_win32_bitmap_to_region.
      
      	(_gdk_win3_gdkregion_to_hrgn): New function, code snippet
      	extracted from gdk_win32_hdc_get().
      
      	* gdk/win32/gdkgeometry-win32.c: Ifdef out the translate_queue
      	handling.
      
      	(gdk_window_copy_area_scroll): Increase clipRect to avoid
      	ScrollWindowEx() not scrolling pixels it thinks are invalid.
      	Scroll also children with the ScrollWindowEx() call. No need to
      	call gdk_window_move() on the children.
      
      	(gdk_window_scroll): Don't do guffaw scrolling.
      
      	(gdk_window_compute_position): Fix typo, used win32_y where x was
      	intended.
      
      	(gdk_window_premove, gdk_window_postmove,
      	gdk_window_clip_changed): Add debugging output.
      
      	(_gdk_windowing_window_queue_antiexpose): Just call ValidateRgn()
      	on the region.
      
      	(_gdk_window_process_expose): No use for the serial number
      	parameter now. Instead of a rectangle, take a region parameter, as
      	Windows gives us one in WM_PAINT.
      
      	* gdk/win32/gdkmain-win32.c (_gdk_win32_lbstyle_to_string,
      	_gdk_win32_pstype_to_string, _gdk_win32_psstyle_to_string,
      	_gdk_win32_psendcap_to_string, _gdk_win32_psjoin_to_string,
      	_gdk_win32_rect_to_string, _gdk_win32_gdkrectangle_to_string,
      	_gdk_win32_gdkregion_to_string): New debugging functions.
      
      	(static_printf): Helper function for the above. sprintfs into a
      	static circular buffer, return value should be used "soon".
      
      	* gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Plug memory
      	leak, free list after use.
      
      	(gdk_window_gravity_works): Remove, we know that there is no such
      	thing on Windows.
      
      	(gdk_window_set_static_bit_gravity,
      	gdk_window_set_static_win_gravity): Ditto, remove, they didn't do
      	anything anyway.
      
      	(_gdk_windowing_window_init, gdk_window_foreign_new): Call
      	_gdk_window_init_position() like in the X11 backend.
      
      	(gdk_window_reparent): Don't call the now nonexistent
      	gdk_window_set_static_win_gravity(). No idea what should be done
      	instead.
      
      	(gdk_window_get_geometry): The returned x and y should be relative
      	to parent. Used to be always zero..
      
      	(gdk_window_set_static_gravities): Return FALSE if trying to set
      	static gravity.
      
      	* gdk/win32/gdkprivate-win32.h: Drop the clip_region field from
      	GdkGCWin32. Only use the HRGN hcliprgn. Declare new
      	functions.
      
      	* gdk/win32/*.c: Use new debugging functions.
      
      	* gdk/win32/rc/gdk.rc.in: Update copyright year.
      e96a41be
  6. 10 Nov, 2002 1 commit
  7. 08 Nov, 2002 5 commits
    • Matthias Clasen's avatar
      Reformulate doc comments to work around gtk-doc limitations. · 908bee9b
      Matthias Clasen authored
      	* gdk/x11/gdkfont-x11.c (gdk_text_extents_wc):
      	(gdk_text_extents):
      	* gdk/gdkfont.c (gdk_string_extents): Reformulate doc comments to
      	work around gtk-doc limitations.
      908bee9b
    • Owen Taylor's avatar
      Add in a awful hack to force gdkenumtypes.h to be updated before building · 85c6465e
      Owen Taylor authored
      Fri Nov  8 18:04:16 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/{linux-fb,win32,11}/Makefile.am: Add in a awful
              hack to force gdkenumtypes.h to be updated before
              building the subdir. (#86587)
      85c6465e
    • Owen Taylor's avatar
      Use g_get_application_name() instead of g_get_prgname() as the default · b179b5eb
      Owen Taylor authored
      Fri Nov  8 17:08:54 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use
              g_get_application_name() instead of g_get_prgname()
              as the default window title when set.
      
              * gdk/x11/gdkwindow-x11.c gdk/x11/gdkdisplay-x11.[ch]:x
              Set g_get_application_name() as the title for the
              leader window the first time we create a window
              pointing to it.
      
              * tests/testgtk.c (main): Call g_set_application_name();
      
              * configure.in (GDK_PIXBUF_VERSION): Require GLib-2.1.3
      b179b5eb
    • Soeren Sandmann's avatar
      docs/reference/gdk/tmpl/dnd.sgml docs/reference/gdk/tmpl/drawing.sgml · b1165617
      Soeren Sandmann authored
      Fri Nov  8 20:14:52 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* docs/reference/gdk/tmpl/dnd.sgml
      	docs/reference/gdk/tmpl/drawing.sgml
      	docs/reference/gdk/tmpl/gdk-unused.sgml
      	docs/reference/gdk/tmpl/gdkdisplay.sgml
      	docs/reference/gdk/tmpl/general.sgml
      	docs/reference/gdk/tmpl/input_devices.sgml
      	docs/reference/gdk/tmpl/selections.sgml
      	docs/reference/gtk/tmpl/gtkcellrenderer.sgml
      	docs/reference/gtk/tmpl/gtkcurve.sgml
      	docs/reference/gtk/tmpl/gtkdnd.sgml
      	docs/reference/gtk/tmpl/gtkitemfactory.sgml
      	docs/reference/gtk/tmpl/gtkmenu.sgml
      	docs/reference/gtk/tmpl/gtkoldeditable.sgml
      	docs/reference/gtk/tmpl/gtkoptionmenu.sgml
      	docs/reference/gtk/tmpl/gtkpreview.sgml
      	docs/reference/gtk/tmpl/gtkselection.sgml
      	docs/reference/gtk/tmpl/gtksocket.sgml
      	docs/reference/gtk/tmpl/gtkstyle.sgml
      	docs/reference/gtk/tmpl/gtktextbuffer.sgml
      	docs/reference/gtk/tmpl/gtktreemodel.sgml
      	docs/reference/gtk/tmpl/gtkwidget.sgml gdk/gdk.h gdk/gdkdisplay.c
      	gdk/gdkdisplay.h gdk/gdkdnd.h gdk/gdkdraw.c gdk/gdkdrawable.h
      	gdk/gdkinput.h gdk/gdkselection.h gdk/x11/gdkdisplay-x11.c
      	gdk/x11/gdkdnd-x11.c gdk/x11/gdkselection-x11.c gtk/gtkcurve.h
      	gtk/gtkdnd.h gtk/gtkitemfactory.c gtk/gtkitemfactory.h
      	gtk/gtkmenu.h gtk/gtkoldeditable.c gtk/gtkoldeditable.h
      	gtk/gtkoptionmenu.h gtk/gtkplug.c gtk/gtkplug.h gtk/gtkpreview.h
      	gtk/gtkrange.h gtk/gtkselection.c gtk/gtkselection.h
      	gtk/gtksocket.c gtk/gtksocket.h gtk/gtkstyle.c gtk/gtkstyle.h
      	gtk/gtktextlayout.c gtk/gtktextlayout.h gtk/gtktreemodel.c
      	gtk/gtktreemodel.h gtk/gtkwidget.h
      
      	Trivial s/foo/foo_/ fixes to make gtk.h includable with -Wshadow
      	without warnings. (#91680)
      b1165617
    • Eric Warmenhoven's avatar
      fix compilation · 0202f672
      Eric Warmenhoven authored
      Thu Nov  7 16:13:41 2002  Eric Warmenhoven <eric@warmenhoven.org>
      
      	* gdk/linux-fb/gdkscreen-fb.c: fix compilation
      
      	* gdk/linux-fb/gdkmain-fb.c: prevent segfaults on shutdown
      0202f672
  8. 07 Nov, 2002 3 commits
  9. 02 Nov, 2002 1 commit
    • Owen Taylor's avatar
      Add startup notification hooks - mostly based on patch by Havoc Pennington · accc3a33
      Owen Taylor authored
      Sat Nov  2 00:22:33 2002  Owen Taylor  <otaylor@redhat.com>
      
              Add startup notification hooks - mostly based on patch
              by Havoc Pennington in #96772.
      
              * gdk/gdk.h gdk/x11/gdkdisplay-x11.c
              gdk/{win32,linux-fb}/gdkmain-*.c: (gdk_notify_startup_complete):
              new function that indicates an application has finished starting
              up.
      
              * gdk/x11/gdkmain-x11.c gdk/x11/gdkdisplay-x11.c
              (_gdk_windowing_set_default_display): store value of
              DESKTOP_STARTUP_ID on the default screen, and clear it from the
              environment.
      
              * gdk/x11/gdkdisplay-x11.c:
              Set _NET_STARTUP_ID hint on display's group leader window.
      
              * gtk/gtkwindow.c (gtk_window_set_auto_startup_notification):
              function to toggle whether we automatically broadcast that we've
              started up, after mapping the first toplevel window.
              (gtk_window_map): call gdk_screen_notify_startup_complete() by
              default, unless enabled by above.
      
              * gtk/gtkmain.c gtk/gtkcombo.c gtk/gtktoolbar.c:
              Couple of warning fixes.
      accc3a33
  10. 01 Nov, 2002 1 commit
  11. 31 Oct, 2002 1 commit
    • Owen Taylor's avatar
      Add a --screen option for setting the default screen. (Based on a patch · 550bf181
      Owen Taylor authored
      Thu Oct 31 12:40:39 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdk.[ch] gdk/gdkglobals.c gdk/gdkinternals.h
              gdk/{x11,win32,linux-fb}/gdkscreen-{x11,win32,linux-fb}.c:
              Add a --screen option for setting the default screen.
              (Based on a patch from Balamurali Viswanathan, #81145)
      
              * gdk/gdk.c gdkdisplay.h gtk/gtkmain.c: Add
              gdk_display_open_default_libgtk_only(), so gtk_init_check()
              and gdk_init_check() can share the same behavior w.r.t.
              --screen.
      
              * gdk/gdk.[ch]: Make gdk_get_display_arg_name() G_CONST_RETURN.
      
              * gdk/x11/gdkselection-x11.c (gdk_selection_property_get):
              Suppress a spurious warning.
      
              * tests/testgtkrc: Remove someleft-over commented out
              includes that could be confusing.
      550bf181
  12. 29 Oct, 2002 1 commit
  13. 28 Oct, 2002 1 commit
    • Tor Lillqvist's avatar
      Don't call GetWindowLong for GWL_EXSTYLE, the extended window style wasn't · ae26d024
      Tor Lillqvist authored
      2002-10-28  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_set_decorations,
      	gdk_window_set_functions): Don't call GetWindowLong for
      	GWL_EXSTYLE, the extended window style wasn't used or
      	changed. After setting the window style with SetWindowLong, call
      	SetWindowPos with the SWP_FRAMECHANGED flag for the window to
      	actually be updated, as Platform SDK docs say one should. (#95812,
      	huzheng)
      ae26d024
  14. 25 Oct, 2002 1 commit
    • Matthias Clasen's avatar
      Fix doc comment. · 1a4c94b9
      Matthias Clasen authored
      	* gdk/x11/gdkcursor-x11.c: Fix doc comment.
      
      	* gdk/gdkdnd.c: Add missing includes.
      1a4c94b9
  15. 24 Oct, 2002 1 commit
  16. 23 Oct, 2002 2 commits
  17. 22 Oct, 2002 2 commits
  18. 18 Oct, 2002 2 commits
    • Owen Taylor's avatar
      Handle Return and KP_Enter. · a5803ca5
      Owen Taylor authored
      Fri Oct 18 16:47:02 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkevents-x11.c (translate_key_event): Handle
              Return and KP_Enter.
      a5803ca5
    • Owen Taylor's avatar
      Fix use of uninitialized variable. · 30faa38a
      Owen Taylor authored
      Thu Oct 17 17:17:05 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkcheckbutton.c (gtk_check_button_size_request):
              Fix use of uninitialized variable.
      
      Thu Oct 17 14:38:37 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkaccellabel.c (gtk_accel_label_expose_event):
              Align the baseline of the accelerator label with the
              first baseline of the main label of the menu item. (#76593)
      
      Wed Oct 16 18:25:24 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkevents-x11.c (translate_key_event):
              Use gdk_keymap_translate_keyboard_state() rather than
              XLookupString() to get the keysymbol, since XLookupString
              can confuse the input method handling. (#93575)
      
              * gdk/x11/gdkkeys-x11.c: Rewrite the handling of
              key translation for the non-XKB case to properly
              handle Shift_Lock, Caps_Lock, Num_Lock according
              to the Xlib spec. (#67066)
      30faa38a
  19. 17 Oct, 2002 1 commit
    • Havoc Pennington's avatar
      add g_return_if_fail for monitor number <= 0 · 727eb8af
      Havoc Pennington authored
      2002-10-16  Havoc Pennington  <hp@redhat.com>
      
      	* gdk/x11/gdkscreen-x11.c (gdk_screen_get_monitor_geometry): add
      	g_return_if_fail for monitor number <= 0
      
      	* gtk/gtkmenu.c (gtk_menu_position): handle case where pointer
      	is outside the screen.
      
      	* gtk/gtkwindow.c (get_monitor_center): factor out
      	the code to position a window in center
      	(gtk_window_compute_configure_request): use here
      	(gtk_window_constrain_position): use here, the
      	code here wasn't multihead-aware
      
      	* gdk/x11/gdkevents-x11.c (get_real_window): function to
      	return the window the event describes, rather than the window
      	that received the event.
      	(gdk_event_translate): use result of that function for
      	filling in GdkEvent::window, which only matters for
      	MapNotify/UnmapNotify and ConfigureNotify, in practice.
      
      	Unbreaks various things using SubstructureNotifyMask.
      727eb8af
  20. 16 Oct, 2002 2 commits
  21. 13 Oct, 2002 1 commit
    • Soeren Sandmann's avatar
      Documentation fixes. · a130f089
      Soeren Sandmann authored
      Sun Oct 13 18:50:14 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtkmenu.c, gtkmenu.sgml, gtkitemfactory.c, gdkwindow.c,
      	gtkwindow.c, gtkpaned.sgml, gtkdialog.c, gtkbox.h, gtkbutton.sgml,
      	gtktreemodel.sgml,gtktable.sgml, gtktable.c:
      
      	Documentation fixes.
      
      	#85719, #90759, #95169, Owen Taylor;
      	#89221, Yao Zhang, Matthias Clasen;
      	#95592, Joost Faassen;
      	#92637, Vitaly Tishkov;
      	#94616, Ben Martin;
      	#94772, sbaillie@bigpond.net.au;
      a130f089
  22. 11 Oct, 2002 2 commits
  23. 08 Oct, 2002 2 commits
    • Owen Taylor's avatar
      Move out of HAVE_XKB. (#95129, Phil Blundell) · f2313b63
      Owen Taylor authored
      Mon Oct  7 19:44:45 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkkeys-x11.c (_gdk_keymap_keys_changed): Move
              out of HAVE_XKB. (#95129, Phil Blundell)
      f2313b63
    • Eric Warmenhoven's avatar
      fix compilation · 6173371a
      Eric Warmenhoven authored
      Mon Oct  7 19:14:24 2002  Eric Warmenhoven <eric@warmenhoven.org>
      
      	* gdk/linux-fb/gdkwindow-fb.c: fix compilation
      
      	* gdk/linux-fb/gdkmain-fb.c: better display mode setting
      6173371a
  24. 07 Oct, 2002 3 commits
    • Owen Taylor's avatar
      New file. Move gdk_drag_find_window(), gdk_drag_get_protocol() here. · 7aac398d
      Owen Taylor authored
      Mon Oct  7 15:48:44 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkdnd.c Makefile.am gdk/x11/gdkdnd-x11.c
              gdk/fb/gdkdnd-fb.c gdk/win32/gdkdnd-win32.c: New file.
              Move gdk_drag_find_window(), gdk_drag_get_protocol() here.
      7aac398d
    • Owen Taylor's avatar
      Add gdk_drag_find_window_for_screen(), so that we can interpret x_root / · f3f016d0
      Owen Taylor authored
      Mon Oct  7 15:48:44 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkdnd.[ch] gdk/x11/gdkdnd-x11.c: Add
              gdk_drag_find_window_for_screen(), so that we can
              interpret x_root / y_root relative to the correct screen.
      
              * gdk/gdkdnd.c Makefile.am gdk/x11/gdkdnd-x11.c
              gdk/fb/gdkdnd-fb.c gdk/win32/gdkdnd-win32.c: New file.
              Move gdk_drag_find_window(), gdk_drag_get_protocol() here.
      
              * gtk/gtkdnd.c: Handle drags between screens; use
              a fallback icon for icons set as windows/pixmaps,
              move the drag icon between displays for icons set as
              pixbufs.
      
              * gdk/x11/gdkkeys-x11.c (update_keymaps): Fix infinite
              loop from last change.
      f3f016d0
    • Owen Taylor's avatar
      - Replace GdkPointerHooks with a multihead-safe GdkDisplayPointerHooks, · 253458ec
      Owen Taylor authored
      Mon Oct  7 15:10:00 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkdisplay.[ch] gdk/gdkinternals.h
              gdk/gdkwindow.[ch] gdk/linux-fb/gdkwindow-fb.c
              gdk/win32/gdkwindow-win32.c gdk/x11/gdkwindow-x11.c:
      
              - Replace GdkPointerHooks with a multihead-safe
                GdkDisplayPointerHooks, leave GdkPointerHooks
                around for singlehead.
              - Add gdk_display_get_pointer() to get the pointer
                location with the screen it is on.
      
              * gdk/gdk.def gdk/gdkdisplay.[ch] gdk/gdkscreen.[ch]:
              Change gdk_screen_get_window_at_pointer() to
              gdk_display_get_window_at_pointer().
      
              * gtk/gtktreeview.c demos/gtk-demo/changedisplay.c
              tests/testgtk.c: Use gdk_display_get_window_at_pointer(),
              not gdk_screen_get_window_at_pointer().
      
              * gtk/gtkcolorsel.c: Fix grabbing color to be multihead
              safe.
      
              * gtk/gtkwidget.c: Allow gtk_widget_push_colormap (NULL).
              since it is useful for writing code that doesn't
              know the dcurrent state but needs a clean colormap.
      
              * gtk/gtkrc.c: When loading the settings for a particular
              screen, only reset toplevels on that screen.
      
              * gtk/gtkiconfactory.h: Fix #ifdef GTK_MULTIHEAD_SAFE
              that should have been #ifndef GTK_MULTIHEAD_SAFE.
      253458ec