1. 13 Nov, 2000 1 commit
    • Sebastian Wilhelmi's avatar
      GCompareFunc -> GEqualFunc where applicable. · b664be5f
      Sebastian Wilhelmi authored
      
      2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
      	gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
      	gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
      	gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
      	GEqualFunc where applicable.
      
      	* gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
      	pango_font_description_equal as changed in pango.
      
      	* gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
      
      	* gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
      
      	* gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
      
      	* gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
      
      	* gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
      
      	* gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
      
      	* gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
      	gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
      
      	* gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
      	gtk_rc_styles_compare -> gtk_rc_styles_equal.
      b664be5f
  2. 12 Nov, 2000 3 commits
    • Robert Brady's avatar
      g_filename_{to,from}_utf8 now takes an extra parameter. · b17f1a96
      Robert Brady authored
      Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
      
      	* gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c:
      	g_filename_{to,from}_utf8 now takes an extra parameter.
      
      	* gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
      	strftime into UTF-8.
      
      	(column_from_x, gtk_calendar_paint_day_names): Support RTL
      	calendars.
      
      	(gtk_calendar_paint_day_names): Draw day names in the right
      	place.
      b17f1a96
    • Owen Taylor's avatar
      Fix problem with using result of g_get_charset() backwards - pointed out · 2cb2d33b
      Owen Taylor authored
      Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
      	problem with using result of g_get_charset() backwards -
      	pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
      
      	* gtk/gtkwindow.c (gtk_window_compute_hints): Support
      	negative min_width/height and max_width/height to
      	mean "requisition"; this allows setting a window
      	to be user-resizable in only one direction easily.
      
      	* gtk/testgtk.c (create_main_window): Remove hard-coded
      	usize - set a default size in the vertical direction.
      2cb2d33b
    • Hans Breuer's avatar
      aceeae34
  3. 11 Nov, 2000 1 commit
    • Tor Lillqvist's avatar
      gdk/gdk.def Update. · 22a0c3a5
      Tor Lillqvist authored
      2000-11-11  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/gdk.def
      	* gtk/gtk.def: Update.
      
      	* gdk/win32/*.c: Add last argument to g_type_register_static()
      	calls.
      
      	* gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
      
      	* gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
      	generated by older wheel mouse drivers. Get the correct y
      	coordinate from WM_MOUSEWHEEL messages.
      
      	* gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
      	gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
      	gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
      	Debugging functions.
      
      	* gdk/win32/gdkprivate-win32.h: Declare them.
      
      	* gdk/win32/gdkinput-win32.h: Add declaration for
      	gdk_input_window_destroy().
      
      	* gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
      
      	* gdk_pixbuf.def: Add gdk_pixbuf_new_subpixbuf.
      22a0c3a5
  4. 09 Nov, 2000 1 commit
    • Alexander Larsson's avatar
      Changes to make the new testgtk compile after gtk_menu_append was removed. · 8898529c
      Alexander Larsson authored
      2000-11-09  Alexander Larsson  <alexl@redhat.com>
      
      	* demos/testgtk/menus.c:
      	Changes to make the new testgtk compile after
      	gtk_menu_append was removed.
      
      	* gdk/linux-fb/gdkdrawable-fb2.c
      	(gdk_fb_get_depth, gdk_fb_get_visual,
      	gdk_drawable_impl_fb_class_init): Implement
      	these drawable functions. Now GtkImages work again.
      
      	* gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
      
      	* gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
      
      	* gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
      	gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
      	Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
      	GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
      8898529c
  5. 07 Nov, 2000 2 commits
    • Alexander Larsson's avatar
      Forgot to remove stray g_print() · 163dc54d
      Alexander Larsson authored
      163dc54d
    • Alexander Larsson's avatar
      use g_object_new() instead of g_type_create_instance() which is a private · 224f6ec5
      Alexander Larsson authored
      2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
      
      	* gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
      	gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
      	gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
      	gdk/linux-fb/gdkwindow-fb.c:
      	use g_object_new() instead of g_type_create_instance() which
      	is a private function for fundamental type implementations.
      
      	* gdk/linux-fb/gdkinput-ps2.c:
      	Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
      	instead just store the current modifier state. Add a (somewhat broken)
      	keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
      	Rename exported function gdk_input_ps2_get_mouseinfo to
      	gdk_input_get_mouseinfo.
      
      	* gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
      	gdk/linux-fb/gdkwindow-fb.c:
      	gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
      224f6ec5
  6. 02 Nov, 2000 3 commits
    • Owen Taylor's avatar
      Fix a bunch of functions that should have been marked static. · 78ae775e
      Owen Taylor authored
      Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
      	been marked static.
      78ae775e
    • Havoc Pennington's avatar
      had a test backward · 0ee86faa
      Havoc Pennington authored
      2000-11-02  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/testgtk.c (create_labels): had a test backward
      
      	* gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
      	fields, so the dest GC ends up with the correct clip origin,
      	etc. Fixes a bug where colored labels didn't redraw
      	properly.
      0ee86faa
    • Alexander Larsson's avatar
      Add last argument to t_type_register_static call. · 214c61d5
      Alexander Larsson authored
      2000-11-02  Alexander Larsson  <alexl@redhat.com>
      
      	* gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
      	gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
      	gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
      	Add last argument to t_type_register_static call.
      
      	* gdk/linux-fb/gdkdrawable-fb2.c:
      	Add last argument to t_type_register_static call.
      	export the get_image drawable virtual function.
      
      	* gdk/linux-fb/gdkimage-fb.c:
      	Add last argument to t_type_register_static call.
      	rename gtk_image_get to _gdk_fb_get_image and
      	export it for use by gdkdrawable-fb2.
      
      	* gdk/linux-fb/gdkprivate-fb.h:
      	export _gdk_fb_get_image.
      
      	* gdk/linux-fb/gdkselection-fb.c:
      	Add new api call stubs.
      
      	* gtk/Makefile.am:
      	Missing ( in linux-fb part.
      
      	* modules/linux-fb/Makefile.am:
      	Must link with gdk_pixbuf or get unresolved symbol.
      214c61d5
  7. 01 Nov, 2000 3 commits
    • Havoc Pennington's avatar
      Clip the rectangle to be rendered to the drawable, since · fcaa719b
      Havoc Pennington authored
      2000-11-01  Havoc Pennington  <hp@redhat.com>
      
      	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
      	Clip the rectangle to be rendered to the drawable, since
      	get_from_drawable() requires a region within the drawable
      fcaa719b
    • Owen Taylor's avatar
      Only ref the window if it isn't NULL. · b2e180ce
      Owen Taylor authored
      Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkevents.c (gdk_event_copy): Only ref the window if
      	it isn't NULL.
      b2e180ce
    • Havoc Pennington's avatar
      New function to create a pixbuf pointing to a subregion of another pixbuf. · fe9f9d03
      Havoc Pennington authored
      2000-11-01  Havoc Pennington  <hp@pobox.com>
      
      * gdk-pixbuf.c (gdk_pixbuf_new_subpixbuf): New function to create
      a pixbuf pointing to a subregion of another pixbuf.
      
      2000-11-01  Havoc Pennington  <hp@pobox.com>
      
      * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
      on a label
      (gtk_label_finalize): unref the attr list if any.
      
      * gtk/testgtk.c (create_get_image): close test on second click
      (make_message_dialog): close dialog if it exists
      
      * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
      
      * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
      gdk-pixbuf
      
      * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
      from Pango markup format
      (gtk_label_set_markup_with_accel): ditto but with accelerator
      parsing
      
      * gtk/gtkimage.c (gtk_image_expose): reformatting.
      
      * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
      reflect current state of GDK - use gdk_drawable_get_colormap, etc.
      Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to
      call gdk_window_get_origin().
      
      * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
      implement GDK_PIXBUF_ALPHA_FULL
      fe9f9d03
  8. 25 Oct, 2000 3 commits
    • Tim Janik's avatar
      urg, removed implementation of gtk_marshal_VOID__INT_INT_INT_INT. if · d69496c0
      Tim Janik authored
      Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
      
              * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
              implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
              couldn't they at least give it a non-standard name?
      
              * gtk/gtktextlayout.c: arg! yet another implementation of
              gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
      
              * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
              gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
              home. now i know this _is_ a conspiracy.
      
              * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
              ::state-changed.
      
              * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove):
              (gtk_accel_group_create_add): marshaller signature fixups.
      
              * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
              pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
      
              * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
              anymore.
      
      Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
      
              * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
              due to the signal system changes, it wouldn't build currently. to
              be fixed soon.
      
              * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
      
              * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
              so it needs gtk_marshal_VOID__ENUM() instead of
              gtk_marshal_NONE__UINT().
      
              * gdk/gdk*.c: adapted type registration functions.
      
              * gtk/gtkbindings.c:
              * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
              gone.
      
              * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
      
              * gtk/gtkobject.c:
              (gtk_object_destroy):
              (gtk_object_shutdown): fixed recursion guards. basically we have to
              catch the case where any of GObject.shutdown() or gtk_object_destroy()
              is called during ::destroy, and avoid recursion there.
      
              * gtk/gtktypeutils.c:
              * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
              boxed_copy/boxed_free. this needs a more general solution based on a
              publically installed code-generator utility.
      
              * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
              glib's gobject has support for that now.
              define GtkSignalMarshaller in terms of GSignalCMarshaller.
      
      
      Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
      
              * gtk/gtksignal.[hc]:
              * gtk/gtkmarshal.[hc]:
              * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
              compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
              removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
              care of that.
      
              * *.c: marshaller name fixups.
      
              * gtk/gtkmarshal.list: added a comment briefing the format.
      
      Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
      
              * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
              compatibility macros here now. more specifically, most of
              the API is preserved (yes, _most_, nonwithstanding the
              following exceptions listed, the API is stil lHUGE ;)
              things that got removed completely:
              GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
              gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
              gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
              gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
              gtk_signal_remove_emission_hook().
              non-functional functions variants:
              gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
              the GtkCallbackMarshal argument to gtk_signal_connect_full() is
              not supported anymore.
              (gtk_signal_compat_matched): new internal function to aid
              implementation of the compatibility macros, it  provides
              functionality to block/unblock/disconnect handlers based
              on func/data.
      
              * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
      
              * *.c: adaptions to new type registration API signatures.
      
      
      Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
      
              * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
      d69496c0
    • Robert Brady's avatar
      If window == NULL, assume the root window. (restoring the behaviour that · 7ae3922d
      Robert Brady authored
      2000-10-25  Robert Brady  <robert@suse.co.uk>
      
      	* gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
      	gdk_property_delete): If window == NULL, assume the root window.
      	(restoring the behaviour that was in 1.2).
      --------------------------------------------------------------------
      7ae3922d
    • Tor Lillqvist's avatar
      Include x11/gdkx.h only when building for X11. · fb212745
      Tor Lillqvist authored
      2000-10-25  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
      
      	* gdk/win32/gdkdrawable-win32.c
      	* gdk/win32/gdkimage-win32.c
      	* gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
      	X11 backend.
      
      	* gdk/win32/gdkcc-win32.c
      	* gdk/win32/gdkcolor-win32.c
      	* gdk/win32/gdkfont-win32.c
      	* gdk/win32/gdkinput-win32.c
      	* gdk/win32/gdkmain-win32.c
      	* gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
      fb212745
  9. 24 Oct, 2000 1 commit
    • Havoc Pennington's avatar
      Re-enable the "find" dialog · 86b5c82a
      Havoc Pennington authored
      2000-10-23  Havoc Pennington  <hp@redhat.com>
      
              * gtk/testtext.c: Re-enable the "find" dialog
      
      	* gtk/testgtk.c: Add test for gdk_drawable_get_image
      
      	* gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
      	the arguments to gdk_draw_drawable were in the wrong order
      	(gdk_window_paint_init_bg): This function was ignoring the
      	init_region, instead of clipping to it, so the entire backing
      	pixmap was cleared on every begin_paint()
      	(gdk_window_begin_paint_region): Hmm, the same list-walking bug
      	was in here again, the loop kept using the same GtkWindowPaint
      	over and over.
      	(gdk_window_begin_paint_region): Fix a bug where we had two
      	x_offset instead of x_offset and y_offset
      
      	* gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
      	before we get the image.
      	(gdk_draw_drawable): get the composite before we draw the drawable.
      	(gdk_drawable_real_get_composite_drawable): default
      	get_composite_drawable implementation that returns the drawable
      	itself
      
      	* gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
      	get_composite_drawable virtual function
      
      	* gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
      	list-walking bug
      
      	* gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
      	make this work if the source drawable is a GdkDrawableImplX11
      	instead of a public drawable type. This is really broken; the
      	problem is that GdkDrawable needs a virtual method get_xid(), but
      	of course that doesn't work in practice. Enter RTTI.
      
      	Also, improve mismatched depth message.
      
      	* gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
      	GdkPixmap
      
      	* gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
      	install _gdk_x11_get_image as our implementation of get_image
      
      	* gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
      	_gdk_x11_get_image and export for use in gdkdrawable-x11.c
      
      	* gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
      	gdk_drawable_get_image
      
      	* gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
      
      	* gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
      	get_image
      
      	* gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
      	trailing semicolon after for loop
      86b5c82a
  10. 22 Oct, 2000 1 commit
    • Tor Lillqvist's avatar
      gdk/win32/gdkgc-win32.c Remove gcc -Wall warnings. · f49a2a00
      Tor Lillqvist authored
      2000-10-22  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkgc-win32.c
      	* gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
      
      	Patches by Hans Breuer:
      
      	* gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
      	SetBkMode() and SetTextAlign() before calling
      	pango_win32_render().
      
      	* gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
      	Set hcliprgn to NULL after destroying it.
      	(gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
      
      	* gdk/win32/gdkgeometry-win32.c
      	(_gdk_windowing_window_queue_antiexpose): More effective
      	implementation.
      
      	* gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
      	depth as default, not the visual's.
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
      	against empty title.
      
      	* gdk/win32/gdkprivate-win32.h: Define a helper macro,
      	IMAGE_PRIVATE_DATA.
      
      	* gdk/win32/gdkimage-win32.c (gdk_image_get_type): Use it.
      f49a2a00
  11. 18 Oct, 2000 1 commit
    • Havoc Pennington's avatar
      Some updates · 7a4c6893
      Havoc Pennington authored
      2000-10-18  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtk-sections.txt: Some updates
      
      	* gdk/gdk-sections.txt: remove GdkPixbufAlphaMode
      
      	* gdk-pixbuf/gdk-pixbuf-sections.txt: Add new API, remove
      	GdkPixbufClass/GdkAnimationClass since those are private
      
      	* gdk-pixbuf/Makefile.am (IGNORE_HFILES): ignore more headers
      
      2000-10-18  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug
      	where any number of empty lines would get skipped
      
      	* gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
      	edge.
      
      	* gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
      	warning about invalid iterators (explain more thoroughly)
      	(gtk_text_iter_in_region): rename gtk_text_iter_in_range
      
      	* gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
      	big
      
      	* demos/*.c: Add error handling
      
      	* gtk/gtktextbuffer.c: don't modify const iterators
      
      	* gtk/gdk-pixbuf-loader.c: Add full error handling here
      
      	* gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
      	on file load
      
      	* gtk/gtkiconfactory.c: Update to reflect addition of error
      	handling to gdk-pixbuf loaders
      
      2000-10-16  Havoc Pennington  <hp@redhat.com>
      
      	* gdk-pixbuf-io.c (gdk_pixbuf_get_module)
      	(gdk_pixbuf_get_named_module) (gdk_pixbuf_load_module):
      	add error reporting here also
      
      	* make-inline-pixbuf.c (main): use GError
      
      	* io-xpm.c: include unistd.h
      
      	* gdk-pixbuf-util.c: include string.h
      
      	* io-*.c: add error reporting
      
      	* gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file): add
      	error reporting
      
      	* gdk-pixbuf-io.c (gdk_pixbuf_new_from_file): Add error reporting
      
      	* gdk-pixbuf-io.h: Add GError** to load_increment and load
      	methods
      
      	* gdk-pixbuf-io.c (gdk_pixbuf_save) (gdk_pixbuf_savev): return
      	a G_FILE_ERROR if we fail to write or close the file.
      
      	* gdk-pixbuf.h: remove GDK_PIXBUF_ERROR_IO, instead we'll use
      	G_FILE_ERROR_*. Rename enum to GdkPixbufError, properly following
      	the GError naming rules. Add GError** to load functions.
      7a4c6893
  12. 09 Oct, 2000 2 commits
    • Tor Lillqvist's avatar
      Update. · 658b4b1d
      Tor Lillqvist authored
      2000-10-09  Tor Lillqvist  <tml@iki.fi>
      
      	* README.win32: Update.
      
      	* gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
      	lines that had been deleted by mistake (?).
      
      	* gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
      	also the case fg==white and bg==black (but still not randomly
      	coloured cursors). Thanks to Wolfgang Sourdeau.
      
      	* gdk/win32/*.c: Silence gcc -Wall.
      
      	* gtk/gtk.def: Add missing entry points.
      
      	Fixes by Hans Breuer:
      
      	* gdk/makefile.msc
      	* gdk/win32/makefile.msc: Update.
      
      	* gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
      	some MSVC thing, presumably), cause breakpoint on failures. Add
      	GDK_NOR case. Call g_log_set_always_fatal.
      
      	* gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
      	should be pased by reference.
      
      	* gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
      
      	* gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
      
      	* gdk/win32/gdkevents-win32.c
      	* gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
      
      	* gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
      	implementation object.
      
      	* gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
      	not just windows.
      
      	* gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
      	Use the wrapper object.
      658b4b1d
    • Havoc Pennington's avatar
      contrib subdir · 518f32d9
      Havoc Pennington authored
      2000-10-06  Havoc Pennington  <hp@redhat.com>
      
      	* Makefile.am (SRC_SUBDIRS): contrib subdir
      
      	* gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
      	so it can be used in Xlib version
      
      	* demos/testpixbuf.c (update_timeout): error checking from 1.0
      	tree
      
      	* gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
      	change from 1.0 tree that returns first frame of animation
      	if the loaded file is an animation.
      
              * contrib: add new directory to hold stuff that comes with GTK+
      	but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
      
      	* configure.in: add contrib/*
      
      2000-10-06  Havoc Pennington  <hp@redhat.com>
      
      	* gdk-pixbuf.h: add GdkPixbufAlphaMode
      
      2000-10-06  Havoc Pennington  <hp@redhat.com>
      
              This entry is a summary of the merged-in changes from 1.0.
      	Relevant original ChangeLog entries are spliced in after
      	this entry; the files they refer to are from the 1.0
      	gdk-pixbuf sources.
      
      	* pixops/pixops.c (pixops_composite_nearest): sync a small fix
      	from 1.0
      
      	* io-xpm.c (xpm_seek_string): add fscanf error check from 1.0
      	Add progressive loader from 1.0
      
      	* io-tiff.c (gdk_pixbuf__tiff_image_begin_load): mem leak fixes
      	from 1.0 tree
      
      	* io-pnm.c: new version from 1.0 tree
      
      	* io-jpeg.c (gdk_pixbuf__jpeg_image_load): sync from 1.0, use
      	malloc not g_malloc
      
      	* io-gif.c (lzw_read_byte): sync from 1.0, change a g_error to
      	g_warning
      	(gif_get_next_step): return 0 here, sync from 1.0
      
      	* gdk-pixbuf-util.c: sync email address change for Cody
      	Russell
      
      2000-09-11  Jeffrey Stedfast  <fejj@helixcode.com>
      
      	* gdk-pixbuf/io-pnm.c: Pretty much totally rewrote again because
      	last nights code was still "broken". Should now properly handle
      	all error conditions gracefully.
      
      2000-09-10  Jeffrey Stedfast  <fejj@helixcode.com>
      
      	* gdk-pixbuf/io-pnm.c: Rewrote.
      
      2000-09-09  Federico Mena Quintero  <federico@helixcode.com>
      
      	* gdk-pixbuf/pixops/pixops.c (pixops_composite_nearest): Compute
      	the correct dest offset.
      
      2000-08-25  Federico Mena Quintero  <federico@helixcode.com>
      
      	* gdk-pixbuf/io-xpm.c: #include <unistd.h>
      
      2000-08-05  Larry Ewing  <lewing@helixcode.com>
      
      	* gdk-pixbuf/io-tiff.c: stop leaking context->tempname.
      
      	* gdk-pixbuf/io-xpm.c: same as above.
      
      2000-07-26  Michael Meeks  <michael@helixcode.com>
      
      	* gdk-pixbuf/io-jpeg.c (gdk_pixbuf__jpeg_image_load): make
      	g_malloc a malloc.
      
      2000-07-21  Larry Ewing  <lewing@helixcode.com>
      
      	* gdk-pixbuf/io-xpm.c: add a fake progressive loader so that
      	xpm at least supports the progressive interface like the one in
      	io-tiff.c. This should be reimplemented as an actual progressive
      	loader.
      
      2000-07-19  Jonathan Blandford  <jrb@redhat.com>
      
      	* demo/pixbuf-demo.c (update_timeout): changed scaling level to
      	make it look better.
      	* gdk-pixbuf/testpixbuf.c (update_timeout): Patch from michael
      	meeks to handle errors better.
      518f32d9
  13. 04 Oct, 2000 3 commits
    • Jonathan Blandford's avatar
      Fix obvious bug in circle drawing. · 76806e9a
      Jonathan Blandford authored
      2000-10-04  Jonathan Blandford  <jrb@redhat.com>
      
      	* gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
      	drawing.
      76806e9a
    • Owen Taylor's avatar
      Move list pointer forwards before removing item from list. (Crash reported · 468689e3
      Owen Taylor authored
      Wed Oct  4 15:52:15 2000    <otaylor@redhat.com>
      
      	* gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
      	Move list pointer forwards before removing item from
      	list. (Crash reported by Salmaso Raffaele)
      
      	* gdk/gdkwindow.h: Remove spurious trailing ,
      
      	* gdk/Makefile.am (LDFLAGS): You can't do interlibrary
      	dependencies on uninstalled libraries, sorry folks.
      468689e3
    • Owen Taylor's avatar
      Add gdk_window_iconify. · 0d158864
      Owen Taylor authored
      Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
      	Add gdk_window_iconify.
      
      	* gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
      	(gdk_window_set_geometry_hints): Add win_gravity
      	to geometry structure.
      
      	* gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
      	Implement _NET_WM_PING.
      
      	* gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
      	Set _NET_WM_PID on the client leader.
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
      	Handle UTF-8 better.
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
      	UTF-8 better, set _NET_WM_NAME as well. Only set
      	icon name if it hasn't previously been explicitely
      	set.
      0d158864
  14. 03 Oct, 2000 1 commit
    • Tor Lillqvist's avatar
      Guard definition of alloca(). glib.h now handles that. · 69ac9451
      Tor Lillqvist authored
      2000-10-03  Tor Lillqvist  <tml@iki.fi>
      
      	* config.h.win32: Guard definition of alloca(). glib.h now handles
      	that.
      
      	* gdk/gdk.def
      	* gtk/gtk.def: Add new entry points.
      
      	Changes just to make GTK+ build without errors on Win32. No hope
      	of it working in its current state, though...:
      
      	* gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
      	some functions from the X11 backend, just to make GTK+ build.
      
      	* gdk/makefile.mingw.in
      	* gtk/makefile.mingw.in: Use correct gdk_pixbuf version
      	number. Add new object files.
      
      	* gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
      	GetMessageTime to get timestamp (where on X11 uses
      	gdk_x11_get_server_time()).
      69ac9451
  15. 14 Sep, 2000 1 commit
    • Owen Taylor's avatar
      Remove g_convert (moved to glib) and now useless utf_to_latin1() · 39339f14
      Owen Taylor authored
      Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
      	glib) and now useless utf_to_latin1() latin1_to_utf()
      
      	* gtk/gtktextview.[ch]: Change ::move_insert and
      	::delete_text action signals to ::move and ::delete;
      	create the signals with the right enumeration type,
      	not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
      	C-v bindings, change Home, End to move to beginning/end
      	of line, Add C-Home C-End to move to beginning/end
      	of buffer. Change ::cut_text to ::cut_clipboard, etc;
      	combine ::scroll_text into ::move; use new GtkSelectionData
      	functions to simplify DND text handling.
      
      	* gtk/gtkenums.h gtk/gtktextview.h: Move movement,
      	deletion enumerations here, rename enumeration values to
      	be consistently plural.
      
      	* gtk/gtktextbuffer.c: Use new clipboard interfaces
      	for cut/copy/paste and primary selection.
      
      	* gtk/gtktextbuffer.[ch]: Remove excess time and
      	'interactive' arguments from cut/copy/paste;
      	rename cut to cut_clipboard, etc; remove
      	gtk_text_buffer_get_clipboard_contents().
      
      	* gtk/gtktextlayout.[ch]: Add
      	gtk_text_layout_move_iter_to_line_end() to move	the iter to
      	line ends.
      
      	* gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
      	Functions to set or get a UTF-8 string on the selection
      	data.
      
      	* gtk/gtkclipboard.[ch]: New, simplified selection handling
      	interfaces.
      
      	* gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
      	created widgets - one of these is useless if we don't.
      
      	* gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
      	a public function clear all targets registered for the
      	widget.
      
      	* gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
      	Never call gtk_widget_realize() - that was just asking
      	for bizarre side-effects.
      
      	* gtk/gtkselection.c (gtk_selection_owner_set): Call
      	gdk_selection_owner_set even if the widget is the
      	same so that we reliably update the timestamp on
      	the server.
      
      	* gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a
      	gdk_x11_get_server_time() function.
      
      	* gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
      	gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
      	Add some tricky filtering on serial numbers for
      	selection clear events to fix up long-standard
      	race condition FIXME's in gtkselection.c.
      
      	* gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
      	routines to convert from utf8 to compound text or
      	STRING and from a text property to UTF-8.
      
      	* gtk/gtkmain.[ch] (gtk_get_current_event_time): Add
      	a convenience function gdk_get_current_event_time().
      
      	* gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
      	and free selection_data->data properly
      39339f14
  16. 07 Sep, 2000 3 commits
    • Tor Lillqvist's avatar
      Oops, cut&paste error. · 7e928a4b
      Tor Lillqvist authored
      7e928a4b
    • Tor Lillqvist's avatar
      Use -Wall. Add gdkpango-win32.o · 6ffe1dcf
      Tor Lillqvist authored
      2000-09-07  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
      
      	* gdk/win32/gdkwin32.h: Add more definitions missing from the free
      	w32api headers.
      
      	* gdk/win32/gdkprivate-win32.h: Add a couple of missing
      	declarations.
      
      	* gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
      	(gdk_win32_get_colormap): A line had been deleted by mistake.
      
      	* gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
      	(gdk_event_translate): Handle more virtual keycodes to be able to
      	generate GDK events for Control-comma, Control-period, etc.
      
      	* gtk/gtk.def: Add some missing entry points.
      
      2000-09-07  Tor Lillqvist  <tml@iki.fi>
      
      	* makefile.mingw.in: Use own version number for gdk-pixbuf DLLs,
      	like on Unix.
      6ffe1dcf
    • Owen Taylor's avatar
      Doc comment fixing. (Mostly non-matching parameter names.) · 21b53897
      Owen Taylor authored
      Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
      	Doc comment fixing. (Mostly non-matching parameter names.)
      
      	* gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
      	comments a little to avoid looking like a doc comment.
      
      	* gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
      	GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
      	conversions be changed to GError?)
      
      	* gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT):
      	Move private #defines into .c file.
      
      	* gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
      	order of argument addition, remove duplicates.
      
      	* gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
      	parent class is FrameClass, not BinClass.
      
      	* gtk/gtk.h: Add gtkinvisible, which was missing.
      	(It's occasionalyl useful for client apps, if seldom.)
      
      	* gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
      	#define.
      21b53897
  17. 05 Sep, 2000 1 commit
  18. 04 Sep, 2000 1 commit
  19. 01 Sep, 2000 1 commit
    • Owen Taylor's avatar
      Fix bug where moving a toplevel window immediately after sizing it would · 6e3a2369
      Owen Taylor authored
      Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
      	moving a toplevel window immediately after sizing it would
      	result in it being sized back to the old size since
      	impl->width, impl->height aren't updated until we hear
      	back from the server. There is still a (longstanding) bug
      	here that gdk_window_get_size() will give the wrong size
      	until we do hear back.
      6e3a2369
  20. 31 Aug, 2000 1 commit
  21. 30 Aug, 2000 1 commit
  22. 23 Aug, 2000 1 commit
    • Elliot Lee's avatar
      Try to fix a bug where a window move, with a non-rectangular region · 3c816192
      Elliot Lee authored
      
      
      Try to fix a bug where a window move, with a non-rectangular region unobstructed, would cause
      pieces of the window to be moved twice. Effectively, sort of implement a
      gdk_draw_drawable_region(drawable, gc, drawable, region, dx, dy);
      
      Am going blind trying to find the off-by-one thing, especially since it doesn't happen except for
      the preview tests. Still not fixed, have at it.
      3c816192
  23. 19 Aug, 2000 1 commit
    • Tor Lillqvist's avatar
      gdk/gdkimage.h No need any longer on Win32 for the shared memory · 617e17da
      Tor Lillqvist authored
      2000-08-20  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/gdkimage.h
      	* gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
      	shared memory image+pixmap GdkImage type, or
      	gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
      	I am dropping that.
      
      	* gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
      	actually call gtk_init_abi_check(), passing also
      	sizeof(GtkWindow). Ditto for gtk_init_check().
      
      	* gtk/gtk.def
      	* gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
      	New functions, used to check that the GTK+-using code has been
      	compiled using the correct compiler and switches. In particular,
      	with gcc one has to use the -fnative-struct switch as GTK+ is
      	compiled with that.
      617e17da
  24. 18 Aug, 2000 1 commit
  25. 12 Aug, 2000 1 commit
    • Tor Lillqvist's avatar
      gdk/gdk.def Add missing entries. · e0833cd5
      Tor Lillqvist authored
      2000-08-12  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/gdk.def
      	* gtk/gtk.def: Add missing entries.
      
      	* gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
      	OUT_TT_ONLY_PRECIS, try to get a TrueType font.
      
      	* gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
      	function. Dummy implementation at this point.
      
      	* gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
      	rules. Undefine GTK_COMPILATION when compiling the test programs.
      
      	* gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
      
      	* gdk_pixbuf.def: Add missing entry point.
      e0833cd5
  26. 11 Aug, 2000 1 commit
    • Havoc Pennington's avatar
      Change the format of the snapshot version to match glib · fcc95150
      Havoc Pennington authored
      2000-08-10  Havoc Pennington  <hp@redhat.com>
      
      * Makefile.am (snapshot): Change the format of the snapshot
      version to match glib
      
      * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
      from EXTRA_DIST since it doesn't seem to exist
      
      2000-08-10  Havoc Pennington  <hp@redhat.com>
      
      * Makefile.am (EXTRA_DIST): The *.def files had the wrong names
      (s/pixbuf_/pixbufloader_)
      fcc95150