1. 07 Mar, 2004 1 commit
    • Hans Breuer's avatar
      some more settings from system, also reflect some name changes done a · 985e3a24
      Hans Breuer authored
      2004-03-07  Hans Breuer  <hans@breuer.org>
      
      	* gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting) :
      	some more settings from system, also reflect some name changes
      	done a while ago in the x11 backend
      
      	* gdk/win32/makefile.msc : build gdkspawn-win32.c
      
      	* gtk/gtkdnd.c : gtk_drag_source_[gs]et_target_list, added "Since: 2.4"
      
      	* gtk/makefile.msc.in : build gtkpathbar, link shell32.lib
      
      	* tests/makefile.msc : some more tests get build
      985e3a24
  2. 06 Mar, 2004 2 commits
  3. 05 Mar, 2004 1 commit
    • Tor Lillqvist's avatar
      Add missing entries, thanks to J. Ali Harlow. · 72d622fc
      Tor Lillqvist authored
      2004-03-05  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/gdk.def: Add missing entries, thanks to J. Ali Harlow.
      
      	* gdk/win32/gdkcursor-win32.c (color_is_white): const-correctness.
      
      	(gdk_cursor_new_from_pixbuf): Copy of the non-Xcursor X11
      	implementation.
      
      	(gdk_display_supports_cursor_alpha,
      	gdk_display_supports_cursor_color): Dummy implementations.
      
      	(gdk_display_get_default_cursor_size,
      	gdk_display_get_maximal_cursor_size): Implement.
      
      	* gdk/win32/gdkdisplay-win32.c (gdk_display_get_default_group):
      	Dummy implementation.
      
      	* gdk/win32/gdkevents-win32.c (gdk_net_wm_supports): Dummy
      	implementation.
      
      	* gdk/win32/gdkfont-win32.c (gdk_font_get_display): Implement.
      
      	* gdk/win32/gdkinput-win32.c (gdk_input_motion_events): Remove,
      	not in API.
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_get_group): Dummy
      	implementation.
      72d622fc
  4. 01 Mar, 2004 2 commits
    • Simon Budig's avatar
      X11 R6.4 specifies 15 events for the XInput extension. We want to see them · c04ecdaa
      Simon Budig authored
      2004-03-01  Simon Budig  <simon@gimp.org>
      
      	* gdk/x11/gdkinput-x11.c: X11 R6.4 specifies 15 events
      	for the XInput extension. We want to see them all.
      	We now get Proximity Out events again. Fixes bug #135320.
      c04ecdaa
    • Owen Taylor's avatar
      Based on patch by Alex Larsson · 945e6c4e
      Owen Taylor authored
      Mon Mar  1 14:16:52 2004  Owen Taylor  <otaylor@redhat.com>
      
              Based on patch by Alex Larsson
      
              * gtk/gtkfilechooserdefault.c: Use gtk-file-chooser-backend
              GtkSetting to set the backend if the app doesn't specify one.
      
              * gdk/x11/gdkevents-x11.c gtk/gtksettings.c:
              Add Gtk/FileChooserBackend.
      945e6c4e
  5. 29 Feb, 2004 1 commit
  6. 28 Feb, 2004 1 commit
    • Hans Breuer's avatar
      set current_dest_drag to NULL when destroying, fixes bug #120007. Also · 75aa148d
      Hans Breuer authored
      2004-02-28  Hans Breuer  <hans@breuer.org>
      
      	* gdk/win32/gdkdnd-win32.c : set current_dest_drag to NULL
      	when destroying, fixes bug #120007. Also removed the mirrored
      	ref counting for deprecated gdk_drag_context_<ref|unref>()
      	cause it wasn't reliable anymore anyway.
      
      	* gdk/win32/gdkdisplay-win32.c : fix typo, which should
      	have broken the win32 build for everyone not using msvc
      
      	* gdk/win32/gdkevents-win32.c : WM_GETMINAMXINFO ensure not to
      	return negative values for ptMaxTrackSize, it caused snapping
      	windows to their minimum size
      75aa148d
  7. 27 Feb, 2004 3 commits
  8. 26 Feb, 2004 2 commits
    • Owen Taylor's avatar
      Return GDK_FILTER_CONTINUE for unhandled message types. · 04ebfe94
      Owen Taylor authored
      Thu Feb 26 17:29:04 2004  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Return
              GDK_FILTER_CONTINUE for unhandled message types.
      
              * gdk/x11/gdkevents-x11.c (gdk_event_translate): Allow
              multiple filters for the same event type with the standard
              "GDK_FILTER_CONTINUE == pretend I wasn't here" semantics.
      
              * gdk/x11/gdkevents-x11.c (gdk_display_add_client_message_filter):
              Append to the filter list not prepend, since order now matters.
      
              * gdk/win32/gdkevents-win32.c (gdk_add_client_message_filter):
              Append to the filter list not prepend, since order now matters.
      04ebfe94
    • Owen Taylor's avatar
      Use the right free() function. (#135511, George Bronnikov) · d2e3514d
      Owen Taylor authored
      Thu Feb 26 13:23:47 2004  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkwindow-x11.c (set_text_property): Use the right
              free() function. (#135511, George Bronnikov)
      d2e3514d
  9. 25 Feb, 2004 1 commit
    • Owen Taylor's avatar
      Call g_convert(), not g_convert() with fallback, since Emacs is happier if · 6139c61d
      Owen Taylor authored
      Wed Feb 25 15:36:50 2004  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text_for_display):
              Call g_convert(), not g_convert() with fallback, since Emacs is
              happier if we reject the COMPOUND_TEXT request and it can
              then ask for UTF-8. (#114527)
      
              * gtk/gtkselection.c (gtk_selection_data_set_text): When
              TEXT is requested, if COMPOUND_TEXT fails, fall back to STRING.
      6139c61d
  10. 22 Feb, 2004 1 commit
    • Matthias Clasen's avatar
      Fix bug 134982, reported by Morten Welinder: · e9a92e6e
      Matthias Clasen authored
      Mon Feb 23 00:38:21 2004  Matthias Clasen  <maclas@gmx.de>
      
      	Fix bug 134982, reported by Morten Welinder:
      
      	* gtk/gtkpathbar.c (gtk_path_bar_destroy):
      	* gtk/gtktooltips.c (gtk_tooltips_destroy):
      	* gtk/gtkinvisible.c (gtk_invisible_destroy): Chain up to the
      	parent's ::destroy handler.
      
      	* gdk/gdkdisplay.c (gdk_display_dispose): Chain up to the
      	parent's ::dispose handler.
      e9a92e6e
  11. 21 Feb, 2004 1 commit
    • Soeren Sandmann's avatar
      Bug 130790 (Federico Mena Quintero, Owen Taylor) · e2e6a5f4
      Soeren Sandmann authored
      Sat Feb 21 20:09:53 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	Bug 130790 (Federico Mena Quintero, Owen Taylor)
      
      	* gdk/x11/gdkevents-x11.c: Add Xft XSETTINGS
      
      	* gtk/gtksettings.c: Add new GtkSettings corresponding to the Xft
      	XSETTINGS
      e2e6a5f4
  12. 19 Feb, 2004 1 commit
    • Matthias Clasen's avatar
      Fixes for #82099: · add52ebb
      Matthias Clasen authored
      Thu Feb 19 23:41:06 2004  Matthias Clasen  <maclas@gmx.de>
      
      	Fixes for #82099:
      
      	* gdk/x11/gdkevents-x11.c: Introduce new XSettings "Gtk/ButtonImages"
      	and "Gtk/MenuImages" and map them to "gtk-button-images" and
      	"gtk-menu-images".
      
      	* gtk/gtkimagemenuitem.c: Add a boolean setting "gtk-menu-images" and use
      	it to set the visibility of the embedded image.
      
      	* gtk/gtkbutton.c: Add a boolean setting "gtk-button-images" and use
      	it to set the visibility of an embedded image.
      add52ebb
  13. 18 Feb, 2004 4 commits
    • Soeren Sandmann's avatar
      Use a scratch GC in the case where the background is a solid color. · b69a6711
      Soeren Sandmann authored
      Wed Feb 18 17:53:27 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gdk/gdkwindow.c (gdk_window_get_bg_gc): Use a scratch GC in the
      	case where the background is a solid color.
      	(gdk_window_clear_backing_rect): Reset the clip region after use.
      
      	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha): Go
      	back to using a scratch GC. Pointed out by Owen Taylor
      
      	* gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Only use a
      	scratch GC if the passed-in one is NULL
      b69a6711
    • Soeren Sandmann's avatar
      Reset clip region back to NULL on cached GC (rest of #134728) · f539d993
      Soeren Sandmann authored
      Wed Feb 18 14:27:08 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gdk/gdkwindow.c (gdk_window_get_composite_drawable): Reset clip
      	region back to NULL on cached GC (rest of #134728)
      f539d993
    • Soeren Sandmann's avatar
      Fix bug reported by Nam SungHyun. · df434db7
      Soeren Sandmann authored
      Wed Feb 18 13:28:57 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	Fix bug reported by Nam SungHyun.
      
      	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha):
      	Don't use a cached GC here since the function needs to modify the
      	foreground color.
      
      	* gdk/gdkwindow.c (gdk_window_end_paint): Reset clip region back
      	to NULL on the cached GC.
      df434db7
    • Soeren Sandmann's avatar
      GC caching, bug #125645 (based on patch by Brian Cameron) · 1c51c486
      Soeren Sandmann authored
      Wed Feb 18 01:44:59 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	GC caching, bug #125645 (based on patch by Brian Cameron)
      
      	* gdk/gdkscreen.h (struct _GdkScreen): Add GC cache
      	* gdk/gdkscreen.c (gdk_screen_dispose): New function. Unref the
      	cached GC's here.
      	* gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): New function to
      	get a scratch gc.
      	* gdk/gdkinternals.h: Declare the function here
      
      	* gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Use
      	_gdk_drawable_get_scratch_gc() instead of creating a new GC.
      	* gdk/x11/gdkgeometry-x11.c (gdk_window_copy_area_scroll): same
      	* gdk/x11/gdkdrawable-x11.c (draw_with_images): same
      	* gdk/gdkwindow.c (gdk_window_get_composite_drawable): same
      	* gdk/gdkwindow.c (gdk_window_end_paint): same
      	* gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): same
      	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha): same
      	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_pixmap_and_mask_for_colormap): same
      1c51c486
  14. 17 Feb, 2004 2 commits
    • Soeren Sandmann's avatar
      Fix for #119722, reported by Olexiy Avramchenko, patch by Owen Taylor. · 6c8430c0
      Soeren Sandmann authored
      Tue Feb 17 23:02:58 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	Fix for #119722, reported by Olexiy Avramchenko, patch by Owen
      	Taylor.
      
      	* gdk/x11/gdkprivate-x11.h (struct _GdkGCX11): Add a depth field
      
      	* gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Keep track of the GC's
      	depth.
      
      	* gdk/x11/gdkgc-x11.c (_gdk_gc_x11_get_fg_xft_color): First query
      	the colormap, if no colormap, special case depth 1,
      
      	* gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Use
      	_gdk_gc_x11_get_fg_xft_color() to get the foreground color.
      
      	* gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_xft_draw):
      	Special-case bitmaps without a colormap.
      
      	* gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Use inherited
      	draw_pixbuf() implementation in the bitmap case.
      6c8430c0
    • Owen Taylor's avatar
      Revert last commit, please don't commit patches without approval, this · 42c1eb9f
      Owen Taylor authored
      Mon Feb 16 19:13:21 2004  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkdraw.c: Revert last commit, please don't commit patches
              without approval, this isn't the right way to do it.
      42c1eb9f
  15. 16 Feb, 2004 1 commit
  16. 12 Feb, 2004 1 commit
    • Manish Singh's avatar
      Assign xtype using gdk_x11_atom_to_xatom_for_display () when type != · 7cf055ef
      Manish Singh authored
      Thu Feb 12 11:05:16 2004  Manish Singh  <yosh@gimp.org>
      
              * gdk/x11/gdkproperty-x11.c (gdk_property_get): Assign xtype using
              gdk_x11_atom_to_xatom_for_display () when type != GDK_NONE.
      
              * gtk/gtkselection.c (_gtk_selection_request): Use GDK_NONE in
              gdk_property_get call instead of 0.
      
              * docs/reference/gdk/tmpl/properties.sgml: Document the above
              as GDK_NONE instead of simply 0.
      7cf055ef
  17. 11 Feb, 2004 1 commit
    • Matthias Clasen's avatar
      Fix misleading debug output. · 06d35613
      Matthias Clasen authored
      Thu Feb 12 00:37:00 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gdk/x11/gdkproperty-x11.c (gdk_property_change): Fix misleading
      	debug output.
      06d35613
  18. 10 Feb, 2004 1 commit
    • Owen Taylor's avatar
      Avoid triggering an X error when the client->manager_window is · 351ebd8b
      Owen Taylor authored
      Tue Feb 10 12:02:14 2004  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/xsettings-client.c (read_settings): Avoid
              triggering an X error when the client->manager_window
              is None...makes logs look cleaner.
      
              * gdk/x11/gdkproperty-x11.c (gdk_property_get): Handle
              GDK_NONE to mean AnyPropertyType as documented. (Reported
              by Yu Shao)
      
              * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window,
              gdk_x11_screen_get_window_manager_name): Fix error trap
              we've been leaking since 2002... (#129538)
      351ebd8b
  19. 02 Feb, 2004 4 commits
  20. 30 Jan, 2004 2 commits
    • Federico Mena Quintero's avatar
      Fixes #132975. · a9fbfc99
      Federico Mena Quintero authored
      2004-01-30  Federico Mena Quintero  <federico@ximian.com>
      
      	Fixes #132975.
      
      	* gtk/gtkfilesystem.c (gtk_file_system_make_path): Return NULL,
      	not FALSE.
      	(gtk_file_system_volume_render_icon): Likewise.
      
      	* gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path):
      	Likewise.
      
      	* gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Return 0,
      	not FALSE.
      
      	* gtk/gtktoolbar.c (gtk_toolbar_get_drop_index): Return -1, not
      	FALSE.
      
      	* gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): Return 0,
      	not FALSE.
      	(gtk_text_iter_get_bytes_in_line): Likewise.
      
      	* gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
      	Likewise.
      
      	* gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Return FALSE, not
      	0.
      a9fbfc99
    • Owen Taylor's avatar
      Revert changes from #113476 and go back to using XftDrawSetClip, because · 1378322f
      Owen Taylor authored
      Fri Jan 30 11:37:37 2004  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkdrawable-x11.c: Revert changes from
              #113476 and go back to using XftDrawSetClip, because
              XftDrawSetClipRectangles is buggy in XFree86-4.3.
      1378322f
  21. 28 Jan, 2004 1 commit
    • Tor Lillqvist's avatar
      Don' generate enter or leave events if the pointer is grabbed with · 4263ea15
      Tor Lillqvist authored
      2004-01-28  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkevents-win32.c (synthesize_leave_event,
      	synthesize_enter_event): Don' generate enter or leave events if
      	the pointer is grabbed with owner_events off, and the grab event
      	mask doesn't ask for them. (#129242)
      
      	(gdk_event_translate): Ditto for focus change events.
      4263ea15
  22. 26 Jan, 2004 1 commit
    • Federico Mena Quintero's avatar
      Fix #105497; constify uses of GdkColor. · 5ebb6b04
      Federico Mena Quintero authored
      2004-01-26  Federico Mena Quintero  <federico@ximian.com>
      
      	Fix #105497; constify uses of GdkColor.
      
      	* gdk/gdkgc.c (gdk_gc_set_rgb_fg_color): Constify.
      	(gdk_gc_set_rgb_bg_color): Constify.
      	(gdk_gc_set_foreground): Constify.
      
      	* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): Constify.
      	* gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Constify.
      	* gdk/linux-fb/gdkcursor-fb.c (gdk_cursor_new_from_pixmap): Constify.
      
      	* gdk/x11/gdkpixmap-x11.c (gdk_pixmap_create_from_data): Constify.
      	* gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data): Constify.
      	* gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_create_from_data): Constify.
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_set_background): Constify.
      	* gdk/win32/gdkwindow-win32.c (gdk_window_set_background): Constify.
      	* gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_background): Constify.
      
      	* gdk/gdkpango.c (gdk_draw_layout_line_with_colors): Constify.
      	(gdk_draw_layout_with_colors): Constify.
      
      	* gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): Constify.
      	(gdk_pixmap_colormap_create_from_xpm): Constify.
      	(gdk_pixmap_create_from_xpm): Constify.
      	(gdk_pixmap_colormap_create_from_xpm_d): Constify.
      	(gdk_pixmap_create_from_xpm_d): Constify.
      
      	* gtk/gtkcellview.c (gtk_cell_view_set_background_color): Constify.
      
      	* gtk/gtkclist.c (gtk_clist_set_foreground): Constify.
      	(gtk_clist_set_background): Constify.
      
      	* gtk/gtkcolorbutton.c (gtk_color_button_new_with_color): Constify.
      	(gtk_color_button_set_color): Constify.
      
      	* gtk/gtkcolorsel.c (gtk_color_selection_set_current_color):
      	Constify and add a check for color != NULL.
      	(gtk_color_selection_get_current_color): Add a check for color != NULL.
      	(gtk_color_selection_set_previous_color): Constify and add a check
      	for color != NULL.
      	(gtk_color_selection_get_previous_color): Add a check for color != NULL.
      
      	* gtk/gtkctree.c (gtk_ctree_node_set_foreground): Constify.
      	(gtk_ctree_node_set_background): Constify.
      
      	* gtk/gtktext.c (gtk_text_insert): Constify.
      	(insert_text_property): Constify.
      	(text_properties_equal): Constify.
      	(new_text_property): Constify.
      
      	* gtk/gtkwidget.c (gtk_widget_modify_color_component): Constify.
      	(gtk_widget_modify_fg): Constify.
      	(gtk_widget_modify_bg): Constify.
      	(gtk_widget_modify_text): Constify.
      	(gtk_widget_modify_base): Constify.
      5ebb6b04
  23. 25 Jan, 2004 1 commit
    • Tor Lillqvist's avatar
      If the WM_TRANSIENT_FOR property is being deleted, set the owner of the · 15567341
      Tor Lillqvist authored
      2004-01-25  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkproperty-win32.c (gdk_property_delete): If the
      	WM_TRANSIENT_FOR property is being deleted, set the owner of the
      	window to the root window (i.e., effectively unset it). (#132411)
      
      	* gdk/win32/gdkprivate-win32.h
      	* gdk/win32/gdkglobals-win32.c
      	* gdk/win32/gdkmain-win32.c: Declare, define and initialize
      	_wm_transient_for, a GdkAtom for WM_TRANSIENT_FOR.
      
      	* acconfig.h: Remove HAVE_WINSOCK_H, not used any longer.
      15567341
  24. 22 Jan, 2004 1 commit
    • Alexander Larsson's avatar
      Fix typo · 465d6e35
      Alexander Larsson authored
      2004-01-22  Alexander Larsson  <alexl@redhat.com>
      
      	* gdk/x11/gdkwindow-x11.c (WINDOW_IS_TOPLEVEL):
      	Fix typo
      465d6e35
  25. 17 Jan, 2004 1 commit
  26. 16 Jan, 2004 1 commit
    • Matthias Clasen's avatar
      The first part of the fix for #114351 (see also gdk-pixbuf/ChangeLog and · 07d4d314
      Matthias Clasen authored
      Fri Jan 16 23:59:01 2004  Matthias Clasen  <maclas@gmx.de>
      
      	The first part of the fix for #114351 (see also
      	gdk-pixbuf/ChangeLog and po/ChangeLog):
      
      	* gtk/gtkintl.h:
      	* gdk-pixbuf/gdk-pixbuf-i18n.h:
      	* gdk/gdkintl.h: Define P_() for property blurbs and nicks.
      
      	* gdk/gdkdisplaymanager.c:
      	* gdk-pixbuf/gdk-pixbuf.c:
      	* modules/input/gtkimcontextxim.c:
      	* gtk/*.c:  Mark property blurbs and nicks with P_().
      
      	* po/Makefile.in.in: Add --keyword=P_ to the xgettext
      	invocation, since property blurbs and nicks are
      	now marked with P_().
      07d4d314
  27. 05 Jan, 2004 1 commit