1. 06 Aug, 2001 1 commit
    • Havoc Pennington's avatar
      The whole GDK_IS_WINDOW() branch of this was a bit screwed up, because it · a4be7d83
      Havoc Pennington authored
      2001-08-06  Havoc Pennington  <hp@pobox.com>
      
       	* gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole
       	GDK_IS_WINDOW() branch of this was a bit screwed up, because
       	it was expecting a GdkWindow, not a GdkWindowImplX11.
      
       	Also, we were getting the window rect in screen coords
       	and the screen rect in window coords then intersecting
       	them; instead, get window rect in window coords.
      
       	Finally, there were codepaths that resulted in a stuck server grab
       	(when the window was fully onscreen, or on gdk_image_new()
       	failure); make the server ungrab thing a bit more
       	robust/consistent.
      a4be7d83
  2. 23 Jul, 2001 1 commit
    • Ron Steinke's avatar
      Added a check on the colormap depth to gdk_drawable_set_colormap() · 9cfd92ef
      Ron Steinke authored
      
              * gdk/gdkdraw.c: Added a check on the colormap depth to
              gdk_drawable_set_colormap()
              * gdk/x11/gdkimage-x11.c: combination of Mathias Hasselmann's
              patch to fix colorsel and my patch to fix gdk_drawable_get_image()
              for pixmaps without visuals (more specifically, bitmaps)
              * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
              doesn't set a colormap with the wrong depth
      9cfd92ef
  3. 29 Jun, 2001 1 commit
    • Havoc Pennington's avatar
      Clip the retrieved image data to the screen, using a server grab to avoid · 0bee26c7
      Havoc Pennington authored
      2001-06-28  Havoc Pennington  <hp@pobox.com>
      
      	* gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
      	image data to the screen, using a server grab to avoid race
      	conditions.
      
      	* gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove
      	check for NULL return from gtk_image_new_from_stock(), it never
      	returns NULL.
      	(gtk_item_factory_create_item): fix bug where we parsed the stock
      	ID as an inline pixbuf
      
      	* gtk/gtktext.c (gtk_text_key_press): numeric keypad support
      
      	* gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
      	support (should be using binding set here)
      
      	* gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
      	support (should be using binding set here)
      
      	* gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad
      	support
      
      	* gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
      
      	* gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
      
      	* gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
      
      	* gtk/gtkimcontextsimple.c
      	(gtk_im_context_simple_filter_keypress): keypad
      
      	* gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad
      
      	* gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
      
      	* gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
      
      	* gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
      	should be binding-setted)
      
      	* gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
      
      	* gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
      
      	* gtk/gtkcalendar.c: numeric keypad fixes
      
      	* gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
      	support
      
      	* gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
      	screwup
      
      	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
      	clip the render area to the drawable's clip region in advance,
      	so we don't get data from the server that we don't need.
      
      	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
      	check return value of gdk_pixbuf_get_from_drawable(), fall back
      	to bilevel alpha if we can't get the pixbuf to composite against.
      
      	* gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
      
      	* gdk/gdkimage.c (gdk_image_get_colormap): add
      	gdk_image_set_colormap, gdk_image_get_colormap
      
      	* gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
      	take a region of the image, instead of converting the entire
      	image.
      
      	* gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
      	keybinding signal. Add default bindings for it. Add default
      	handler for show_help that shows the tooltip for the widget.
      
      	* gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
      	"close" keybinding signal, remove key press handler.
      
      	* gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
      	it's not our usual practice to leave a deprecated function around
      	with a runtime warning, plus we don't want it to appear in docs,
      	plus if we make them yellow no one will want to change them
      	anyhow.
      0bee26c7
  4. 24 Jun, 2001 1 commit
    • Owen Taylor's avatar
      Fix stupid error introduced last night that was making things decidedly · cc223eef
      Owen Taylor authored
      Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
      	introduced last night that was making things decidedly not work.
      
      	* gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
      	so that we have getter/setter pairing everywhere it makes
      	sense. (#55767)
      
      	* gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
      	Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
      	deprecated compat macro. (#55516)
      
      	* gtk/gtklabel.[ch]: Add functions
      	gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
      	gtk_label_set_label(), which mirror the property API for GtkLabel.
      	Make gtk_label_get_attributes() only reflect the attributes
      	set by gtk_label_set_attributes.
      
      	* gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
      	from gtk_notebook_set_page().
      cc223eef
  5. 23 Jun, 2001 2 commits
    • Owen Taylor's avatar
      Fix tests for XShm.h. · 5a5580a8
      Owen Taylor authored
      Sat Jun 23 18:02:46 2001  Owen Taylor  <otaylor@redhat.com>
      
              * configure.in: Fix tests for XShm.h.
      
              * gdk/x11/gdkimage-x11.c: Cleanup error handling in
              gdk_image_new() by use of goto, properly use g_object_unref().
      5a5580a8
    • Tim Janik's avatar
      disabled g_free (image) calls, as GdkImage is an object. these should be · 92e87e40
      Tim Janik authored
      Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
      
              * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
              calls, as GdkImage is an object. these should be g_obejct_unref()
              instead but that won't work because of the g_error() statement
              in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
              to spot these places.
      92e87e40
  6. 18 Apr, 2001 1 commit
    • Owen Taylor's avatar
      Try changing mode on shm segments to 0600. We'll see who complains. · 6cff7051
      Owen Taylor authored
      Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
      	mode on shm segments to 0600. We'll see who complains.
      
      	* gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
      	_gdk_windowing_window_destroy() AFTER recursing through
      	children.
      
      	* tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
      	testsocket_child on X.
      
      	* tests/testsocket[_child].c: Fix uses of
      	gtk_window_get_default_accel_group().
      
      	[ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
      
      	* gdk/gdkimage.c: (gdk_image_get):
      	Deal with the possibility that XGetImage() might return NULL.
      	Allocate the GdkImagePrivate structure only after XGetImage()
      	succeeds in order not to dereference a NULL ximage pointer.  This
      	prevents a core dump when XGetImage() fails - which is unlikely,
      	but can happen due to race conditions accessing the geometries of
      	drawables.  An x error will still be triggered, but the gdk image
      	wrapper at least wont seg fault.
      6cff7051
  7. 02 Mar, 2001 1 commit
    • Owen Taylor's avatar
      Patch from ChiDeok Hwang to move call to sync_selection() up a few lines · b0052ec8
      Owen Taylor authored
      Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
      	Hwang to move call to sync_selection() up a few lines
      	to before the row list is modified, to fix crash when
      	removing rows in the undo_selection list.
      
      	(Test case provided by Daniel Elstner:
      
              http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
      
      Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktree.c (gtk_tree_class_init): Do the setting
      	of tree->root_tree in parent_set rather than _map(),
      	fixing #50892 in a bit better manner.
      
      Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
      
      Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
      
      	* gtk/gtkstyle.c : Remove duplicate fwd decl for
      	gtk_default_draw_shadow.
      
      ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkimage.c (gdk_image_new): Remove excess
      	warning, make warnings more verbose, treat a error
      	in shmat as permanent, and don't try again.
      	(#51163, Ed Randall.)
      
      Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
      	delay for the first click before starting to scroll.
      	(based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
      
      	* gtk/gtktext.c: GtkText should have I-beam cursor.
      	(based on gtk-enf-990513-1.patch, Eric Fisher.)
      
      Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
      	cleanup to remove some references to unused
      	->xoffset, ->yoffset.
      
      Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
      	mask. (#51039, fix from Martin Maierhofer)
      
      Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
      	for unshifted + and shifted = for non-us keyboards.
      	Make <Control>+ and <Control>- work as well as
      	<Control>KP_Plus, <Control>KP_Minus for recursive
      	open/close.  (#2682, Ren Seindal)
      
      Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
      	the active menu item before deactivating the menu,
      	so gtk_menu_popdown doesn't change the history. (#50964)
      
      Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktreeitem.c (gtk_tree_item_draw_lines):
      	draw lines with text_gc rather than black_gc.
      	(Patch from Vlad Harchev <hvv hippo ru>, #50926)
      b0052ec8
  8. 03 Feb, 2001 1 commit
    • Owen Taylor's avatar
      Remove confusing comment about X11. · d3e4e592
      Owen Taylor authored
      Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* configure.in: Remove confusing comment about X11.
      
      Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
      	regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
      
      Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
      	it breaks things on BSD. If you want to compile GTK+ with
      	-ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE
      	when configuring, since GTK+ simply can't be "pure ANSI"
      	in the header files it uses. (#8170, Greg Hudson)
      d3e4e592
  9. 02 Feb, 2001 1 commit
    • Owen Taylor's avatar
      Make gdk_colormap_sync private since it was never exported in a header · a2d12994
      Owen Taylor authored
      Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
      	gdk_colormap_sync private since it was never exported
      	in a header file.
      
      	* gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
      	colormap->colors[] for StaticGray, StaticColor colormaps.
      
      	* gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
      	was being used as if it was image->bits_per_pixel.
      
      	* gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
      	for the image in the GdkImage structure since it isn't
      	reconstructable, and we need it to handle packed types
      
      	* gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
      	the assumption that on Win32 image->bits_per_pixel == image->depth,
      	always.
      
      	* gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
      
      	* gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
      	warning message if no converter can be found.
      a2d12994
  10. 25 Oct, 2000 1 commit
    • 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
  11. 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
  12. 31 Aug, 2000 1 commit
  13. 26 Jul, 2000 1 commit
  14. 11 Jul, 2000 1 commit
    • Tim Janik's avatar
      add xthickness and ythickness to GtkRcStyle and add the necessary tokens. · 64911ddc
      Tim Janik authored
      Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
              add the necessary tokens.
      
              * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
              (gtk_rc_style_to_style): copy thicknesses.
              (gtk_rc_init_style): apply thicknesses.
              (gtk_rc_parse_style): parse xthickness and ythickness.
      
              * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
      
              * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new):
              (gdk_window_new):
              (_gdk_windowing_window_init):
              * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new):
              (gdk_pixmap_create_from_data):
              (gdk_bitmap_create_from_data):
              (gdk_pixmap_new):
              * gdk/x11/gdkimage-x11.c (gdk_image_get):
              (gdk_image_new):
              * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new):
              * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new):
              * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
              (gdk_colormap_get_system):
              (gdk_colormap_new):
              * gdk/gdkwindow.c (gdk_window_init):
              * gtk/gtkstyle.c (gtk_style_new):
              * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
              * gdk/gdkpixmap.c (gdk_pixmap_init):
              * gtk/gtkrc.c (gtk_rc_style_new):
              use g_object_new() instead of g_type_create_instance() which
              is a private function for fundamental type implementations.
      
      Tue Jul 11 06:20:14 2000  Tim Janik  <timj@gtk.org>
      
              * io-gif.c (gdk_pixbuf__gif_image_load_animation):
              * gdk-pixbuf-data.c (gdk_pixbuf_new_from_data):
              * gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file):
              use g_object_new() instead of g_type_create_instance() which
              is a private function for fundamental type implementations.
      64911ddc
  15. 26 Jun, 2000 1 commit
    • Owen Taylor's avatar
      If possible, create only a single shm segment and use multiple parts of it · 2bb4bcff
      Owen Taylor authored
      Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkrgb.c: If possible, create only a single shm segment and
      	use multiple parts of it instead of creating a bunch of separate
      	segments, since the maximum number of segments per system is not
      	large. (This might be worth backporting to GTK+-1.2.x if we make a
      	new release )
      
      	* gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
      	structure in preparation for per-colormap GdkRGB.
      
      	* gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
      	to False when we get EINVAL from shmget so that the caller of
      	gdk_image_new can retry with a smaller segment size.
      2bb4bcff
  16. 20 Jun, 2000 1 commit
    • Havoc Pennington's avatar
      Make this compile without framebuffer enabled · df4fc367
      Havoc Pennington authored
      2000-06-20  Havoc Pennington  <hp@redhat.com>
      
      * modules/linux-fb/Makefile.am: Make this compile
      without framebuffer enabled
      
      * gdk/linux-fb/Makefile.am: Add conditional to not build
      framebuffer unless specified in configure
      
      * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
      the size of the target instead of source if -1 was passed for
      width/height
      
      * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix
      width/height confusion.
      
      2000-06-19  Havoc Pennington  <hp@redhat.com>
      
      * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
      GDK_DRAWABLE_XID. In the future, we probably want to make it
      faster with G_DISABLE_CHECKS turned on.
      
      2000-06-14  Havoc Pennington  <hp@redhat.com>
      
              * gdk/Makefile.am: add gdkpixmap.c
      
      	* gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
      	s/gdk_image_init/_gdk_windowing_image_init
      
      	* gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
      	ref/unref
      
      	* gdk/gdkcolor.h: make GdkColormap a GObject subclass
      
      	* gdk/gdkcompat.h: remove GdkWindowType compat, since
      	GdkWindowType is now non-deprecated;
      	change gdk_window_get_type() compat to be
      	gdk_window_get_window_type().
      
      	* gdk/gdkdnd.h: make GdkDragContext a GObject.
      
      	* gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
      	virtual GObject. Make all functions call into the vtable.
      	Move gdk_image_put() guts in here. Remove GdkDrawableType
      	and gdk_drawable_get_type(), these are now GdkWindow-specific.
      	draw_image, get_depth, get_size, set_colormap, get_colormap,
      	get_visual added to the vtable.
      
      	* gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual
      	GObject. Virtualize everything.
      	(gdk_gc_new_with_values): remove check for destroyed window,
      	because now GdkWindow::create_gc will check this.
      	(gdk_gc_set_values): New function to set GC values, this
      	was already implemented but wasn't in the header
      
      	* gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
      
      	* gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
      	_gdk_window_draw_image(), remove _gdk_windowing_window_class,
      	remove _gdk_window_class; add _gdk_window_impl_get_type() and
      	_gdk_pixmap_impl_get_type(). Rename gdk_window_init to
      	_gdk_windowing_window_init, rename gdk_image_init to
      	_gdk_windowing_image_init.
      
      	* gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
      	(gdk_draw_layout): Remove check for destroyed window,
      	because all the drawable methods already check it.
      
      	* gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
      	Add gdkpixmap.c which contains implementation of GdkDrawable
      	virtual table (by chaining to a platform-specific implementation
      	object).
      
      	* gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP,
      	GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
      	GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
      	GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
      	GdkColormapPrivate.
      
      	* gdk/gdktypes.h: #include <glib-object.h>
      
      	* gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
      	Move most functionality to platform-specific implementation
      	object. GdkWindow itself now handles the backing store, then
      	chains to the platform-specific implementation.
      	(gdk_window_get_window_type): return GdkWindowType of the window.
      	(gdk_window_peek_children): New routine, returns the children of
      	a GdkWindow
      	(gdk_window_get_children): Was in X11-specific code and did
      	XQueryTree. Changed to simply return a copy of window->children;
      	so it can go in cross-platform code.
      
      	* gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
      
      	* gdk/x11/gdkcolor-x11.c: implement X-specific parts of
      	GdkColormap; just changed to use the new private data instead
      	of casting to GdkColormapPrivate.
      
      	* gdk/x11/gdkcursor-x11.c: added a couple typechecks to
      	gdk_cursor_new().
      
      	* gdk/x11/gdkdnd-x11.c: Change the way we access private fields
      	(private data member in the GObject).
      	(xdnd_manager_source_filter): Function had broken
      	error handling, fix it (use gdk_error_trap_push).
      
      	* gdk/x11/gdkdrawable-x11.c: This file now implements
      	a base class for GdkWindowImplX11/GdkPixmapImplX11. This
      	base class is purely for the convenience of the X port,
      	and not part of the interface to cross-platform GDK.
      
      	* gdk/x11/gdkevents-x11.c: Reflect various renamings.
      
      	* gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
      	specific to X, and returned by the create_gc virtual method
      	of GdkDrawableImplX11.
      	(gdk_x11_gc_set_dashes): Change this to take an array of gint8
      	rather than gchar, this was also changed in the GdkGC vtable.
      	(gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
      	mask is 0, return immediately, instead of checking every flag.
      	This is faster, and keeps us from segfaulting if values is NULL
      	and the mask contains some nonzero flags.
      
      	* gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
      	GdkWindow.
      
      	* gdk/x11/gdkglobals-x11.c: change type of grab window, since
      	GdkWindowPrivate is gone.
      
      	* gdk/x11/gdkim-x11.c: rename things that got renamed.
      
      	* gdk/x11/gdkimage-x11.c: implement in terms of GObject, and
      	remove the image_put stuff that got transferred to GdkDrawable.
      
      	* gdk/x11/gdkinput.c: renamings
      
      	* gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
      
      	* gdk/x11/gdkpixmap-x11.c: GObject conversion
      
      	* gdk/x11/gdkprivate-x11.h: indentation fixes
      
      	* gdk/x11/gdkproperty-x11.c: renamings
      
      	* gdk/x11/gdkselection-x11.c: renamings
      
      	* gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now
      	implements the platform-specific "impl" object.
      	Moved gdk_window_get_children to gdk/gdkwindow.c
      
      	* gdk/x11/gdkx.h: Remove all the private structs and private datas
      	that no longer exist. Add declaration of GdkGCX11 object here.
      	Fix all the macros to still work.
      
      	* gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
      	GdkDragContext from the boxed types since they are now GObjects.
      
      	* gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
      	moved xthickness/ythickness into the instance. GtkStyleClass
      	functions are now in the standard vtable for GtkStyle, so you have
      	to create a GObject subclass to write a theme engine.
      	(gtk_style_copy): fixed a leaked PangoFontDescription
      	(gtk_style_init): renamed gtk_style_realize, so gtk_style_init
      	can be the standard GObject function.
      
      	* Throughout GTK:
      	s/style->klass->[xy]thickness/style->[xy]thickness
      	s/pango_layout_unref/g_object_unref/
      
      	* gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
      
      	* gtk/gtksocket.c: Use gdk_window_get_user_data() instead of
      	accessing GDK internals.
      
      	* gtk/gtkwidget.c: Use gdk_window_peek_children() instead of
      	accessing GDK internals.
      df4fc367
  17. 28 Mar, 2000 1 commit
  18. 08 Nov, 1999 1 commit
    • Owen Taylor's avatar
      Move all X specific code into the x11/ directory. Aside from shuffling · e9b6bfcc
      Owen Taylor authored
      Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
      
      	Move all X specific code into the x11/ directory.
      	Aside from shuffling things around, did the following:
      
             * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
      	 gdk_arg_context_* - a simple argument parsing system
      	 in the style of popt.
      
             * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
      	 gdk/x11/gdkprivate-x11.h:
      	 Remove X specific stuff from GdkDrawable and GdkWindowPrivate -
      	 add ->klass and ->klass_data fields. The klass_data
      	 field points to an auxilliary structure that is
      	 windowing system dependent.
      
             * gdk/gdkfont.c: Make most of the measurement functions
      	 simply wrappers around gdk_text_extents().
      
             * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a
      	 _gdk_font_strlen() function that hides the weird
      	 behavior in gtk+-1.[02] where a string is interpreted
      	 differently for 8-bit and 16-bit fonts.
      
             * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
      	 to store common code for synthesizing double/triple
      	 press events.
      
             * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
      	 Make all the function that modify an existing GC
      	 simply wrappers around gdk_gc_set_values().
      
             * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
      	 for throwing out later.
      
             * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
      	 GdkImagePrivate and GdkColormapPrivate to have a
      	 windowing system dependent part (GdkFontPrivateX etc.)
      	 that "derives" from the system-independent part.
      
             * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
      	 Got rid of the included-source-files for XInput in
      	 favor of automake conditionals. (Which didn't exist
      	 when XInput support was originally added.)
      
             * gdk/gdkrgb.c: Remove the visual id from the debugging
      	 statements since that is X11 specific; print out
      	 type/depth info instead.
      e9b6bfcc
  19. 03 Oct, 1999 1 commit
    • Owen Taylor's avatar
      Fix a reference to window_private->destroyed. · f903bdf1
      Owen Taylor authored
      Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c (gtk_reset_shapes_recurse):
      	Fix a reference to window_private->destroyed.
      
      	* gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
      	(ugly) setting of an internal GdkWindow member to use
      	a _slightly_ cleaner macro.
      
      	* gdk/gdkprivate.h: Split GdkWindowPrivate into
      	GdkDrawablePrivate and GdkWindowPrivate.
      	Add extra macros for accessing GDK_DRAWABLE_ components.
      
      	* *.[ch]: Massive adjustments for the above, use the
      	new macros in a lot of places.
      f903bdf1
  20. 01 Oct, 1999 1 commit
    • Owen Taylor's avatar
      Started · 637a466d
      Owen Taylor authored
      Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
      
              * docs/Changes-1.4.txt: Started
      
      	* gtk/Makefile.am (gdk_headers): Include all the new headers.
      
              * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
      
      	* gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
      	into C file.
      
      	* gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
      	header to gdkinputprivate.h.
      
      	* gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
      	unused since before 1.2.
      637a466d
  21. 28 Sep, 1999 1 commit
    • Federico Mena Quintero's avatar
      [ Merges from gtk-1-2 ] · 95b3f3e4
      Federico Mena Quintero authored
      Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
      
      	* configure.in: fixed "GNU Make" check to pass with new make version
      	3.77.95.
      
      Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
      
      	* gtk-config.in (--version): don't echo @GTK_VERSION@, but
      	@GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
      	AM_PATH_GTK() macros don't get confused by the -pre1.
      
      Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* configure.in (REBUILD): Change check for perl5
      	  to check explicitely for v >= 5.002. (5.001
      	  does not work with our scripts.)
      
      Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
      
      	* configure.in: evaluate $PERL for the perl version check. added
      	--disable-rebuilds to give the user an option to completely disable
      	any source autogeneration rules.
      
      Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
      
      	* configure.in: evaluate $ac_make when checking for GNU Make.
      
      Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
      
      	* docs/Makefile.am: added generation.txt.
      
      	* Makefile.am: require automake 1.4, build README from README.in and
      	INSTALL from INSTALL.in in dist-hook.
      
      	* README.in:
      	* INSTALL.in: new files to autogenerate README and INSTALL from.
      
      	* configure.in: figure whether we have GNU Make
      
      	* docs/generation.txt: minor additions/corrections.
      
      Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
      
      	* docs/gtkfaq.sgml: FAQ Update
      
      July 30, 1999 Elliot Lee <sopwith@redhat.com>
      
      	* configure.in: Fix autoconf warnings about cross compilation by
      	trying to provide sane defaults for AC_TRY_RUN.
      
      Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
      
      	* ltconfig
      	* ltmain.sh: upgrade to libtool 1.3.3
      
      Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* INSTALL: Indicate that the --with-glib= configure
      	time flag is unsupported.
      
      Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* docs/generation.txt: Added a file that gives
      	documenation about the autogeneration process for
      	various autogenerated files.
      
      Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* configure.in (LIBS): Look for libgmodule in the
      	right location.
      
      Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* docs/gtk_tut.sgml: Removed references to
      	code examples in my directory on gtk.org as
      	they should all be in the tutorial now.
      
      	* docs/gtk_tut.sgml: Added sources for dial-test
      	and scribble-xinput programs that were previously
      	missing.
      
      Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* TODO: Added entry about menu keyboard navigation, removed
      	some finished items.
      
      Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* acinclude.m4: Standardize on func_dgettext
      	not func_gettext, so that the checks for dgettext
      	actually are paid attention to.
      
      Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* configure.in (LIBS): Add $INTLLIBS into $LIBS
      	directly, rather than repeating the checks for
      	gettext.
      
      	* INSTALL: Added information about gettext and
      	NLS support.
      
      	* acinclude.m4 (LIBM): Check for dgettext, not
      	just gettext. This should hopefully fix things wrt
      	systems with old versions of GNU gettext installed.
      
      Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* configure.in (LIBS): Look for libgmodule in the
      	right location.
      
      Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
      
      	* autogen.sh: add --enable-maintainer-mode
      
      	* configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
      
      Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
      
      	* docs/gtk-config.1.in:
      	  docs/Makefile.am:
      	  configure.in: gtk-config is now generated.
      
      	* docs/gtk-config.1: Removed, now generated.
      
      Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
      
              * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
              handle CreateNotify itself, still put out a debuging message for
              --gdk-debug=events. made the ReparentNotify debugging message more
              verbose.
              wrap xcoords translation for ConfigureEvents into an error trap,
              a destroy event may already be pending, and in that case, the
              actuall coordinate values are not at all critical.
      
      Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkcc.c: Stop leaking the color_hash all over
      	the place. Simplify and improve the logic.
      
      Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
      
      	* gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
      	for prototypes and function implementations consistent (reported
      	by Tomas Ogren).
      
      Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
      
      	* gdk/gdkevents.c (gdk_event_translate): tell if expose events have
      	send_event set in debugging output.
      	(gdk_compress_exposures): default initialize the event so we don't
      	operate on bogus values (namely send_event).
      
      Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkwindow.c: When we receive an unexpected
      	destroy notify on one of our windows, don't just
      	warn about it, also mark our windows as destroyed.
      
      Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkfont.c (gdk_font_hash_insert): Add
      	  name => font and name => fontset hashes. The
      	  name => fontset hash is a _big_ win since we
      	  weren't previously caching fontsets at all and loading
      	  fontsets is expensive. The name => font hash
      	  is less of a win, but it does save us from doing
      	  repeated XQueryFont calls on the same font.
      
      	* gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
      	  list so we can remove font/fontset from hash.
      
      Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkproperty.c (gdk_atom_intern): Remove useless
      	  and slightly confusing test. [ XInternAtom (,,TRUE)
      	  will never return None ].
      
      Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkwindow.c (gdk_window_set_geometry_hints)
      	  gdk/gdkwindow.c (gdk_window_set_hints):
      
      	Don't omit setting the properties if flags == 0 -
      	there may be an existing set of properties there
      	already. (Very old bug. Would it be better to
      	delete the property instead?)
      
      	* gdk/gdkselection.c (gdk_selection_property_get): Fix
      	  spelling error in comment.
      
      Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
      	  to avoid stomping over gdk_error_warnings.
      
      	* gdk/gdkimage.c (gdk_image_new): compute image->bpp
      	  as (bits_per_pixel + 7) / 8. This gives the same
      	  result as before for multiples of 8, but actually
      	  a "reasonable" value for 1bit or 4bit displays.
      
      Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
      
      	* gdk/Makefile.am: minor cleanups, strip spaces on build rules for
      	GNU Make.
      
      Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
      
      	* gdk/gdkevents.c (gdk_event_translate): give a debugging note when
      	discarding configure events.
      
      1999-08-18  Federico Mena Quintero  <federico@redhat.com>
      
      	* gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
      	refcount is greater than zero.
      
      	* gdk/gdkwindow.c (gdk_window_unref): Likewise.
      
      	* gdk/gdkfont.c (gdk_font_unref): Likewise.
      
      	* gdk/gdkgc.c (gdk_gc_unref): Likewise.
      
      	* gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
      
      Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkproperty.c (gdk_property_get): Fix assumption
      	that format 32 => sizeof(item) == 4. It really is
      	sizeof(long).
      
      Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
      	core dump at all on X IO errors, only core dump
      	if --enable-debug for X errors.
      
      Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
      
      	* gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
      	unknown window:" message. disabled ConfigureNotify discarding code,
      	because it led to events being processed out of order.
      
      Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
      
      	* gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
      
      	* gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
      	we export this function, supress error warnings and don't reset the
      	error code in the first half of this function.
      
      	* gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
      	code (instead of just -1) so gdk_error_trap_pop() reveals something
      	actually informative about the error that happened.
      
      	* gdk/*.c:
      	don't rely on gdk_error_code being -1 if an error occoured, but just
      	gdk_error_code != 0.
      
      Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
      
      	* gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
      	pointer *before* invoking the filter function, so we at least don't
      	crash if a filter is removed that is currently executed. window filters
      	*really* need to be made truely reentrant at some point.
      
      Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
      
      	* gdk/gdkevents.c (gdk_event_translate): print the atom name in the
      	PropertyNotify debug messages.
      
      Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
      
              Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
      
      	* gdk/gdkim.c: Fix cut-and-paste errors for
      	x/y and PreeditAttributes/StatusAttributes.
      
      Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
      	G_MAXINT to 2^16 to alleviate overflow problems in
      	various window managers.
      
      Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkfont.c (gdk_text_measure): Fix the return value
              for fontsets.
      
      Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkwindow.c (gdk_window_set_geometry_hints):
      	Initialize size_hints.x and size_hints.y because kwm
      	brokenly pays attention to them.
      	(Bug #1181 -  Lars Heete <hel@admin.de>)
      
      Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the
      	return value of gdk_list_visuals().
      	(Bug #1193 - Morten Welinder <terra@diku.dk>)
      
      Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
      
      	* gdk/gdkim.c (gdk_im_real_open): cast the return value of
      	XSetIMValues to (void *) when comparing to NULL, to workaround
      	the problem of some compilers barfing since older X headers don't
      	have the prototype for it.
      
      Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
      	for pseudocolor where colormap->colors was double
      	allocated.
      
      	* gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
      	color value in the hash table with the pixel filled
      	in so when we do later hash table lookups, the color
      	value is correct.
      
      Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
      
      	* gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
      	making the call
      
      Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
      	pointed out by Morten Welinder <terra@diku.dk>.
      
      Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
      
      	* gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
      	  default filter from the list
      
      Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
      
      	* gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
      	  default filter from the list
      
      Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
      
      	* gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
      
      	* gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
      	g_strdup_printf instead of calcing the length separately
      
      Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
      	that we don't do in many other places. (Fixing duplicate
      	#include of config.h)
      
      	* gdk/gdkevents.c: include gdkinput.h _after_ config.h.
      	Otherwise, #ifndef XINPUT_NONE check in the latter
      	doesn't work. (Bug #546)
      
      Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
      
      	* gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
      	"None" case insensitive.
      
      Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkselection.c:
      	Add error traps so if the other end of the connection
      	dies, we survive.
      
      Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkdnd.c (gdk_drag_motion): Separate out the
      	dest_xid field into two fields - one for the window
      	to send in messages, one to indicate the last looked
      	up window for caching purposes. This is needed, so
      	that Leave messages get the correct window.
      
      Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
      	Fix warning created by people mucking around
      	with the gsource API.
      
      	* gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
      	Change mapping between GIOCondition and GdkInputCondition
      	to match the way the Linux kernel does it. This should
      	fix problems where closed pipes were no longer signalling
      	GDK_INPUT_READ on systems with a native poll().
      
      Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check
      	explicitly for the string "None" - it is in the XPM
      	spec and some servers treat unknown colors in odd ways
      	(like asking the user!)
      
      Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
      
      	* gdk/gdkevents.c: made "->" into a "." of previous change so
      	it compiles
      
      Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkevents.c (gdk_compress_exposures): Set the
      	window field of the event structure before calling
      	user filters.
      
      1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
      
      	* gdk/gdk.c (gdk_init_check): Use False as the last argument to
      	XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
      
      Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkim.c (gdk_mbstowcs): Free the value of the
      	intermediate text property - prevents major memory
              leak when gdk_use_mb.
      	gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
      
      Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
      
              Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
      	gtk-a-higuti-990322-[0-3]
      
      	* gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
      	sizeof(wchar_t) != sizeof (GdkWChar)
      
      	* configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
      	that was causing -DX_LOCALE not	to work.
      
      	* gtk/gtkrc.c (gtk_rc_init):
      	X_LOCALE will never have LC_MESSAGES defined
      
      	* gdk/gdk.c (gdk_init_check):
      	Remove --xim-preedit and --xim-status from argv properly.
      
      	* gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
      	that the client window is present on the X server
      	before we pass it to the input method.
      
      Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
      	if --display is specified on the command line, than
      	the drag window will not be created on that display.
      
      Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
      	lookups with only_if_exists == TRUE were inserting
      	bogus values into the atom cache.
      
      Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
      
      	* gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
      	then reset it to NULL.
      
      	* gdk/gdkcolor.c:
      	(gdk_colors_free):
      	(gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
      	key for g_hash_table_remove() in both functions, this prevents us
      	from accessing possibly uninitialized portions of a GdkColor structure
      	where we are only interested in its pixel value.
      
      Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
      
      	* gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
      	font hash table, if we have a GdkFontPrivate entry for this font
      	already, simply increment its reference count, provided by Olaf Dietsche
      	<olaf.dietsche+list.gtk@netcologne.de>.
      
      1999-09-21  Tor Lillqvist  <tml@iki.fi>
      95b3f3e4
  22. 17 Mar, 1999 1 commit
    • Tor Lillqvist's avatar
      Merge in Win32 version: Define macro GDKVAR for declaring gdk variables · 0b4d29fd
      Tor Lillqvist authored
      * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
      declaring gdk variables exported/imported from the DLL. New image
      type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
      drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
      GDK_DRAG_PROTO_OLE2.
      
      * gdk/gdk.h: Merge in Win32 version: Two new functions,
      gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
      declared only for the Win32 version, but could be in the X11
      version as well. (Needed for a Xlib-less gdk_imlib.)
      gdk_color_hash should have only one parameter. Declare
      gdk_threads_mutex with GDKVAR.
      
      * gdk/gdkcolor.c (gdk_color_hash): As a hash function should have
      just one parameter.
      
      * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
      per pixel, not bits.
      
      * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
      Fetch bpp (which means bits-per-pixel here) from another place on
      Win32. Accept also depth==32 (which we might get on Win32) with
      bpp==32.
      
      * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
      gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
      gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
      Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
      in the backend-dependent directory, not in the common gdk
      directory.
      
      * gtk/testgtk.c: Ditto. Also, don't use ../gdk patchs to gdk
      headers.
      0b4d29fd
  23. 24 Feb, 1999 1 commit
  24. 02 Jan, 1999 1 commit
    • Jeff Garzik's avatar
      Removed features.h test. · d6890b72
      Jeff Garzik authored
              * configure.in, config.h.in, gdk/gdkimage.c:
              Removed features.h test.
      
              * gdk/gdkdnd.c:
              Guard public functions against NULL pointer derefs.
      d6890b72
  25. 01 Jan, 1999 1 commit
    • Jeff Garzik's avatar
      Check for features.h. · 7433badf
      Jeff Garzik authored
              * configure.in, config.h.in:
              Check for features.h.
      
              * gdk/gdkevents.c (gdk_event_put, gdk_events_queue):
              Fixed bug in linked list append logic by replacing hand-coded
              logic with a call to g_list_append.  Bug found by tml.
      
              * gdk/gdkimage.c:
              'gcc -ansi -pedantic' on GNU/Linux spews warnings and errors
              in sys/ipc.h, including one specific admonishment to use
              _SVID_SOURCE or _XOPEN_SOURCE.  Manually defined the latter, and
              included features.h if present to obtain the necessary
              side-effects.
      
              * gtk/gtkclist.c, gtk/gtkeditable.c:
              Eliminates comma-after-final-element warnings.
      
              * gtk/gtkfontsel.c (gtk_font_selection_init):
              Fixed bug where an intl string was declared as _("x") in
              local var initializer.
      7433badf
  26. 07 Dec, 1998 1 commit
  27. 24 Nov, 1998 1 commit
    • Jeff Garzik's avatar
      Removed DEFS "+=" mess that breaks recent automakes. INCLUDES is the · 91d99f89
      Jeff Garzik authored
      
      * gdk/Makefile.am, gtk/Makefile.am:
      
              Removed DEFS "+=" mess that breaks recent automakes.
              INCLUDES is the correct way to add to CFLAGS from Makefile.am.
      
      * gdk/gdk.c, gdk/gdkglobals.c, gdk/gdkimage.c, gdk/gdkinput.c,
      gdk/gdkpixmap.c, gdk/gdkthreads.c, gdk/gdkwindow.c,
      gdk/gxid_lib.c, gtk/fnmatch.c, gtk/gtkclist.c, gtk/gtkmain.c,
      gtk/testthreads.c:
      
              Include "config.h" instead of "../config.h".
      
              Now that DEFS works again, automake will automatically pass us
              the location of config.h in -I.
      91d99f89
  28. 06 Nov, 1998 1 commit
  29. 18 Oct, 1998 1 commit
    • Owen Taylor's avatar
      Added a modular client-message-filter mechanism, that is used for the DND · f7bcb456
      Owen Taylor authored
      Sun Oct 18 18:16:39 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gdk/gdk.c gdkprivate.h: Added a modular client-message-filter
      	mechanism, that is used for the DND messages.
      
      	  Removed all the old DND code.
      
      	* gdk/gdkcolormap.c gdk/gdkcolormap.h: Add a function to
      	get the visual of a given colormap.
      
      	* gtk/gtkcolorsel.c: Conversion to new DND, drag
      	a color-swatch.
      
      	* gdk/gdk.h gdk/gdkdnd.c: The low-level
      	X oriented portions of drag and drop protocols.
      	Sending and receiving client messages, and navigating
      	window trees.
      
      	* gdk/gdkimage.c: added a gdk_flush() when destroying
      	SHM images to hopefully make it more likely that
              X will gracefully handle the segment being destroyed.
      
      	* gdk/gdkprivate.h gtk/gtkdebug.h: Add new
      	DND debugging flags.
      
      	* gtk/gtkeditable.[ch]: Updates for the selection handling
      	changes.
      
      	* gtk/gtkselection.[ch]: Added GtkTargetList, a
      	refcounted data structure for keeping track of lists
      	of GdkAtom + information. Removed selection_handler_add
      	in favor of a "drag_data_get" signal.
      
      	* gtk/gtkdnd.[ch] gtk/gtk.h: New files - highlevel (event loop
      	dependent) parts of the DND protocols, display of drag icons,
      	drag-under highlighting, and the "default handlers".
      
      	* gtk/gtkinvisible.[ch]: New widget - InputOnly offscreen
      	windows that are used for reliable pointer grabs and
      	selection handling in the DND code.
      
      	* gtk/testdnd.c: New test program for new DND. (Old
      	DND tests in testgtk still need to be converted.)
      
      	* gtk/testselection.c: Use the new selection API.
      
      	* docs/dnd_internals: Start at describing how
      	all the new code works inside.
      
      	* docs/Changes-1.2.txt: New file describing source-incompatible
      	changes in GTK+-1.2.
      
      Sat Oct 17 22:50:34 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gdk/gdkwindow.c (gdk_window_remove_filter): Free
      	the right list node.
      
      	* gdk/gdkwindow.c (gdk_window_init): Add gdk_root_parent
      	to the XID table so we can receive events on it.
      
      Wed Oct 14 12:57:40 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdk.c gdk/gdk.h (gdk_event_get_time): New function
      	to get the timestamp from a generic event.
      
      Fri Oct  9 13:16:04 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c (gtk_widget_add_events): Added function
      	that safely adds additional events to a widget's event
      	mask, even if the widget has previously been realized.
      	(We can do this, but not remove events from the event
      	 mask).
      
      Fri Oct  2 17:35:35 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkproperty.c (gdk_property_get): Allow type == 0,
      	for AnyPropertyType.
      
      Fri Oct  2 10:32:21 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkproperty.c (gdk_atom_intern): Add client-local
      	hashing.
      
      Thu Sep 24 20:33:54 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdk.c (gdk_event_send_clientmessage_toall): serial
      	isn't a timestamp.
      
      Thu Sep 17 14:23:03 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdk.c (gdk_event_translate): Removed printing
      	of unknown window lookup warnings. (Made it
      	a GDK_NOTE) - they happen in many circumstances.
      f7bcb456
  30. 15 Sep, 1998 2 commits
  31. 03 May, 1998 1 commit
    • Owen Taylor's avatar
      configure.in acheader.h gdk/gdkwindow.c Check for Shape extension both on · 4851efe2
      Owen Taylor authored
      Sun May  3 13:38:22 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* configure.in acheader.h gdk/gdkwindow.c
      	Check for Shape extension both on the client and server
      	side. (And, more importantly, check for the shape extension
      	so we may include -lXext even when compiling with --disable-xshm)
      
      	Don't set override_redirect on all shaped windows. It isn't
      	necessary.
      
      	* gdk/gdkwindow.c: Set ->colormap to NULL for root
      	and foreign windows. Use this to check if we
      	need to get the colormap from X.
      
      Fri May  1 22:32:47 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkbutton.c (gtk_button_paint): Draw the areas
      	between the default and the button always in GTK_STATE_NORMAL.
      
      	* gtk/gtkrange.c (gtk_range_style_set): Added a style_set
      	callback.
      
      Fri May  1 16:40:57 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gdk/gdkpixmap.c (gdk_pixmap_colormap_create_from_xpmp[_d]):
      	  Fix a buffer overflow on pixmaps that claim to have
      	  more than 31 characters per pixel.
      
      	  (gdk_pixmap_read_string): Don't wrap around strings longer
       	  than half of address space ;-)
      
      	* gtk/gtk[vh]ruler.c gtk/gtkinputdialog.c: Expand some buffers
      	that were used for printing integers.
      
      	* */* (almost):
      
      	Style: All
      	  int foo () { ... }
      	changed to
      	  int foo (void) { ... }
      
      ^^^^^^^ This is why some many files changed
      
      	Even where there were proper prototypes elsewhere.
      
      	* gdk/gxid.c (handle_claim_device): Some extra checks.
      	It isn't safe against being fed bad X id's, but at
      	least it should be safe against deleting all your
      	files.
      4851efe2
  32. 13 Apr, 1998 1 commit
  33. 20 Feb, 1998 1 commit
  34. 26 Jan, 1998 1 commit
    • Tim Janik's avatar
      added a bunch of checks for window != NULL and private->destroyed. (don't · f734007a
      Tim Janik authored
      Mon Jan 26 02:15:29 1998  Tim Janik  <timj@gimp.org>
      
              * gdk/gdkdraw.c:
              * gdk/gdkgc.c:
              * gdk/gdkimage.c:
              * gdk/gdkinput.c:
              * gdk/gdkpixmap.c:
              * gdk/gdkproperty.c:
              * gdk/gdkselection.c:
              * gdk/gdkwindow.c: added a bunch of checks for window != NULL and
                private->destroyed.
      (don't trust this cvs commit message, i didn't modify that many files!)
      f734007a
  35. 24 Nov, 1997 1 commit