1. 29 May, 2000 1 commit
  2. 28 May, 2000 4 commits
  3. 27 May, 2000 1 commit
  4. 26 May, 2000 1 commit
  5. 24 May, 2000 1 commit
  6. 23 May, 2000 2 commits
  7. 22 May, 2000 2 commits
  8. 21 May, 2000 1 commit
  9. 19 May, 2000 3 commits
  10. 18 May, 2000 2 commits
  11. 17 May, 2000 3 commits
  12. 16 May, 2000 1 commit
    • Tor Lillqvist's avatar
      Plug same refcount leaks as in the X11 backend. · 8596f7ed
      Tor Lillqvist authored
      2000-05-17  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
      refcount leaks as in the X11 backend.
      
      * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
      cosmetics.
      
      * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
      backend. Add _gdk_windowing_window_destroy().
      
      * gtk/gtkcolorsel.c: Include correct backend-specific header.
      Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
      either, but these probably do exist on nanox?)
      
      * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
      which isn't necessarily defined by <math.h>.
      
      * gtk/gtkobject.c (gtk_object_init): Don't go up the class
      ancestry past GtkObject.
      
      * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
      from DLL on Win32.
      
      * gtk/gtk.def: Update corresponding to recent changes.
      
      * gtk/makefile.{cygwin,msc}: Updates.
      8596f7ed
  13. 15 May, 2000 1 commit
    • Owen Taylor's avatar
      A bit of editing. · 386ae209
      Owen Taylor authored
      Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* docs/Changes-1.4.txt: A bit of editing.
      
      	* gdk/gdkwindow.c (_gdk_window_clear_update_area)
      	* gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
      	to clear the update area for the window, and clear it
      	when hiding a window.
      
      	* gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
      	if window destroyed.
      
      	* gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
      
      	* gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move
      	gdk_window_destroy() to the generic code, since there was a lot of
      	window-system-independent logic it in. Add a function:
      
      	 _gdk_window_destroy()
      
      	to the internal API to destroy a window without unreferencing it.
      	Add a function:
      
      	 _gdk_windowing_window_destroy()
      
      	That does the windowing-system-dependent part of destroying
      	the window.
      
      Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/testgtk.c: Fix various memory leaks of pixmaps.
      
      Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask):
      	Make gtk_widget_shape_combine_mask() keep a reference count on
      	the pixmap since it keeps it around.
      
      Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
      	leak.
      
      	* gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
      	leak with event filters.
      
      Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
      	signal handlers with the right data arguments. (Fixes
      	some warnings when a widget was repeatedly set as a drag
      	destination.)
      
      	* gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
      	window so we can avoid avoid setting the DND properties on the
      	toplevel window repeatedly.
      386ae209
  14. 12 May, 2000 4 commits
    • Tor Lillqvist's avatar
      Typo. · 014e275b
      Tor Lillqvist authored
      014e275b
    • Tor Lillqvist's avatar
      Define more message types missing from mingw headers. · cab7ca49
      Tor Lillqvist authored
      2000-05-13  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/gdkwin32.h: Define more message types missing from
      mingw headers.
      
      * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
      call gdk_window_destroy_notify(). It was never called. This
      probably meant that the GdkWindow was never freed. Thanks Owen for
      noticing (!).
      
      * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
      window as destroyed before calling DestroyWindow(). DestroyWindow()
      causes a call to the window procedure (gdk_WindowProc), which
      calls gdk_event_translate(), which calls
      gdk_window_destroy_notify(), which gets confused unless the window
      is set as destroyed.
      
      * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
      this function to indicate it's win32 only. Put inside #ifdef
      G_ENABLE_DEBUG.
      
      * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
      debugging function. (gdk_event_translate:) Add a default branch
      that uses the above function to print debug messages with all
      Windows messages symbolically.
      
      * gdk/win32/gdkprivate-win32.h: Declare it, and
      gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
      cab7ca49
    • Tim Janik's avatar
      don't include gtk/gtkintl.h in a public header file. · 438e6357
      Tim Janik authored
      Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
              public header file.
      438e6357
    • Tim Janik's avatar
      documented necessary changes for 1.4 transition. · 9595c551
      Tim Janik authored
      Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
      
      	* docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
      
      	* gtk/gtktext.c: made the adjustments no-construct args, simply
      	provide default adjustments.
      	(gtk_text_destroy): release adjustments.
      
      	* gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
      	adjustment argument non-construct.
      
      	* gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
      	instead of in finalize.
      	(gtk_progress_get_text_from_value):
      	(gtk_progress_get_current_text):
      	(gtk_progress_set_value):
      	(gtk_progress_get_percentage_from_value):
      	(gtk_progress_get_current_percentage):
      	(gtk_progress_set_percentage):
      	(gtk_progress_configure): ensure an adjustment is present.
      
      Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtkcolorsel.[hc]:
      	* gtk/gtkcolorseldialog.[hc]:
      	* gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
      	their parent implementation, use bit fields for boolean values, don't
      	create unused widgets, usage of glib types, braces go on their own
      	lines, function argument alignment, #include directives etc. etc. etc..
      
      	* gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
      
      Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
      
      	* gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
      	of NULL.
      
      	* gtk/gtkcombo.c (gtk_combo_item_destroy): don#t keep references
      	to freed data.
      	(gtk_combo_destroy): don't keep a pointer to a destroyed window.
      
      	* gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
      	to NULL when the toplevel is getting destroyed.
      	(gtk_menu_set_tearoff_state): same here for the tearoff_window.
      	(gtk_menu_destroy):
      	(gtk_menu_init): store the information of whether we have to
      	readd the initial child ref_count during destruction in a new
      	GtkMenu field needs_destruction_ref_count.
      
      	* gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
      	here, those reading: learn from my mistake! ;)
      	in order for set_?adjustment to support a default adjustemnt if
      	invoked with an adjustment pointer of NULL, the code read (pseudo):
      	if (v->adjustment) unref (v->adjustment);
      	if (!adjustment) adjustment = adjustment_new ();
      	if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
      	now imagine the first unref to actually free the old adjustment and
      	adjustment_new() creating a new adjustment from the very same memory
      	portion. here, the latter comparision will unintendedly fail, and
      	all hell breaks loose.
      	(gtk_viewport_set_hadjustment):
      	(gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
      	after unreferencing it.
      
      	* gtk/gtkcontainer.[hc]: removed toplevel registration
      	functions: gtk_container_register_toplevel(),
      	gtk_container_unregister_toplevel() and
      	gtk_container_get_toplevels() which had wrong semantics
      	anyways: it didn't reference and copy the list.
      
      	* gtk/gtkwindow.c: we take over the container toplevel registration
      	bussiness now. windows are registered across multiple destructions,
      	untill they are finalized. the initial implicit reference count
      	users are holding on windows is removed with the first destruction
      	though.
      	(gtk_window_init): ref & sink and set has_user_ref_count, got
      	rid of gtk_container_register_toplevel() call. add window to
      	toplevel_list.
      	(gtk_window_destroy): unref the window if has_user_ref_count
      	is still set, got rid of call to
      	gtk_container_unregister_toplevel().
      	(gtk_window_finalize): remove window from toplevel list.
      	(gtk_window_list_toplevels): new function to return a newly
      	created list with referenced toplevels.
      	(gtk_window_read_rcfiles): use gtk_window_list_toplevels().
      
      	* gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
      	adjustment a non-construct arg.
      	* gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
      	* gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
      	* gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
      
      	* gtk/gtkrange.c: added some realized checks.
      	(gtk_range_destroy): get rid of the h/v adjustments in the
      	destroy handler instead of finalize. remove timer.
      	(gtk_range_get_adjustment): demand create adjustment.
      
      	* gtk/gtkviewport.c: made h/v adjustment non-construct args.
      	we simply create them on demand now and get rid of them in
      	the destroy handler.
      	(gtk_viewport_destroy): get rid of the h/v adjustments in the
      	destroy handler instead of finalize.
      	(gtk_viewport_get_hadjustment):
      	(gtk_viewport_get_vadjustment):
      	(gtk_viewport_size_allocate): demand create h/v adjustment
      	if required.
      
      	* gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
      	gtk_widget_real_destroy () functionality.
      	(gtk_widget_real_destroy): reinitialize with a new style, instead
      	of setting widget->style to NULL.
      
      Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtkcalendar.c:
      	* gtk/gtkbutton.c: ported _get_type() implementation over to
      	GType, either to preserve memchunks allocation facilities,
      	or because Gtk+ 1.0 GtkTypeInfo was still being used.
      
      	* gtk/gtkobject.[hc]: derive from GObject. ported various functions
      	over. prepare for ::destroy to be emitted multiple times.
      	removed reference tracer magic. chain into GObjectClass.shutdown()
      	to emit ::destroy signal.
      
      	* gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
      	fundamental.
      
      	* gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
      	cludge.
      
      	* gtk/gtksocket.c:
      	* gtk/gtkplug.c:
      	* gtk/gtklayout.c:
      	* gtk/gtklabel.c:
      	* gtk/gtkargcollector.c:
      	* gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
      	not being a fundamental anymore, and to work with the new
      	type system (nuked fundamental type varargs clutter).
      
      	* gtk/*.c: install finalize handlers in the GObjectClass
      	part of the class structure.
      	changed direct GTK_OBJECT()->klass accesses to
      	GTK_*_GET_CLASS().
      	changed direct object_class->type accesses to GTK_CLASS_TYPE().
      
      	* gtktypeutils.[hc]: use the reserved fundamental ids provided by
      	GType. made most of the GTK_*() type macros and Gtk* typedefs
      	simple wrappers around macros and types provided by GType.
      	most notably, a significant portion of the old API vanished:
      	GTK_TYPE_MAKE(),
      	GTK_TYPE_SEQNO(),
      	GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
      	GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
      	GTK_TYPE_ARGS,
      	GTK_TYPE_CALLBACK,
      	GTK_TYPE_C_CALLBACK,
      	GTK_TYPE_FOREIGN,
      	GtkTypeQuery,
      	gtk_type_query(),
      	gtk_type_set_varargs_type(),
      	gtk_type_get_varargs_type(),
      	gtk_type_check_object_cast(),
      	gtk_type_check_class_cast(),
      	gtk_type_describe_tree(),
      	gtk_type_describe_heritage(),
      	gtk_type_free(),
      	gtk_type_children_types(),
      	gtk_type_set_chunk_alloc(),
      	gtk_type_register_enum(),
      	gtk_type_register_flags(),
      	gtk_type_parent_class().
      	replacements, where available are described in ../docs/Changes-1.4.txt.
      	implemented compatibility functions for the remaining API.
      
      	* configure.in: depend on glib 1.3.1, use gobject module.
      9595c551
  15. 11 May, 2000 2 commits
  16. 10 May, 2000 3 commits
    • Owen Taylor's avatar
      Color selection dialog rewrite. · 88286d32
      Owen Taylor authored
      Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
      	gtk/gtkhsv.[ch]: Color selection dialog rewrite.
      
      	(Original triangle color selector from Simon Budig
      	<Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
      	from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
      	Santiago <mrcooger@cyberverse.com>)
      
      	* gtk/gtkcolorseldialog.[ch]: Split color selection dialog
      	out into a separate widget.
      
      	* gtk/testgtk.c: Add some checkbuttons for toggling palette
      	and opacity controls.
      
      Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* configure.in (GTK_LIBS_EXTRA): Remove references to gobject that
      	snuck in prematurely.
      88286d32
    • Owen Taylor's avatar
      Remove gobject that snuck in prematurely. · ac9090ed
      Owen Taylor authored
      Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
      
              * configure.in (GTK_LIBS_EXTRA): Remove gobject that snuck
              in prematurely.
      ac9090ed
    • Szabolcs Ban's avatar
      Szabolcs BAN <shooby@gnome.hu> · 2e71702a
      Szabolcs Ban authored
      * Corrected header
      2e71702a
  17. 09 May, 2000 1 commit
  18. 08 May, 2000 2 commits
  19. 07 May, 2000 1 commit
    • Tor Lillqvist's avatar
      Fix typo. I had deleted a ! operator by mistake, which caused · acc8e78c
      Tor Lillqvist authored
      2000-05-07  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
      had deleted a ! operator by mistake, which caused
      GDK_SELECTION_CLEAR events never to be generated, which caused
      only the first copy to the clipboard from an gtkeditable to
      actually cause a copy to the Windows clipboard.
      
      2000-05-06  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
      compilation, too. Current mingw gcc distributions include the
      necessary headers. Also the necessary IIDs are now in mingw
      headers/libraries, and own definitions unnecessary.
      
      More hacking on OLE2 DND, still doesn't work though, and thus
      ifdeffed out.
      
      * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
      here, too.
      acc8e78c
  20. 06 May, 2000 1 commit
    • Paolo Molaro's avatar
      Sat, 6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com> · 8a836c07
      Paolo Molaro authored
      
      Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
      
      	* gdk/nanox/*: nano-X port work in progress.
      	* gdk/simple.c: simple test for Gdk.
      	* README.nanox: notes about the port: read this first!
      	* gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
      	with nano-X.
      8a836c07
  21. 05 May, 2000 3 commits
    • Owen Taylor's avatar
      Move gdk_window_clear() into common code, implement in terms of · ea71f02a
      Owen Taylor authored
      Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
      	gdk_window_clear() into common code, implement in terms of
      	gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
      	not redirected to the backing rectangle.
      
      Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into
      	EXTRA_DIST. It does not work well when the file that
      	everything depends on is not in the tarball.
      
      Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
      	with recursion where process_updates() is called from
      	an expose handler. (GtkTextView is highly broken in
      	doing this, but it should work, so it is a nice test
      	case.)
      
      Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
      	handle the case where updates are queued during processing of
      	updates.
      
      Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
      	window is on gdk_display - use that instead of segfaulting.
      ea71f02a
    • Owen Taylor's avatar
      Add beginnings of file with detailed information about the structure and · e6abb470
      Owen Taylor authored
      Fri May  5 12:16:32 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk-pixbuf/pixops/DETAILS: Add beginnings of file with
      	detailed information about the structure and algorithms
      	of pixops so people can fix it instead of breaking it.
      
      CvS: Added Files:
      e6abb470
    • Darin Adler's avatar
      Now that Owen explained the algorithm, I think I implemented it right for · 0f038c9e
      Darin Adler authored
      	* gdk-pixbuf/pixops/pixops.c: (pixops_composite_nearest),
      	(composite_pixel), (composite_line):
      	* gdk-pixbuf/test-gdk-pixbuf.c: (simple_composite_test_one_type):
      	Now that Owen explained the algorithm, I think I implemented it
      	right for the cases where the destination pixbuf is not opaque.
      	The test does seem to confirm it.
      0f038c9e