1. 29 Aug, 2001 1 commit
    • Havoc Pennington's avatar
      add default icon · 9df00746
      Havoc Pennington authored
      2001-08-28  Havoc Pennington  <hp@pobox.com>
      
      	* demos/gtk-demo/main.c (setup_default_icon): add default icon
      
      	* gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
      	warning fix
      	(gtk_radio_button_new_with_label): warning fix
      
      	* gtk/gtkdnd.c: used some random GtkImage private structs,
      	update to reflect GtkImage changes
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
      	whether the hint is supported, just always set the icon. A task
      	list might want to use it even if the WM doesn't, and the WM may
      	change over time. Also, XDeleteProperty() if list == NULL.
      
      	* gtk/gtkwindow.c (gtk_window_set_icon_list)
      	(gtk_window_get_icon_list)
      	(gtk_window_set_icon)
      	(gtk_window_get_icon)
      	(gtk_window_set_default_icon_list)
      	(gtk_window_get_default_icon_list):
      	new functions
      
      	* gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
      
      	* gtk/gtkimage.c: Implement property support, bug #59408
      
      	* gtk/gtkcontainer.c (gtk_container_add): make the warning message
      	on reparent-without-removing-first a bit more helpful.
      	Let's just destroy this FAQ.
      9df00746
  2. 25 Jul, 2001 1 commit
    • James Henstridge's avatar
      commiting patch after comments from Alex on IRC · e7093923
      James Henstridge authored
      2001-07-15  James Henstridge  <james@daa.com.au>
      
      	* gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
      	(gtk_window_remove_accel_group): same here.
      	(gtk_window_key_press_event): same here.
      
      	* gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
      	(gtk_widget_remove_accelerator): same here.
      	(gtk_widget_remove_accelerators): same here.
      
      	* gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
      
      	* gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
      	instead of GtkObject.
      
      	* gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
      	now takes GObjects.
      
      	* gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
      	pass a GObject to gtk_accel_group_entries_from_object.
      	(gtk_item_factory_create_item): s/accel_widget/accel_object/
      
      	* gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
      
      	* gtk/gtkaccellabel.c: convert to handle GObject accel objects.
      
      	* gtk/gtkaccellabel.h: fix header to reflect that arbitrary
      	GObjects can have accelerators set now.  Add compatibility
      	defines.
      
      	* gtk/gtkmarshal.list: add missing marshallers.
      
      	* gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
      	accelerators on plain GObjects.  gtk_accel_group_object_destroy
      	has been converted into a weak reference, and
      	gtk_accel_group_delete_entries is now a destroy notify for that
      	piece of data.
      e7093923
  3. 02 Jul, 2001 1 commit
    • James Henstridge's avatar
      same here for PANGO_TYPE_TAB_ARRAY. · 84191d67
      James Henstridge authored
      2001-07-02  James Henstridge  <james@daa.com.au>
      
      	* gtk/gtktextview.c (gtk_text_view_class_init): same here for
      	PANGO_TYPE_TAB_ARRAY.
      
      	* gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
      	for PANGO_TYPE_TAB_ARRAY.
      
      	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
      	s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
      
      	* gtk/gtk-boxed.defs: move all the boxed definitions to the top of
      	the file.  Remove Pango types from defs -- they are now defined in
      	libpango.
      84191d67
  4. 02 Apr, 2001 2 commits
    • Owen Taylor's avatar
      Add GdkEventSetting event for notification of changes to system settings, · b52b326d
      Owen Taylor authored
      Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkevents.h: Add GdkEventSetting event for notification
      	of changes to system settings, gdk_setting_get() to retrieve
      	a single system setting.
      
      	* gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
      	to the draft XSETTINGS mechanism.
      
      	* gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
      	XSETTINGS.
      
      	* gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
      	of GDK settings changes to the GtkSettings object.
      
      	* gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
      	double-click-timeout property to GDK.
      
      	* gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
      	Define GDK boxed types here.
      
      	* gdk/Makefile.am gdk/makeenums.pl: Generate source files
      	gdk/gdkenumtypes.[ch] for enum definitions.
      
      	* gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
      	* gtk/gtk-boxed.defs: Comment out GDK types
      	* gtk/gtktypeutils.h: Remove GDK types
      	* gtk/Makefile.am: No longer scan GDK headers for enumerataions
      b52b326d
    • Owen Taylor's avatar
      Add boxed type for GtkRequistion. Use it for ::size-request. · dac3b3a1
      Owen Taylor authored
      Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
      	Add boxed type for GtkRequistion. Use it for ::size-request.
      
      	* gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
              Add a new GtkBorder structure useful for geometry properties
      	for widgets. Add corresponding GTK_TYPE_BORDER.
      
      	* gtk/gtkwidget.c (gtk_widget_class_install_style_property):
      	Support automatic parser selection like
      	gtk_settings_install_property_parser().
      
      	* gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
      	functionality for use by gtk_widget_class_install_style_property.
      	Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
      
      Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
      	g_param_spec_unichar().
      dac3b3a1
  5. 01 Jan, 2001 1 commit
    • Havoc Pennington's avatar
      uscore-prepend all the stuff in here. · aac55c46
      Havoc Pennington authored
      2001-01-01  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
      
      	* gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for
      	GtkTextAttributes
      
      	* gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug
      	#40246
      	(gtk_text_attributes_copy_values): rename from
      	gtk_text_attributes_copy
      	(gtk_text_attributes_copy): a more standard GTK copy function,
      	which returns a new object
      aac55c46
  6. 14 Dec, 2000 1 commit
    • Havoc Pennington's avatar
      remove unused call to get_last_line() · 94ec8cff
      Havoc Pennington authored
      2000-12-14  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
      	unused call to get_last_line()
      
      	* gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
      	here until boxed is working (and maybe after that - we should
      	really not gratuitously break old code)
      
      	* gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
      	specific types for font_desc and tabs args, move them to
      	GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get
      	fixed. Move GdkColor args to GTK_TYPE_POINTER also.
      
      	* gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
      	use GTK_TYPE_POINTER for signal signatures as a hack-around
      
      	* gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
      	PangoTabArray
      
      	* gtk/gtktextlayout.c (line_display_iter_to_index):
      	make static
      	(line_display_index_to_iter): make static
      
      	* gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
      	to marshal a string not a boxed
      
      	* gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
      
      	* gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
      	since the UTF-8 isn't validated yet
      
      	* gtk/gtktextsegment.c (char_segment_check_func): don't require
      	lines to end in '\n'
      
      	* gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
      	forward_to_delimiters, and grapheme boundaries
      	(gtk_text_view_delete_from_cursor): properly handle non-newline
      	delimiters, and grapheme boundaries
      
      	* gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
      	to gtk_text_iter_forward_to_delimiters, and make it work properly
      	if empty lines end with a character other than '\n'
      
      	* gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
      	position
      94ec8cff
  7. 09 Nov, 2000 1 commit
    • Jonathan Blandford's avatar
      added more fields to allow more interesting iterators. Also, made the · c97d57eb
      Jonathan Blandford authored
      Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
      	allow more interesting iterators.  Also, made the lifecycle of
      	iterators more explicit.
      
      	* gtk/gtktreemodelsort.[ch]: New model for sorting.
      
      	* gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
      	types.
      c97d57eb
  8. 02 Nov, 2000 1 commit
    • Havoc Pennington's avatar
      Use GTK_TYPE_TEXT_ITER and BOXED marshallers · 820e79a4
      Havoc Pennington authored
      2000-11-01  Havoc Pennington  <hp@pobox.com>
      
      * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use
      GTK_TYPE_TEXT_ITER and BOXED marshallers
      
      * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
      
      * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
      
      * gtk/gtk-boxed.defs: add GtkTextIter
      
      * gtk/gtkmarshal.list: Add marshallers for text widget that
      properly use OBJECT and BOXED
      820e79a4
  9. 26 Oct, 2000 1 commit
    • Tim Janik's avatar
      invoke maketypes.awk with LC_ALL=C to avoid localization misbehaviour. · aaee9100
      Tim Janik authored
      Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
      
              * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
              localization misbehaviour.
      
              * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
              a useless type without copy/free.
      
              * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
              of GTK_TYPE_CTREE_NODE.
      aaee9100
  10. 25 Oct, 2000 1 commit
    • Tim Janik's avatar
      use g_value_set_static_{string|boxed} where applicable. · 49631b29
      Tim Janik authored
      Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
      
              * gtk/gtksignal.c:
              (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
              applicable.
      
              * gtk/gtk-boxed.defs (GtkSelectionData): specify
              gtk_selection_data_copy and gtk_selection_data_free
              do GtkSelectionData work as params in signals.
      49631b29
  11. 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
  12. 26 Nov, 1998 1 commit
    • Lars Hamann's avatar
      define GtkCTreeNode as boxed type use GTK_CTREE_NODE_TYPE instead of · 4ab10dc8
      Lars Hamann authored
      Thu Nov 26 19:11:46 1998  Lars Hamann  <lars@gtk.org>
      
      	* gtk/gtk-boxed.defs (GtkCTreeNode): define GtkCTreeNode as boxed type
      	* gtk/gtkctree.c (gtk_ctree_class_init): use GTK_CTREE_NODE_TYPE
      	instead of GTK_TYPE_POINTER in signal definitions.
      	(patch from James Henstridge <james@daa.com.au>)
      
      Thu Nov 26 18:48:44 1998  Lars Hamann  <lars@gtk.org>
      
      	* gtk/gtkclist.c (set_cell_contents)
      	* gtk/gtkctree.c (set_cell_contents): call column_auto_resize only
       	if auto.resize == TRUE
      
      	* gtk/gtknotebook.c (gtk_notebook_set_shape) (gtk_notebook_expose):
       	don't draw tab, if show_tabs == FALSE
       	(bug reports from Alexis Mikhailov / Dave Cole)
       	(gtk_notebook_focus_changed) (gtk_notebook_draw_focus): draw only
       	the focus rectangle, not the hole tab.
      4ab10dc8
  13. 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
  14. 24 Jun, 1998 1 commit
  15. 09 Jun, 1998 1 commit
    • Tim Janik's avatar
      new functions gtk_selection_data_copy and gtk_selection_data_free. · a21d063e
      Tim Janik authored
      Tue Jun  9 01:57:23 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkselection.h:
              * gtk/gtkselection.c: new functions gtk_selection_data_copy and
              gtk_selection_data_free.
      
              * gtk/gtkwidget.c (gtk_widget_class_init): fixed gtk_signal_new() call
              for "selection_received", which was completely bogus.
              * other fixups to gtk_signal_new() calls all over the place.
      
              * gtk/gtktypebuiltins.h: types as variables (formerly macros).
              * gtk/gtktypebuiltins_vars.c: type variable implementations.
              * gtk/gtktypebuiltins_ids.c: array entries for builtin type
              declarations.
              * gtk/gtktypebuiltins_evals.c: enum value arrays.
              * gtk/gtk-boxed.defs: gtk and gdk structure definitions, used to build
              gtk.defs.
              * gtk/gtk.defs: generated file with scheme syntax for type definitions
              of gtk and gdk structures and enums.
              * gtk/gtktypeutils.h:
              * gtk/gtktypeutils.c: reworked type ids, so they are variables not
              macros anymore (this fixes binary incompatibility with new enum
              definitions).
      
              * gtk/gtkwidget.c (gtk_widget_real_key_press_event): proccess possible
              key bindings for this widget.
              * gtk/gtkwindow.c (gtk_window_key_press_event): chain parent class'
              handler.
      
              * gtk/gtkobject.h:
              * gtk/gtkobject.c: removed gtk_object_class_new_user_signal_no_recurse()
              again. new functions gtk_object_class_user_signal_new () and
              gtk_object_class_user_signal_newv (), to feature the GtkSignalRunType
              flag on the signal creation.
      Mon Jun  8 20:52:21 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkcontainer.h: new signal GtkContainer::set_focus_child.
      a21d063e
  16. 08 Jun, 1998 1 commit
    • Tim Janik's avatar
      wrapped enum definitions with glib macros. · 207eecc4
      Tim Janik authored
      Mon Jun  8 02:52:37 1998  Tim Janik  <timj@gtk.org>
      
              * gdk/gdkprivate.h:
              * gdk/gdktypes.h:
              * gtk/gtkprivate.h:
              * gtk/gtkwidget.h:
              * gtk/gtkobject.h: wrapped enum definitions with glib macros.
      
              * reworked enum value array generation code. gtk.defs is a generated
              file now.
      207eecc4
  17. 07 Jun, 1998 1 commit
    • Tim Janik's avatar
      fixed an assertment. · a391196b
      Tim Janik authored
      Sat Jun  6 06:01:24 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtksignal.c (gtk_signal_emitv): fixed an assertment.
      
              * gtk/makeenums.awk: a script to generate the GtkEnumValue arrays from,
              this should eventually be done by gentypeinfo.el somewhen.
              * gtk/gtkenumvalues.c: new generated file to hold GtkEnumValue arrays.
      
              * gtk/gtktypeutils.h: new function gtk_enum_values() to retrive all the
              enum values of an enum type.
      
              * gtk/gtk.defs:
              * gtk/gtkcurve.h:
              * gtk/gtkobject.h:
              * gtk/gtkprivate.h:
              * gtk/gtkwidget.h:
              * gtk/gtkenums.h:
              brought enum/flags definitions in sync, added a few more enum
              definitions for bindings and pattern matching.
      
              * some more macro and GtkType fixups in various places.
      
              * gdk/gdktypes.h (enum): added a new value GDK_AFTER_MASK, which is used
              as a key-release modifier for the binding system.
      
      Fri Jun  5 06:06:06 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmenu.h (struct _GtkMenu): removed GList*children, since it
              was a stale list pointer that is already present in GtkMenuShell.
      
              * gtk/gtkmenushell.h (struct _GtkMenuShellClass): added a signal
              GtkMenuShell::selection_done which is emitted after the menu shell
              poped down again and all possible menu items have been activated.
      
      Thu Jun  4 02:20:42 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmenushell.c (gtk_menu_shell_button_release): flush the x-queue
              before activation of the menuitem, so the menu is actually taken off the
              screen prior to any menu item activation.
      
              * gtk/gtkctree.c (gtk_ctree_get_row_data): allow function invokation
              for NULL nodes.
      
              * gtk/gtkwidget.h:
              * gtk/gtkwidget.c: new function gtk_widget_stop_accelerator to stop
              the emission of the "add-accelerator" signal on a widget. this is
              usefull to prevent accelerator installation on certain widgets.
      
              * gtk/gtknotebook.c (gtk_notebook_menu_item_create): keep the menu
              labels left justified, by setting their alignment. stop accelerator
              installation for the menu items, since we use dynamic menus.
      
      Wed Jun  3 06:41:22 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmenufactory.c: adaptions to use the new accel groups. people
              should *really* use GtkItemFactory. this is only for preserving source
              compatibility where possible, use of GtkMenuFactory is deprecated as of
              now.
      
              * gtk/gtkobject.h (gtk_object_class_add_user_signal): new function
              to create user signals of type GTK_RUN_NO_RECURSE. don't know why i
              missed this possibility when i added gtk_object_class_add_user_signal
              in late january.
      
              * gtk/gtkmain.c (gtk_init): ignore subsequent function calls.
      
      Sun May 31 07:31:09 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkaccelgroup.h:
              * gtk/gtkaccelgroup.c: new implementation of the accelerator concept.
      
              * gtk/gtkaccellabel.h:
              * gtk/gtkaccellabel.c: new widget derived from GtkLabel whitch features
              display of the accelerators associated with a certain widget.
      
              * gtk/gtkitemfactory.h:
              * gtk/gtkitemfactory.c: new widget, item factory with automatic rc
              parsing and accelerator handling.
      
              * gtk/gtkmenu.c (gtk_menu_reposition): new function to care for
              positioning a menu.
              (gtk_menu_map): removed the allocation code.
              (gtk_menu_size_allocate): care for redrawing of children and resize
              our widget->window correctly.
              (gtk_menu_key_press): feature the new accelerator groups.
      
              * gtk/gtkmenuitem.c (gtk_menu_item_size_allocate): reposition the
              submenu if neccessary.
      
              * gtk/gtkmenuitem.c:
              * gtk/gtkcheckmenuitem.c:
              * gtk/gtkradiomenuitem.c: use GtkAccelLabel in the *_new_with_label()
              function variants.
      
              * gdk/gdk.c:
              (gdk_keyval_from_name):
              (gdk_keyval_name): new functions for keyval<->key-name associations.
              (gdk_keyval_to_upper):
              (gdk_keyval_to_lower):
              (gdk_keyval_is_upper):
              (gdk_keyval_is_lower): new functions to check/translate keyvalues with
              regards to their cases.
      
      Wed May 27 00:48:10 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkwidget.c (gtk_widget_class_path): new function to calculate a
              widget's class path.
              (gtk_widget_path): new function to calculate a widget's name path.
      
              * gtk/gtkrc.c: newly introduced GtkPatternSpec structures to speed up
              pattern matching, features reversed pattern matches.
      a391196b
  18. 14 May, 1998 1 commit
    • Tim Janik's avatar
      typedef gint gboolean; this is needed to provide portability with · 004f0982
      Tim Janik authored
      Thu May 14 04:14:12 1998  Tim Janik  <timj@gtk.org>
      
              * glib.h: typedef gint gboolean;
              this is needed to provide portability with big-endian platforms (e.g.
              try sizeof(bool) for c++ on big-endians - it's 4).
              this is also needed to maintain some_union.d_gint==some_union.d_gboolean.
              plus, gint to gboolean casts and vice versa need to be possible without
              loss.
      
      Thu May 14 03:04:43 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtktypeutils.c (gtk_type_free): new function to take care about
              freeing types.
              (gtk_type_set_chunk_alloc): new function to allow allocation of new
              types from a mem_chunk of certain size (n_chunks==0 indicates allocation
              thorugh g_malloc).
      
              * gtk/gtkobject.c (gtk_object_finalize): free an object through
              gtk_type_free().
      
              * gtk/gtkbutton.c (gtk_button_get_type): set chunk preallocation for
              GtkButtons to 16.
              * gtk/gtkmenuitem.c (gtk_menu_item_get_type): likewise (16).
              * gtk/gtklabel.c (gtk_label_get_type): likewise (32).
      004f0982
  19. 07 May, 1998 1 commit
    • Tim Janik's avatar
      postfix -lg* libraries with LT_RELEASE. · 39ff37dc
      Tim Janik authored
      Thu May  7 05:14:19 1998  Tim Janik  <timj@gtk.org>
      
              * gtk-config.in (--libs): postfix -lg* libraries with LT_RELEASE.
      
              * ltmain.sh: added a new commandline flag -postfix similar to -release,
              but will immediately change the library name.
      
              * gdk/Makefile.am:
              * gtk/Makefile.am: specify -postfix and -version-info
      
              * configure.in: version bump to 1.1.0. added GTK_INTERFACE_AGE and
              GTK_BINARY_AGE. calculate LT_* variables for libtool.
      39ff37dc
  20. 06 May, 1998 1 commit
    • Tim Janik's avatar
      reimplemented the signal storage system to use a linear array rather than · 518a8a9c
      Tim Janik authored
      Wed May  6 02:16:34 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtksignal.c: reimplemented the signal storage system to use a
              linear array rather than a hash table.
              be carefull *not* to keep any GtkSignal pointers across invokations
              of gtk_signal_next_and_invalidate() and therefore gtk_signal_new[v]().
              general code cleanups, made all allocations through memchunks.
              (gtk_signal_lookup): we now do the lookup of signals through a key_id
              for the signal names to avoid multiple hashing of the signal name on
              lookups for the several hirarchy levels of an object.
      
      Tue May  5 15:33:27 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmain.c (gtk_init): added gtk_signal_init() to avoid repeatedly
              checking for signal initialization in gtksignal.c.
      
              * gtk/gtktypeutils.c (TYPE_NODES_BLOCK_SIZE): reseted this to 200 after
              a long debugging period ;)
      
      Mon May  4 00:30:11 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtktypeutils.h (GTK_TYPE_IS_A): new macro to speedup
              gtk_type_is_a().
              * gtk/gtktypeutils.c: reimplemented the type storage system to use a
              linear array rather than a hash table. it actually speeded up testgtk
              for a *considerable* amount. be carefull *not* to keep any GtkTypeNode
              pointers across invokations of gtk_type_node_next_and_invalidate() and
              therefore gtk_type_unique()!
      
              * gtk/gtkobject.h (GTK_IS_OBJECT_CLASS): new macro to test for the
              inheritance of a class pointer.
              (GTK_OBJECT): modifications for speedups.
              (GTK_IS_OBJECT): likewise.
              (GTK_OBJECT_CLASS): likewise.
              (suggested by owen).
      
              * gtk/gtkcontainer.h (GTK_IS_CONTAINER_CLASS): new macro.
      
              * gtk/gtkwidget.h (GTK_IS_WIDGET_CLASS): new macro.
      
              * gtk/gtk.defs (GtkTooltips): define GtkTooltips as object not as boxed,
              since its derivation changed 4 month ago ;(. showed up with the unique
              type name checking code in gtk_type_unique().
      
              * random guint->GtkType and macro fixups.
      518a8a9c
  21. 17 Jan, 1998 1 commit
    • Owen Taylor's avatar
      Take putback events into account · 44364802
      Owen Taylor authored
      * gdk/gdk.c (gdk_events_pending): Take putback events into
        account
      
      * gdk/gdk.c (gdk_event_free): Handle dropdataavaible memory
        allocation correctly. (Incompatible change: client must
        _not_ fre event->data and event->data_type.)
      
      * gdk/gdk.c (gdk_event_translate): Changed DND dragging
        so that we don't ungrab pointer when we reenter window
        to prevent extra Enter/Leave effects which had bad
        effects.
        Changed drag zone handling to not send uncessary
        DragEnter events.
        Fixed EnterNotify/LeaveNotify handling. (Only pay
        attention to events on window, don't specify these
        events to XGrabPointer - that isn't valid, and handle
        reverse the sense of the handling of LeaveNotify.)
      
      * gdk/gdkwindow.c (gdk_window_remove_filter): Free removed
        filter.
      
      * gtk/gtk.defs (GdkFont): gdk_font_free => gdk_font_unref
      
      * gtk/gtkmain.{c,h} (gtk_events_pending): new function - apps
        should use this instead of gdk_events_pending.
      
      * gtk/gtkvbbox.h: Fixed a duplication in the headers.
      
      * gtk/testgtk.c (dnd_drop): Don't free the drop data,
        it belongs to the event.
      44364802
  22. 18 Dec, 1997 1 commit
  23. 24 Nov, 1997 1 commit