1. 17 Feb, 2002 4 commits
    • Tor Lillqvist's avatar
      Remove comment about the gtk-1-3-win32-production branch having more · efbdfddb
      Tor Lillqvist authored
      2002-02-17  Tor Lillqvist  <tml@iki.fi>
      
      	* README.win32: Remove comment about the gtk-1-3-win32-production
      	branch having more functionality.
      efbdfddb
    • Tor Lillqvist's avatar
      Massive changes. Too many to list here, but I'll try a summary: · bc1ec5c1
      Tor Lillqvist authored
      2002-02-17  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/*.c: Massive changes. Too many to list here, but I'll
      	try a summary:
      
      	1) Unify GdkPixmap and GdkImage implementation: For each
      	GdkPixmap, allocate a GdkImage, and vice versa.
      	GdkPixmapImplWin32Data has a pointer to the GdkImage.
      	GdkImage::windowing_data is a pointer to the GdkPixmap.
      
      	This simplifies many pixmap and image related functions a lot, and
      	reduces duplicated code snippets. For instance, there is only one
      	place in gdk/win32 where CreateDIBSection() is called, in the
      	function _gdk_win32_new_pixmap(). Converting a bitmap (GdkPixmap)
      	to a Windows region is almost trivial, with the bitmap bits being
      	readily accessible in the associated GdkImage.
      
      	All blitting between GdkPixmaps, GdkWindows and GdkImages goes
      	through handled the _gdk_win32_blit() function, which calls
      	different functions to handle the cases of blitting from pixmaps,
      	inside windows (scrolling), or from windows, which all require
      	somewhat different handling.
      
      	2) Support 256-color mode. This has long been very broken, now it
      	works more or less OK. Keep the logical palette for each colormap
      	as small as possible while allocating and freeing colors. Select
      	and realize the logical palette associated with a GdkColormap into
      	a DC before drawing or blitting.
      
      	When the display is in 256-color mode, make it possible for the
      	user to override the size of the palette(s) used with either the
      	GDK_WIN32_MAX_COLORS environment variable, or a -max-colors
      	command line option. It is possible to reduce the palette size all
      	the way down to using just the 16 static colors (which causes the
      	system visual to be of type GDK_VISUAL_STATIC_COLOR. This could
      	possibly be useful if one desperately wants to avoid color
      	flashing. (Note that in order for this to work properly, an as of
      	yet not commited fix to gdkrgb.c is needed.)
      
      	Handle the palette messages. On WM_PALETTECHANGED, call
      	UpdateColors() for the given window hierarchy. Do this only if a
      	window in some other top-level window hierarchy caused the palette
      	change (realized a palette). Do this max five times in a row (an
      	arbitrarily chosen limit), though, otherwise redraw by generating
      	expose events. On WM_QUERYNEWPALETTE, cause a redraw of the whole
      	window hierarchy by generating GDK_EXPOSE events.
      
      	3) Code cleanup in general. For instance, remove the "emulated"
      	X11 structs ColormapStruct, Visual and XStandardColormap. Use the
      	new GDK_DEBUG_* flags for debugging output in the relevant source
      	files. Remove the unused colormap hash table in gdkcolor-win32.c
      
      	4) Plug some resource leaks.
      
      2002-02-14  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Use
      	g_filename_to_uri() to actually create legal URIs in the
      	text/uri-list data.
      bc1ec5c1
    • Manish Singh's avatar
      Added multiple selection API · ff612419
      Manish Singh authored
      2002-02-16  Manish Singh  <yosh@gimp.org>
      
              * gtk/gtkfilesel.[ch]: Added multiple selection API
      ff612419
    • Manish Singh's avatar
      use fabs() on a double instead of abs() · 66572327
      Manish Singh authored
      2002-02-16  Manish Singh  <yosh@gimp.org>
      
              * gdk/linux-fb/miarc.c: use fabs() on a double instead of abs()
      66572327
  2. 16 Feb, 2002 7 commits
    • Matthias Clasen's avatar
      More work on #71430. · b3d5f148
      Matthias Clasen authored
      	* examples/*/Makefile (CFLAGS): add deprecation guards.
      
      	* docs/tutorial/gtk-tut.sgml, examples/*/*.c: make most examples
      	deprecation-clean; the major offenders right now are the examples
      	that make heavy use of completely deprecated or broken widgets:
      	list, tree, text, pixmap, paned and progressbar. These will have
      	to be redone from scratch.
      
      	* demos/Makefile.am (INCLUDES): add -DGDK_PIXBUF_DISABLE_DEPRECATED.
      b3d5f148
    • Kristian Rietveld's avatar
      This commit lands the 'dy patch'. · 554838e4
      Kristian Rietveld authored
      Sun Feb 17 00:13:06 2002  Kristian Rietveld  <kris@gtk.org>
      
              This commit lands the 'dy patch'.
      
              * gtk/gtktreeview.c (validate_rows_handler): update top_row or dy,
              (gtk_tree_view_top_row_to_dy): new function,
              (gtk_tree_view_row_changed): update top_row or dy,
              (gtk_tree_view_rows_reordered): update top_row
      554838e4
    • Matthias Clasen's avatar
      rearrange rules to not emit the example start and end markers. · 21ac424e
      Matthias Clasen authored
      	* examples/extract.awk: rearrange rules to not emit the example
      	start and end markers.
      
      	* docs/tutorial/gtk-tut.sgml: turn the start and end markers into
      	SGML comments, so they don't clutter the formatted tutorial.
      21ac424e
    • Matthias Clasen's avatar
      Forgot to actually remove these. · e07fabae
      Matthias Clasen authored
      e07fabae
    • Tivo Leedjrv's avatar
      Updated Estonian translation. · 8f7ef454
      Tivo Leedjrv authored
      2002-02-16  Tõivo Leedjärv  <leedjarv@interest.ee>
      
              * et.po: Updated Estonian translation.
      8f7ef454
    • Havoc Pennington's avatar
      take GDK_HINT_RESIZE_INC into account, and handle negative coordinates · e672dd61
      Havoc Pennington authored
      2002-02-16  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/gtkwindow.c (gtk_window_parse_geometry): take
      	GDK_HINT_RESIZE_INC into account, and handle negative coordinates
      	correctly. (Can't email Owen - hope this is OK.)
      e672dd61
    • Owen Taylor's avatar
      Add key bindings on GtkScrolledWindow for arrow keys, PageUp/PageDown · 59fc8ff8
      Owen Taylor authored
      Fri Feb 15 20:09:45 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkscrolledwindow.[ch] gtk/gtkmarshallers.list:
              Add key bindings on GtkScrolledWindow for arrow keys,
              PageUp/PageDown Home/End to scroll the window.
              Bind Control-[Shift]-Tab to focus out of the scrolled
              window entirely. Allow the scrolled window to be
              focused if no child can be focused. (#63480)
      
              * gtk/gtkwidget.c (gtk_widget_hide): Remove the REALIZED()
              check - if we have visible but not mapped widgets
              (inside a unshown notebook tab, for instance), we need
              to track their size. (#65087, reported by Damon Chaplin.)
      
              * gtk/gtkcolorsel.c (palette_change_color): Shut up
              a warning.
      59fc8ff8
  3. 15 Feb, 2002 7 commits
  4. 14 Feb, 2002 7 commits
    • Matthias Clasen's avatar
      The following changes are the beginning of the work on #71430. · 542dec4c
      Matthias Clasen authored
      	* examples/extract.sh, examples/extract.awk: Make extraction work.
      
      	* examples/Makefile (SUBDIRS): Remove packer.
      
      	* examples/packer/pack.c, examples/packer/Makefile: Removed.
      
      	* docs/tutorial/gtk-tut.sgml: Fix the included examples far
      	enough to make them compile and (mostly) work, remove the packer
      	example.
      542dec4c
    • Owen Taylor's avatar
      Patch from Bill Haneman and Padraig O'Briain to add cursor_aspect_ratio · 8f5c2c76
      Owen Taylor authored
      Thu Feb 14 16:46:48 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkentry.c gtk/gtktextdisplay.c gtk/gtklabel.c
      	gtk/gtkstyle.[ch] gtk/gtkwidget.c: Patch from Bill
      	Haneman and Padraig O'Briain to add cursor_aspect_ratio
      	style property to GtkWidget to allow theming the aspect
      	ratio of the cursor.
      
      	* gtk/gtkentry.c gtk/gtktextview.c gtk/gtklabel.c
      	gtk/gtkwidget.c tests/testgtkrc: Move cursor-color style property
      	to GtkWidget.
      8f5c2c76
    • Owen Taylor's avatar
      Fix bug where we called get_surrounding on the context,. not the slave. · f412d947
      Owen Taylor authored
      Thu Feb 14 11:13:22 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_surrounding):
              Fix bug where we called get_surrounding on the context,.
              not the slave.
      f412d947
    • Owen Taylor's avatar
      Only pop the tooltip down on a select set of events, not on any unknown · b4edb9da
      Owen Taylor authored
      Thu Feb 14 00:10:09 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtktooltips.c (gtk_tooltips_event_handler): Only
              pop the tooltip down on a select set of events, not
              on any unknown event. (#71157, Jody Goldberg)
      
              * gtk/gtktooltips.c (gtk_tooltips_event_handler):
              Fix some warnings.
      b4edb9da
    • Owen Taylor's avatar
      A bunch of small allocation/drawing fixes. · a5915e56
      Owen Taylor authored
      Thu Feb 14 00:02:21 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkcalendar.c (gtk_calendar_size_request): A bunch of
              small allocation/drawing fixes.
      
              * gtk/gtkcalendar.c: Replace DAY_XPAD, DAY_YPAD with
              GtkWidget::focus-padding
      a5915e56
    • Owen Taylor's avatar
      Patch from Bill Haneman to draw to focus using gtk_paint_focus() with the · 5389f51d
      Owen Taylor authored
      Wed Feb 13 23:01:20 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkcalendar.c: Patch from Bill Haneman to draw
      	to focus using gtk_paint_focus() with the focus width
      	GtkWidget::focus-width. (#63075)
      
      	* gtk/gtkcalendar.c (gtk_calendar_size_request): Initialize
      	label_char_ascent/descent to 0. (#56925)
      5389f51d
    • Havoc Pennington's avatar
      validate a larger area, proportional to widget size, to fix #71427 · 07002791
      Havoc Pennington authored
      2002-02-13  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextview.c (gtk_text_view_flush_scroll): validate a
      	larger area, proportional to widget size, to fix
      	#71427 reported by Dennis Bjorklund
      07002791
  5. 13 Feb, 2002 8 commits
    • Havoc Pennington's avatar
      just go ahead and flush all the first validate stuff if it hasn't been · a760ad80
      Havoc Pennington authored
      2002-02-13  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextview.c (gtk_text_view_paint): just go ahead and flush
      	all the first validate stuff if it hasn't been done, presumably
      	someone called process_updates at a weird time.
      
      	* tests/testtext.c (do_apply_colors): terminate on >= end, not >
      	end, avoids infinite loop when end is at the end of the buffer.
      
      	* gtk/gtktextbtree.c (_gtk_text_btree_delete): when creating a
      	line data, we were adding it to the wrong line ("line" instead of
      	"start_line")
      a760ad80
    • Joe Shaw's avatar
      Don't chain up to the container's expose event. Instead call · 3a4a6edb
      Joe Shaw authored
      2002-02-13  Joe Shaw  <joe@ximian.com>
      
      	* gtk/gtktreeitem.c (gtk_tree_item_expose): Don't chain up to the
      	container's expose event.  Instead call
      	gtk_tree_item_expose_child() on each child.  Avoids a failed
      	g_assert() in gtk_container_propagate_expose().
      	(gtk_tree_item_expose_child): Added.  Synthesize an expose event
      	for our children.  Basically gtk_container_propagate_expose()
      	minus the g_assert().  (#71396)
      3a4a6edb
    • Tor Lillqvist's avatar
      Add some more GdkDebugFlags, for more fine-grained debugging output · d000d2bb
      Tor Lillqvist authored
      2002-02-13  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/gdkinternals.h: Add some more GdkDebugFlags, for more
      	fine-grained debugging output (mainly used in the Win32 backend).
      
      	* gdk/gdk.c: Corresponding additions to the gdk_debug_keys table.
      d000d2bb
    • Owen Taylor's avatar
      Implement Control-F1 as toggle-tooltips-mode. · 803a1f6f
      Owen Taylor authored
      Wed Feb 13 15:42:42 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktooltips.[ch] gtkwidget.c: Implement Control-F1
      	as toggle-tooltips-mode.
      
      	* gtk/gtktooltips.c: Remove parsing of tooltips style
      	string from here ... now in gtkrc.c.
      803a1f6f
    • Owen Taylor's avatar
      g_warning() if setting the local fails, like gdk_set_locale() did. · 6b838a22
      Owen Taylor authored
      Wed Feb 13 12:41:44 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkmain.c (gtk_init_check): g_warning() if setting
              the local fails, like gdk_set_locale() did.
      
              * gdk/x11/gdkselection-x11.c (gdk_text_property_to_utf8_list):
              Don't free local_list if local_count == 0. (#71241, reported
              by Kevin Vandersloot.)
      
              * gdk/x11/gdkselection-x11.c (gdk_text_property_to_text_list):
              Clean up list == NULL handling and failure.
      6b838a22
    • Owen Taylor's avatar
      Cast GType to long and use %ld to fix warning. (#71318, Morten Welinder) · 294e8eb7
      Owen Taylor authored
      Wed Feb 13 11:27:31 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* tests/testtreeview.c (typesystem_recurse): Cast GType
              to long	and use	%ld to	fix warning. (#71318, Morten Welinder)
      294e8eb7
    • Tim Janik's avatar
      fix figuring accel path and changing behaviour. · f42cc7f7
      Tim Janik authored
      Wed Feb 13 13:26:39 2002  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmenu.c: fix figuring accel path and changing behaviour.
      f42cc7f7
    • Tim Janik's avatar
      partly revert my recent expanding change to not expand the table if all · aa18bbf0
      Tim Janik authored
      Wed Feb 13 06:42:37 2002  Tim Janik  <timj@gtk.org>
      
              * gtk/gtktable.c (gtk_table_size_allocate_pass1): partly revert
              my recent expanding change to not expand the table if all children
              have not epxand behaviour. this fixes palette views which often
              use homogeneous non-expanding tables.
      aa18bbf0
  6. 12 Feb, 2002 5 commits
    • Matthias Clasen's avatar
      Add a (#ifdef 0'ed) test provoking a segfault in TIFFReadDirectory(). · a9a06ee4
      Matthias Clasen authored
      	* test-images.h (tiff1_test_3), test-loaders.c (main): Add a
      	(#ifdef 0'ed) test provoking a segfault in TIFFReadDirectory().
      
      	* io-ico.c (DecodeHeader): Check that pixbuf could be allocated.
      
      	* test-images.h (ico_test_2), test-loaders.c (main): Test the
      	previous change.
      
      	* io-wbmp.c (gdk_pixbuf__wbmp_image_load_increment): Don't write
      	beyond the end of buffer if width % 8 != 0.
      
      	* io-tga.c (try_preload): Enforce that ctx->hdr->type is one of
      	the supported types, otherwise parse_data_for_row () will not make
      	any progress, leading to an infinite loop.
      a9a06ee4
    • Kristian Rietveld's avatar
      emit row_deleted before we start unreffing the nodes ourselves · 67051d64
      Kristian Rietveld authored
      Tue Feb 12 14:27:41 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): emit
              row_deleted before we start unreffing the nodes ourselves
              (gtk_tree_model_sort_increment_stamp): always increment the stamp,
              and not only if the stamp equals 0 (pointed out by Darin Adler)
      
              * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): we want
              to continue the while loop and not the nested for loop.
      67051d64
    • Tim Janik's avatar
      always spread out the extra space allocated for the homogeneous case, as · 1cc88c4c
      Tim Janik authored
      Tue Feb 12 02:19:49 2002  Tim Janik  <timj@gtk.org>
      
              * gtk/gtktable.c (gtk_table_size_allocate_pass1): always spread out
              the extra space allocated for the homogeneous case, as we don't
              properly deal with readjusting table allocation within it. (for  this
              purpose, a GtkAlignment can be used as table parent).
      1cc88c4c
    • Darin Adler's avatar
      Consider reordering the row even when there's no sort column, if there's a · c823b8f6
      Darin Adler authored
              * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_row_changed):
              Consider reordering the row even when there's no sort column, if
              there's a default sort function.
              (gtk_tree_model_sort_rows_reordered): Use symbolic constants.
              (gtk_tree_model_sort_level_find_insert): Add code to handle the
              case where there is no sort column, but a default sort function.
              (gtk_tree_model_sort_insert_value): Add code to handle the case
              where there is no sort column an no default sort function.
              (gtk_tree_model_sort_set_model): Use symbolic constant.
              (gtk_tree_model_sort_reset_default_sort_func): Use symbolic constant.
      c823b8f6
    • Kjartan Maraas's avatar
      Updated Norwegian (bokml) translation. · fa5f2b74
      Kjartan Maraas authored
      2002-02-12  Kjartan Maraas  <kmaraas@gnome.org>
      
      	* no.po: Updated Norwegian (bokml) translation.
      fa5f2b74
  7. 11 Feb, 2002 2 commits