1. 14 Dec, 2002 2 commits
  2. 13 Dec, 2002 4 commits
    • Owen Taylor's avatar
      Use g_utf8_collate_key() to sort in human-friendly order. (#94473) · 137ad5b9
      Owen Taylor authored
      Fri Dec 13 18:22:21 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkfilesel.c (compare_cmpl_dir): Use
              g_utf8_collate_key() to sort in human-friendly order.
              (#94473)
      137ad5b9
    • Owen Taylor's avatar
      System fnmatch wasn't going to be UTF-8 clean, neither was our version. · 73b15ba3
      Owen Taylor authored
      Fri Dec 13 17:45:40 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/fnmatch.c gtk/gtkprivate.h gtk/gtkfilesel.c:
              System fnmatch wasn't going to be UTF-8 clean, neither
              was our version. Redo our fnmatch.c to be UTF-8, add
              test cases, fix all sorts of bugs inherited
              from the antique GNU fnmatch code. Change interface
              to get rid of fnmatch.h constants. Fixes basic
              non-workingness of filesel with non-ASCII filenames.
      
              * gtk/fnmatch.h: No longer needed.
      73b15ba3
    • Owen Taylor's avatar
      Const warning fix. · 72ecdb5c
      Owen Taylor authored
      Thu Dec 12 20:07:25 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkfilesel.c (cmpl_completion_fullname): Const
              warning fix.
      72ecdb5c
    • Owen Taylor's avatar
      Include "." and ".." in the list of entries; they are needed for correct · 829c6708
      Owen Taylor authored
      Thu Dec 12 19:51:45 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkfilesel.c (open_new_dir): Include "."
              and ".." in the list of entries; they are needed for
              correct handling of .<TAB>, ..<TAB>; were lost
              with the GDir conversion. (Francisco Bustamante,
              #89972)
      
              * gtk/gtkfilesel.c (open_new_dir): If we hit
              EOF unexpectedly, that's OK... a file was just
              deleted while we were reading the directory.
      829c6708
  3. 12 Dec, 2002 7 commits
  4. 11 Dec, 2002 2 commits
    • Tor Lillqvist's avatar
      gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new, gdk_bitmap_create_from_data, · 5fc015b4
      Tor Lillqvist authored
      2002-12-11  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new,
      	gdk_bitmap_create_from_data, gdk_pixmap_create_from_data)
      	* gdk/win32/gdkprivate-win32.h
      	* gdk/win32/gdkimage-win32.c (_gdk_win32_setup_pixmap_image):
      	Functions now take a GdkDrawable instead of GdkWindow parameter,
      	like in X11 and linux-fb backends (#100780)
      
      	* gdk/win32/gdkwindow-win32.c (get_default_title): Do use
      	g_get_application_name() (I now have a fresh enough GLib).
      5fc015b4
    • Owen Taylor's avatar
      version 2.1.4, interface age 1. · b98e775e
      Owen Taylor authored
      Wed Dec 11 14:04:23 2002  Owen Taylor  <otaylor@redhat.com>
      
              * configure.in: version 2.1.4, interface age 1.
      
              * configure.in: Require GLib-2.1.4, so we will catch
              the need for the new AM_GLIB_DEFINE_LOCALEDIR() in
              an obvious way.
      
              * configure.in gtk/Makefile.am: Use AM_GLIB_DEFINE_LOCALEDIR()
      b98e775e
  5. 10 Dec, 2002 10 commits
    • PST 2002  Manish Singh's avatar
      gdk_x11_get_xatom_by_name_for_display takes a GdkDisplay *, not an · 1e5d33a2
      PST 2002 Manish Singh authored
      Tue Dec 10 15:46:01 PST 2002  Manish Singh  <yosh@gimp.org>
      
              * gdk/x11/gdkwindow-x11.c (set_initial_hints):
              gdk_x11_get_xatom_by_name_for_display takes a GdkDisplay *,
              not an XDisplay * (obvious typo fix for the previous commit)
      1e5d33a2
    • Matthias Clasen's avatar
      Delete EWMH properties if no private->state flags are set. (#66754) · 428c076f
      Matthias Clasen authored
      
      	* gdk/x11/gdkwindow-x11.c (set_initial_hints): Delete EWMH
      	properties if no private->state flags are set.  (#66754)
      
      	* gtk/gtkwidget.c (gtk_widget_class_find_style_property):
      	* gtk/gtkcontainer.c (gtk_container_class_find_child_property):
      	Doc typo fixes.
      
      	* gtk/tmpl/gtktextview.sgml: Add docs.
      
      	* gtk/tree_widget.sgml: Fix some links.
      
      	* gtk/tmpl/gtkwindow.sgml: Add docs.
      
      	* gtk/tmpl/gtkeditable.sgml: Document GtkEditable as an interface,
      	not as an abstract base class.
      
      	* gtk/gtk-docs.sgml: Move GtkEditable from "Abstract Base Classes"
      	to "Numeric/Text Data Entry".
      428c076f
    • Matthias Clasen's avatar
      Data constness fixes. (#75754) · 14ee65b6
      Matthias Clasen authored
      14ee65b6
    • Owen Taylor's avatar
      Separate out tracking of the X server focus window from tracking our idea · 329c090e
      Owen Taylor authored
      Tue Dec 10 14:37:41 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkevents-x11.c (gdk_event_translate)
                gdk/x11/gdkwindow-x11.h: Separate out tracking of the X server
                focus window from tracking our idea of what the focus window is,
                because the PointerRoot code needs to know the real pointer
                window. (Mostly accidentally committed a bit earlier.)
      329c090e
    • Owen Taylor's avatar
      Fix typo with hadjustment/vadjustment introduce prior to 2.0.0. (#84621, · 2c3fc13a
      Owen Taylor authored
      Tue Dec 10 12:57:00 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkclist.c (adjust_adjustments): Fix typo with
              hadjustment/vadjustment introduce prior to 2.0.0.
              (#84621, Charles Kerr)
      2c3fc13a
    • Soeren Sandmann's avatar
      new default color scheme based on the GNOME stock icon palette. (#80691, · 439d61b9
      Soeren Sandmann authored
      Tue Dec 10 12:40:30 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkmenuitem.c, gtk/gtkstyle.c, gtk/gtkrc.c: new default
      	color scheme based on the GNOME stock icon palette. (#80691,
      	Tuomas Kuosmanen, Garrett LeSage, Owen Taylor)
      
      	* gtk/gtknotebook.c (gtk_notebook_real_remove): take a new
      	parameter, "destroying", and don't emit the switch-page signals
      	when it is true (fix #64832, reported by Jarred Keuch)
      
      	* gtk/gtklabel.c (gtk_label_set_property): remove unused
      	variable.
      439d61b9
    • Kristian Rietveld's avatar
      x can be in the range [0, upper], which can be bigger than [0, page_size]. · bfb45391
      Kristian Rietveld authored
      Tue Dec 10 02:14:12 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): x can be in
              the range [0, upper], which can be bigger than [0, page_size].
              (Fixed #99778, reported and testcase provided by Carlos Garnacho
              Parro).
      bfb45391
    • Owen Taylor's avatar
      Remove a couple of places if (widget->window), this function will only · 5b3964b9
      Owen Taylor authored
      Mon Dec  9 19:49:03 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkwindow.c (gtk_window_move_resize): Remove
              a couple of places if (widget->window), this function
              will only ever be called on a realized window.
              (#80225)
      5b3964b9
    • Kristian Rietveld's avatar
      implement a working use_align = FALSE implementation (also mentioned in · 5fb6d3b8
      Kristian Rietveld authored
      Tue Dec 10 01:58:43 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreeview.c (validate_visible_area): implement a working
              use_align = FALSE implementation (also mentioned in #91335, reported
              by Juri Pakaste).
      
              * gtk/gtktreeview.c (validate_visible_area): only free the
              scroll_to_path if we are done with validating (fixes #93584, reported
              and testcase provided by Erik Simonsen).
      
              * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
              set the GTK_CELL_RENDERER_FOCUSED flag where appropriate. (fixes
              #75745, reported by Richard Hult).
      
              * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_get_position):
              initialize cellinfo to NULL to silence the compiler.
      5fb6d3b8
    • Owen Taylor's avatar
      Remove unused draw_spin_entry_shadow(). (#80229) · 2a455794
      Owen Taylor authored
      Mon Dec  9 19:31:59 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkstyle.c (draw_spinbutton_shadow): Remove
              unused draw_spin_entry_shadow(). (#80229)
      2a455794
  6. 09 Dec, 2002 11 commits
    • Owen Taylor's avatar
      Remove selection for DeviceButtonRelease, we no longer need it now that · b658a5d2
      Owen Taylor authored
      Mon Dec  9 18:50:31 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
              Remove selection for DeviceButtonRelease, we no longer need
              it now that gxi is gone. (#32617, reported by Garry
              Osgood)
      b658a5d2
    • Kristian Rietveld's avatar
      update to allow a GdkDrawable instead of a GdkWindow. · 00185e7e
      Kristian Rietveld authored
      Tue Dec 10 00:49:35 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gdk/gdkpixmap.h (gdk_pixmap_new), (gdk_bitmap_create_from_data),
              (gdk_pixmap_create_from_xpm), (gdk_pixmap_colormap_create_from_xpm),
              (gdk_pixmap_create_from_xpm_d),
              (gdk_pixmap_colormap_create_from_xpm_d): update to allow a
              GdkDrawable instead of a GdkWindow.
      
              * gdk/gdkpixmap.c (gdk_pixmap_colormap_create_from_xpm),
              (gdk_pixmap_create_from_xpm), (gdk_pixmap_colormap_create_from_xpm_d),
              (gdk_pixmap_create_from_xpm_d): update to allow a GdkDrawable
              instead of a GdkWindow.
      
              * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new),
              (gdk_bitmap_create_from_data), (gdk_pixmap_create_from_data): update
              to allow a GdkDrawable instead of a GdkWindow.
      
              * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_new),
              (gdk_bitmap_create_from_data), (gdk_pixmap_create_from_data): likewise
      00185e7e
    • Owen Taylor's avatar
      Remove unnecessary leftover check that was causing a UMR. (#100768, · 7c2489e9
      Owen Taylor authored
      Mon Dec  9 17:31:06 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkiconfactory.c (icon_size_lookup_intern): Remove
              unnecessary leftover check that was causing a UMR.
              (#100768, Kjartan Maraas)
      7c2489e9
    • Peteris Krisjanis's avatar
    • Owen Taylor's avatar
      Fix a bug in one of my earlier changes. (From Naofumi Yasufuku, #100023) · 516b7c18
      Owen Taylor authored
      Mon Dec  9 10:44:59 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors_private):
              Fix a bug in one of my earlier changes. (From Naofumi Yasufuku,
              #100023)
      516b7c18
    • Owen Taylor's avatar
      Fix spacing in a bunch of for (i=0; i<ncolors; i++). · 39e143aa
      Owen Taylor authored
      Sun Dec  8 21:43:31 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkcolor-x11.c: Fix spacing in a bunch of
              for (i=0; i<ncolors; i++).
      
              * gdk/x11/gdkcolor-x11.c: Various g_return_if_fail()
              cleanup.
      39e143aa
    • Owen Taylor's avatar
      Fix a lost refcount in the case where we get a duplicate back from the X · af36a5e5
      Owen Taylor authored
      Sun Dec  8 21:29:10 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc1): Fix
              a lost refcount in the case where we get a duplicate
              back from the X server.
      
              * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors_writeable):
              Set success[] for all colors when allocation of colors
              cells via XAllocColorCells succeeds.
      
              * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors_private):
              Don't match against colors cells allocated writeable.
      af36a5e5
    • Owen Taylor's avatar
      When allocating non-writeable colors, fill in the flags field of the · e4c9e2eb
      Owen Taylor authored
      Sun Dec  8 21:22:46 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors_private):
              When allocating non-writeable colors, fill in the flags
              field of the XColor, and insert the returned color into
              our color hash. (#100023, Naofumi Yasufuku)
      
              * gdk/x11/gdkcolor-x11.c (gdk_colormap_free_colors):
              Fix a typo (my fault) that slipped in in the last patch.
      e4c9e2eb
    • Owen Taylor's avatar
      More fixes for GdkColormapX11 (#100023, Naofumi Yasufuku) · fac76f94
      Owen Taylor authored
      Sun Dec  8 20:32:23 2002  Owen Taylor  <otaylor@redhat.com>
      
              More fixes for GdkColormapX11 (#100023, Naofumi Yasufuku)
      
              * gdk/x11/gdkcolor-x11.c (gdk_colors_free)
              (gdk_colormap_free_colors): Don't call XFreeColors() for
              private colorsmaps.
      
              * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors_writeable,
              gdk_colormap_colors_private, gdk_colormap_alloc_colors_shared):
              Fix return values to return number remaining not number
              allocated.
      
              * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors_shared,
              gdk_colormap_alloc_colors_private): Clean up some a stray
              initializations.
      fac76f94
    • Owen Taylor's avatar
      Fixes for GdkColormapX11 (#100023, Naofumi Yasufuku) · bb0446a0
      Owen Taylor authored
      Sun Dec  8 20:19:22 2002  Owen Taylor  <otaylor@redhat.com>
      
              Fixes for GdkColormapX11 (#100023, Naofumi Yasufuku)
      
              * gdk/x11/gdkcolor-x11.c (gdk_x11_colormap_foreign_new):
              Fix typo that caused us to always return the system
              colormap.
      
              * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): When allocating
              a private colormap and copying the system palette
              to prevent flashing, handle colormap->size greater than
              system_colormap->size.
      
              * gdk/x11/gdkcolor-x11.c (gdk_x11_colormap_get_xdisplay):
              Get rid of the last remains of private->xdisplay
              in favor of using private->screen.
      bb0446a0
    • Tor Lillqvist's avatar
      Merge from stable: · af9b53fc
      Tor Lillqvist authored
      2002-12-09  Tor Lillqvist  <tml@iki.fi>
      
      	Merge from stable:
      
      	* gdk/win32/gdkdrawable-win32.c (generic_draw): Don't leak
      	stipple_gc. More checks for errors. Use correct ternary ROP when
      	blitting the foreground into the tile pixmap onto those pixels
      	where the stipple is set. (I didn't notice that I had used the
      	wrong one, as it didn't matter on Win2k, where DIB sections
      	apparently are zeroed upon creation. But on Win98 they have random
      	initial contents. Thanks to Hans Breuer for reporting this.)
      	(gdk_win32_draw_rectangle, gdk_win32_draw_arc,
      	gdk_win32_draw_polygon): Don't pass the LINE_ATTRIBUTES bits to
      	generic_draw() if drawing a filled figure.
      
      	* gdk/win32/gdkmain-win32.c (_gdk_win32_print_dc): Minor cosmetics.
      	(_gdk_win32_gcvalues_mask_to_string): Initialize buffer as empty.
      	(_gdk_win32_window_state_to_string): New debugging output helper
      	function.
      
      	* gdk/win32/gdkevents-win32.c: Minor debugging output changes.
      	(gdk_event_translate): Ignore the WM_SHOWWINDOW/SW_OTHERUNZOOM or
      	SW_OTHERZOOM messages. Do not generate a GDK_UNMAP event for
      	WM_SIZE/SIZE_MINIMIZED messages, they do not really corrspond to
      	unmapping on X11. Set window state correctly for all three of
      	SIZE_{MINIMIZED,MAXIMIZED,RESTORED}. A maximized and then iconified
      	("minimized" in Windows terminology) window still has the
      	"maximized" property, i.e. when deiconified, it will reappear as
      	maximized. (#10557)
      
      	* gdk/win32/gdkprivate-win32.h: Declare new function.
      	(WIN32_API_FAILED, WIN32_GDI_FAILED, OTHER_API_FAILED): Don't use
      	__PRETTY_FUNCTION__ if __GNUC__ >= 3, to avoid warning message.
      
      	* gdk/win32/gdkwindow-win32.c (show_window_internal): Handle more
      	situations. Add parameter to tell whether deiconifying. Code
      	reorg: Return early when appropriate instead of using nested if
      	statements. If just deiconifying without raising, restore active
      	window. (#10557)
      
      	(gdk_window_hide, gdk_window_withdraw, gdk_window_iconify,
      	gdk_window_deiconify, gdk_window_maximize, gdk_window_unmaximize,
      	gdk_window_focus): Use _gdk_win32_window_state_to_string() in
      	debugging output.
      
      	(gdk_window_iconify): Restore active window after calling
      	ShowWindow(). Otherwise the "next" window gets activated.
      
      	(gdk_window_stick, gdk_window_unstick): Don't output any warnings.
      
      	(gdk_window_set_transient_for): Rewrite. Just call SetWindowLong()
      	with GWL_HWNDPARENT, which despite its name sets the *owner*
      	window, which should be exactly what we want. The PSDK
      	documentation is said to be misleading. testgtk's modal window
      	test now works much better. (#50586)
      af9b53fc
  7. 08 Dec, 2002 2 commits
  8. 07 Dec, 2002 2 commits
    • GMT 2002  Tony Gale's avatar
      minor fixes · 47ebb973
      GMT 2002 Tony Gale authored
      Sat Dec  7 14:45:50 GMT 2002  Tony Gale <gale@gtk.org>
      
              * docs/tutorial/gtk-tut.sgml: minor fixes
      
              * examples/pixmap: don't use deprecated function
      47ebb973
    • Owen Taylor's avatar
      Use octal escapes rather than literal UTF-8. · f9d1107b
      Owen Taylor authored
      Fri Dec  6 19:00:59 2002  Owen Taylor  <otaylor@redhat.com>
      
              * demos/gtk-demo/testview.c tests/testgtk.c
              tests/testtext.c tests/testtextbuffer.c: Use
              octal escapes rather than literal UTF-8.
      f9d1107b