]> Pileus Git - ~andy/gtk/log
~andy/gtk
22 years agoDon't commit unless we got at least one hex digit. (#70619)
Owen Taylor [Mon, 18 Feb 2002 17:35:58 +0000 (17:35 +0000)]
Don't commit unless we got at least one hex digit. (#70619)

Mon Feb 18 12:31:52 2002  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress):
Don't commit unless we got at least one hex digit. (#70619)

22 years agoReleased 1.3.14
Owen Taylor [Mon, 18 Feb 2002 03:29:00 +0000 (03:29 +0000)]
Released 1.3.14

Sun Feb 17 21:30:49 2002  Owen Taylor  <otaylor@redhat.com>

        * Released 1.3.14

        * configure.in: Version 1.3.14, interface, binary age 0.

        * gdk/gdkregion-generic.c (miSubtractO): Fix out-of-bounds
        read. (#71619, reported by Morten Welinder)

        * gtk/gtkmenu.c (gtk_menu_class_init): Fix setting default.

        * gtk/gtkfilesel.c (gtk_file_selection_class_init): Add
        a select_multiple property to go along with thenew
        get/set_select_multiple.

        * gdk/gdkwindow.c: Patch from Soeren Sandmann to improve
        update debugging code. (#71703)

22 years agoUpdated for filesel changes.
Owen Taylor [Mon, 18 Feb 2002 02:34:58 +0000 (02:34 +0000)]
Updated for filesel changes.

Sun Feb 17 21:33:33 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtk-sections.txt: Updated for filesel changes.

22 years agoDon't set the PC_EXPLICIT flag for unused palette entries, that might have
Tor Lillqvist [Sun, 17 Feb 2002 22:03:29 +0000 (22:03 +0000)]
Don't set the PC_EXPLICIT flag for unused palette entries, that might have

2002-02-17  Tor Lillqvist  <tml@iki.fi>

* gdk/win32/gdkcolor-win32.c (free_colors): Don't set the
PC_EXPLICIT flag for unused palette entries, that might have
undesired side effects. Just set them to black. Black is always
present in a palette, so having superfluous black entries won't
cause any extra allocations from the system palette either when
realized.

* gdk/win32/gdkevents-win32.c
(gdk_event_translate:WM_QUERYNEWPALETTE): Don't do anything if the
system visual is static color, i.e. the user has told GDK to use
just the 16 static colors. In that case no need to redraw
anything, as the colors are static and by definition always
correctly mapped in the system palette.
(WM_PALETTECHANGED): Ditto, no need to call UpdateColors() either.

22 years agoMake the paned example deprecation-clean.
Matthias Clasen [Sun, 17 Feb 2002 19:59:33 +0000 (19:59 +0000)]
Make the paned example deprecation-clean.

* docs/tutorial/gtk-tut.sgml, examples/paned/paned.c,
examples/paned/Makefile: Make the paned example deprecation-clean.

* various ChangeLog files: correct my email.

22 years agoremove the packer example files as they don't exist in CVS.
jacob berkman [Sun, 17 Feb 2002 06:51:31 +0000 (06:51 +0000)]
remove the packer example files as they don't exist in CVS.

2002-02-17  jacob berkman  <jacob@ximian.com>

* Makefile.am: remove the packer example files as they don't exist
in CVS.

22 years agohm, check buttons look better for below.
Manish Singh [Sun, 17 Feb 2002 01:26:52 +0000 (01:26 +0000)]
hm, check buttons look better for below.

2002-02-16  Manish Singh  <yosh@gimp.org>

        * tests/testgtk.c: hm, check buttons look better for below.

22 years agoredid the filesel test. Added a way to set select multiple as a toggle
Manish Singh [Sun, 17 Feb 2002 01:16:24 +0000 (01:16 +0000)]
redid the filesel test. Added a way to set select multiple as a toggle

2002-02-16  Manish Singh  <yosh@gimp.org>

        * tests/testgtk.c: redid the filesel test. Added a way to set select
        multiple as a toggle button, and made show/hide fileops toggle
        buttons as well. get_selections() is called on OK and all the
        filenames selected are printed.

22 years agoRemove comment about the gtk-1-3-win32-production branch having more
Tor Lillqvist [Sun, 17 Feb 2002 00:35:41 +0000 (00:35 +0000)]
Remove comment about the gtk-1-3-win32-production branch having more

2002-02-17  Tor Lillqvist  <tml@iki.fi>

* README.win32: Remove comment about the gtk-1-3-win32-production
branch having more functionality.

22 years agoMassive changes. Too many to list here, but I'll try a summary:
Tor Lillqvist [Sun, 17 Feb 2002 00:25:05 +0000 (00:25 +0000)]
Massive changes. Too many to list here, but I'll try a summary:

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.

22 years agoAdded multiple selection API
Manish Singh [Sun, 17 Feb 2002 00:07:48 +0000 (00:07 +0000)]
Added multiple selection API

2002-02-16  Manish Singh  <yosh@gimp.org>

        * gtk/gtkfilesel.[ch]: Added multiple selection API

22 years agouse fabs() on a double instead of abs()
Manish Singh [Sun, 17 Feb 2002 00:06:00 +0000 (00:06 +0000)]
use fabs() on a double instead of abs()

2002-02-16  Manish Singh  <yosh@gimp.org>

        * gdk/linux-fb/miarc.c: use fabs() on a double instead of abs()

22 years ago More work on #71430.
Matthias Clasen [Sat, 16 Feb 2002 23:52:30 +0000 (23:52 +0000)]
More work on #71430.

* 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.

22 years agoThis commit lands the 'dy patch'.
Kristian Rietveld [Sat, 16 Feb 2002 23:13:37 +0000 (23:13 +0000)]
This commit lands the 'dy patch'.

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

22 years agorearrange rules to not emit the example start and end markers.
Matthias Clasen [Sat, 16 Feb 2002 18:31:14 +0000 (18:31 +0000)]
rearrange rules to not emit the example start and end markers.

* 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.

22 years agoForgot to actually remove these.
Matthias Clasen [Sat, 16 Feb 2002 18:05:19 +0000 (18:05 +0000)]
Forgot to actually remove these.

22 years agoUpdated Estonian translation.
Tõivo Leedjärv [Sat, 16 Feb 2002 16:51:54 +0000 (16:51 +0000)]
Updated Estonian translation.

2002-02-16  Tõivo Leedjärv  <leedjarv@interest.ee>

        * et.po: Updated Estonian translation.

22 years agotake GDK_HINT_RESIZE_INC into account, and handle negative coordinates
Havoc Pennington [Sat, 16 Feb 2002 14:41:15 +0000 (14:41 +0000)]
take GDK_HINT_RESIZE_INC into account, and handle negative coordinates

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.)

22 years agoAdd key bindings on GtkScrolledWindow for arrow keys, PageUp/PageDown
Owen Taylor [Sat, 16 Feb 2002 01:34:26 +0000 (01:34 +0000)]
Add key bindings on GtkScrolledWindow for arrow keys, PageUp/PageDown

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.

22 years agoDepend on gtk.ico.
Tor Lillqvist [Fri, 15 Feb 2002 23:55:42 +0000 (23:55 +0000)]
Depend on gtk.ico.

2002-02-16  Tor Lillqvist  <tml@iki.fi>

* gdk/win32/rc/Makefile.am (gdk-win32res.lo): Depend on gtk.ico.

* gdk/win32/rc/gtk.ico: Use the real GTK logo. Thanks to Jernej
Simoncic for providing the nice multi-resolution .ico file.

22 years agoNew function to make sure that the weights sum up to the correct total
Matthias Clasen [Fri, 15 Feb 2002 21:11:25 +0000 (21:11 +0000)]
New function to make sure that the weights sum up to the correct total

* pixops/pixops.c (correct_total): New function to make sure
that the weights sum up to the correct total without introducing
negative weights.
(tile_make_weights, bilinear_make_fast_weights,
bilinear_make_weights): Use correct_total.

22 years agogtk/tmpl/gtkimage.sgml removed wrong sentence from gtk_image_new() docs
Alexey Malyshev [Fri, 15 Feb 2002 19:22:37 +0000 (19:22 +0000)]
gtk/tmpl/gtkimage.sgml removed wrong sentence from gtk_image_new() docs

2002-02-15            Alexey Malyshev       <maa@sparc.spb.su>
        * gtk/tmpl/gtkimage.sgml
removed wrong sentence from gtk_image_new() docs

22 years agonew function (gtk_tree_store_clear): traverse the tree, so we emit
Kristian Rietveld [Fri, 15 Feb 2002 18:38:02 +0000 (18:38 +0000)]
new function (gtk_tree_store_clear): traverse the tree, so we emit

Fri Feb 15 19:38:00 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtktreestore.c (gtk_tree_store_clear_traverse): new function
        (gtk_tree_store_clear): traverse the tree, so we emit row_deleted
        for every node. This way we don't have confused row refs crashing the
        application. (#70631)

22 years agoOnly queue a draw on the handle, not the whole widget. #71530.
Richard Hult [Fri, 15 Feb 2002 08:53:14 +0000 (08:53 +0000)]
Only queue a draw on the handle, not the whole widget. #71530.

2002-02-14  Richard Hult  <rhult@codefactory.se>

* gtk/gtkpaned.c (gtk_paned_enter): Only queue a draw on the
handle, not the whole widget. #71530.
(gtk_paned_leave): Likewise.

22 years agoadd new signal 'adjust_bounds' to potentialy change the bounds before
Jody Goldberg [Fri, 15 Feb 2002 05:53:08 +0000 (05:53 +0000)]
add new signal 'adjust_bounds' to potentialy change the bounds before

2002-02-14  Jody Goldberg <jody@gnome.org>

* gtk/gtkrange.c (gtk_range_class_init) : add new signal
  'adjust_bounds' to potentialy change the bounds before assigning the
  new value and camping it to the existing bounds.
(gtk_range_internal_set_value) : used here. #68800.
* gtk/gtkmarshalers.list : add VOID:DOUBLE

22 years agoFile Edit Options Buffers Tools Help ...
Owen Taylor [Fri, 15 Feb 2002 02:45:09 +0000 (02:45 +0000)]
File Edit Options Buffers Tools Help                                                                                                                                       Thu Feb 14 21:08:49 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkglobals.c: Remove GDKVAR from C file, see
        if anyone complains. (#71317, Morten Welinder.)

22 years ago The following changes are the beginning of the work on #71430.
Matthias Clasen [Thu, 14 Feb 2002 22:49:57 +0000 (22:49 +0000)]
The following changes are the beginning of the work on #71430.

* 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.

22 years agoPatch from Bill Haneman and Padraig O'Briain to add cursor_aspect_ratio
Owen Taylor [Thu, 14 Feb 2002 21:49:02 +0000 (21:49 +0000)]
Patch from Bill Haneman and Padraig O'Briain to add cursor_aspect_ratio

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.

22 years agoFix bug where we called get_surrounding on the context,. not the slave.
Owen Taylor [Thu, 14 Feb 2002 16:18:32 +0000 (16:18 +0000)]
Fix bug where we called get_surrounding on the context,. not the slave.

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.

22 years agoOnly pop the tooltip down on a select set of events, not on any unknown
Owen Taylor [Thu, 14 Feb 2002 05:18:44 +0000 (05:18 +0000)]
Only pop the tooltip down on a select set of events, not on any unknown

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.

22 years agoA bunch of small allocation/drawing fixes.
Owen Taylor [Thu, 14 Feb 2002 05:05:45 +0000 (05:05 +0000)]
A bunch of small allocation/drawing fixes.

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

22 years agoPatch from Bill Haneman to draw to focus using gtk_paint_focus() with the
Owen Taylor [Thu, 14 Feb 2002 04:05:13 +0000 (04:05 +0000)]
Patch from Bill Haneman to draw to focus using gtk_paint_focus() with the

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)

22 years agovalidate a larger area, proportional to widget size, to fix #71427
Havoc Pennington [Thu, 14 Feb 2002 00:06:13 +0000 (00:06 +0000)]
validate a larger area, proportional to widget size, to fix #71427

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

22 years agojust go ahead and flush all the first validate stuff if it hasn't been
Havoc Pennington [Wed, 13 Feb 2002 23:44:03 +0000 (23:44 +0000)]
just go ahead and flush all the first validate stuff if it hasn't been

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")

22 years agoDon't chain up to the container's expose event. Instead call
Joe Shaw [Wed, 13 Feb 2002 22:49:40 +0000 (22:49 +0000)]
Don't chain up to the container's expose event. Instead call

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)

22 years agoAdd some more GdkDebugFlags, for more fine-grained debugging output
Tor Lillqvist [Wed, 13 Feb 2002 21:59:47 +0000 (21:59 +0000)]
Add some more GdkDebugFlags, for more fine-grained debugging output

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.

22 years agoImplement Control-F1 as toggle-tooltips-mode.
Owen Taylor [Wed, 13 Feb 2002 20:54:11 +0000 (20:54 +0000)]
Implement Control-F1 as toggle-tooltips-mode.

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.

22 years agog_warning() if setting the local fails, like gdk_set_locale() did.
Owen Taylor [Wed, 13 Feb 2002 17:48:01 +0000 (17:48 +0000)]
g_warning() if setting the local fails, like gdk_set_locale() did.

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.

22 years agoCast GType to long and use %ld to fix warning. (#71318, Morten Welinder)
Owen Taylor [Wed, 13 Feb 2002 16:40:31 +0000 (16:40 +0000)]
Cast GType to long and use %ld to fix warning. (#71318, Morten Welinder)

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)

22 years agofix figuring accel path and changing behaviour.
Tim Janik [Wed, 13 Feb 2002 12:28:33 +0000 (12:28 +0000)]
fix figuring accel path and changing behaviour.

Wed Feb 13 13:26:39 2002  Tim Janik  <timj@gtk.org>

        * gtk/gtkmenu.c: fix figuring accel path and changing behaviour.

22 years agopartly revert my recent expanding change to not expand the table if all
Tim Janik [Wed, 13 Feb 2002 05:48:56 +0000 (05:48 +0000)]
partly revert my recent expanding change to not expand the table if all

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.

22 years agoAdd a (#ifdef 0'ed) test provoking a segfault in TIFFReadDirectory().
Matthias Clasen [Tue, 12 Feb 2002 23:28:05 +0000 (23:28 +0000)]
Add a (#ifdef 0'ed) test provoking a segfault in TIFFReadDirectory().

* 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.

22 years agoemit row_deleted before we start unreffing the nodes ourselves
Kristian Rietveld [Tue, 12 Feb 2002 17:48:02 +0000 (17:48 +0000)]
emit row_deleted before we start unreffing the nodes ourselves

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.

22 years agoalways spread out the extra space allocated for the homogeneous case, as
Tim Janik [Tue, 12 Feb 2002 01:39:28 +0000 (01:39 +0000)]
always spread out the extra space allocated for the homogeneous case, as

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).

22 years agoConsider reordering the row even when there's no sort column, if there's a
Darin Adler [Tue, 12 Feb 2002 01:00:22 +0000 (01:00 +0000)]
Consider reordering the row even when there's no sort column, if there's a

        * 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.

22 years agoUpdated Norwegian (bokmål) translation.
Kjartan Maraas [Tue, 12 Feb 2002 00:53:11 +0000 (00:53 +0000)]
Updated Norwegian (bokmål) translation.

2002-02-12  Kjartan Maraas  <kmaraas@gnome.org>

* no.po: Updated Norwegian (bokmål) translation.

22 years agoUpdated Portuguese translation.
Duarte Loreto [Mon, 11 Feb 2002 23:52:37 +0000 (23:52 +0000)]
Updated Portuguese translation.

2002-02-11  Duarte Loreto <happyguy_pt@hotmail.com>

        * pt.po: Updated Portuguese translation.

22 years agoFix ChangeLog
Søren Sandmann Pedersen [Mon, 11 Feb 2002 22:21:19 +0000 (22:21 +0000)]
Fix ChangeLog

22 years agoconverted the "Delete File" dialog to GtkMessageDialog. Marked missing
Sven Neumann [Mon, 11 Feb 2002 21:17:11 +0000 (21:17 +0000)]
converted the "Delete File" dialog to GtkMessageDialog. Marked missing

2002-02-11  Sven Neumann  <sven@gimp.org>

* gtk/gtkfilesel.c: converted the "Delete File" dialog to
GtkMessageDialog. Marked missing strings for translation.

22 years agoOpaque resizing + prelighting for paned widget. move reszing logic to
Soeren Sandmann [Mon, 11 Feb 2002 21:10:33 +0000 (21:10 +0000)]
Opaque resizing + prelighting for paned widget. move reszing logic to

Mon Feb 11 22:03:15 2002  Soeren Sandmann  <sandmann@daimi.au.dk>

* gtk/gtkpaned.[ch]: Opaque resizing + prelighting for paned widget.
* gtk/gtkvpaned.c, gtk/gtkvpaned.h: move reszing logic to gtkpaned.c

22 years agoImplements DnD scrolling and fixes #71139
Kristian Rietveld [Mon, 11 Feb 2002 20:46:49 +0000 (20:46 +0000)]
Implements DnD scrolling and fixes #71139

Mon Feb 11 21:42:17 2002  Kristian Rietveld  <kris@gtk.org>

        Implements DnD scrolling and fixes #71139

        * gtk/gtktreeview.c (gtk_tree_view_vertical_autoscroll): new function,
        (scroll_row_timeout): new function,
        (gtk_tree_view_drag_motion): create scroll_timeout, so
        scroll_row_timeout gets called

22 years agoFix handing of overall alpha.
Owen Taylor [Mon, 11 Feb 2002 19:36:12 +0000 (19:36 +0000)]
Fix handing of overall alpha.

Mon Feb 11 14:31:53 2002  Owen Taylor  <otaylor@redhat.com>

        * pixops/pixops.c (bilinear_make_weights): Fix handing of
        overall alpha.

22 years agoset upper member of hadjustment correct, so the hscrollbars of lists
Kristian Rietveld [Mon, 11 Feb 2002 16:58:23 +0000 (16:58 +0000)]
set upper member of hadjustment correct, so the hscrollbars of lists

Mon Feb 11 17:54:46 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper
        member of hadjustment correct, so the hscrollbars of lists smaller
        than 1 page (in width) are somewhat saner

22 years agofix signature to match implementation
jacob berkman [Mon, 11 Feb 2002 16:34:27 +0000 (16:34 +0000)]
fix signature to match implementation

2002-02-11  jacob berkman  <jacob@ximian.com>

* gdk/gdkwindow.h (gdk_get_default_root_window): fix signature to
match implementation

22 years agoset value of func to NULL during initialization (we don't use func in the
Kristian Rietveld [Mon, 11 Feb 2002 15:48:22 +0000 (15:48 +0000)]
set value of func to NULL during initialization (we don't use func in the

Mon Feb 11 16:48:34 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtkliststore.c (gtk_list_store_set_valist): set value of
        func to NULL during initialization (we don't use func in the
        !SORTED case, so we just silent the compiler here) (#71029)

22 years agoinstall presize handler, so the validate_rows_handler will always be run
Kristian Rietveld [Mon, 11 Feb 2002 15:37:53 +0000 (15:37 +0000)]
install presize handler, so the validate_rows_handler will always be run

Mon Feb 11 16:40:44 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtktreeview.c (gtk_tree_view_set_model): install presize
        handler, so the validate_rows_handler will always be run (#70997)

22 years agoGet the damn fix right, see my latest ChangeLog entry.
Kristian Rietveld [Mon, 11 Feb 2002 15:06:59 +0000 (15:06 +0000)]
Get the damn fix right, see my latest ChangeLog entry.

22 years agoAdd bug number
Kristian Rietveld [Sun, 10 Feb 2002 23:03:05 +0000 (23:03 +0000)]
Add bug number

22 years agoincrease value of new_location by one if cmp_a > 0 and we hit the end of
Kristian Rietveld [Sun, 10 Feb 2002 22:53:20 +0000 (22:53 +0000)]
increase value of new_location by one if cmp_a > 0 and we hit the end of

Sun Feb 10 22:20:46 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): increase
        value of new_location by one if cmp_a > 0 and we hit the end of
        the list and pass NULL instead of a 'NULL-iter' with
        _rows_reordered

22 years agoEnable some tests which should work now.
Matthias Clasen [Sun, 10 Feb 2002 21:06:15 +0000 (21:06 +0000)]
Enable some tests which should work now.

* test-loaders.c (main): Enable some tests which should work
now.

* io-wbmp.c (gdk_pixbuf__wbmp_image_load_increment): Detect
invalid image dimensions and insufficient memory.

* io-tga.c (try_preload): Detect invalid image dimensions.
(gdk_pixbuf__tga_stop_load): Don't try to unref NULL pointers.

* io-ico.c (DecodeHeader): Detect some invalid headers and
don't segfault.

22 years agoAdd three Ethiopic input methods from Daniel Yacob.
Owen Taylor [Sun, 10 Feb 2002 17:46:08 +0000 (17:46 +0000)]
Add three Ethiopic input methods from Daniel Yacob.

Sun Feb 10 12:32:44 2002  Owen Taylor  <otaylor@redhat.com>

        * modules/input/Makefile.am modules/input/{imam-et.c, imti-er.c,
        imti-et.c} po/POTFILES.in: Add three Ethiopic input methods from
        Daniel Yacob.

22 years agoSet finalize handler; (gtk_calendar_finalize): Rename gtk_calendar_destroy
Anders Carlsson [Sun, 10 Feb 2002 14:33:06 +0000 (14:33 +0000)]
Set finalize handler; (gtk_calendar_finalize): Rename gtk_calendar_destroy

2002-02-10  Anders Carlsson  <andersca@gnu.org>

* gtk/gtkcalendar.c (gtk_calendar_class_init): Set finalize handler;
(gtk_calendar_finalize): Rename gtk_calendar_destroy to gtk_calendar_finalize
since ::destroy can be called multiple times, resulting in double-freeing memory.

22 years agodon't reduce the scroll rect size by the scroll amount
Hans Breuer [Sun, 10 Feb 2002 13:18:51 +0000 (13:18 +0000)]
don't reduce the scroll rect size by the scroll amount

2002-02-10  Hans Breuer  <hans@breuer.org>

* gdk/win32/gdkgeometry-win32.c : don't reduce the scroll
rect size by the scroll amount

* gdk/win32/gdkwindow-win32.c
* gdk/win32/gdkselection-win32.c : added some casts to
make it compile with msvc's strict type checking

* gtk/fnmatch.c : #include <ctype.h> again for tolower
prototype. The fnmatch() code assumes to be in the crt
locale though it is feeded by utf8 strings from gtkfilesel.c

* gtk/gtkfilesel.c : let ->cmpl_text be a strdup managed by
_CompletionDir instead of referencing already freed memory

* gtk/gtktooltips.c (gtk_tooltips_init) : fix typo to
gtk_rc_parse_string (theDefaultTooltipColor) once as it
was intended

* tests/makefile.msc : added more tests

* tests/testgtk.c (create_list) : don't try to load gtkenums.h
from the current directory use ../gtk/gtkenums.h instead

22 years agoFix a double «The» typo in a string.
Kjartan Maraas [Sun, 10 Feb 2002 11:11:01 +0000 (11:11 +0000)]
Fix a double «The» typo in a string.

2002-02-10  Kjartan Maraas  <kmaraas@gnome.org>

* gtk/gtksizegroup.c: Fix a double «The» typo in a string.

22 years agoUpdated Norwegian (bokmål) translation.
Kjartan Maraas [Sun, 10 Feb 2002 10:36:09 +0000 (10:36 +0000)]
Updated Norwegian (bokmål) translation.

2002-02-10  Kjartan Maraas  <kmaraas@gnome.org>

* no.po: Updated Norwegian (bokmål) translation.

22 years agoUpdated Danish translation.
Ole Laursen [Sat, 9 Feb 2002 22:24:23 +0000 (22:24 +0000)]
Updated Danish translation.

2002-02-09  Ole Laursen  <olau@hardworking.dk>

* da.po: Updated Danish translation.

22 years agoAvoid segfault for selectable tab labels (even without a segfault, they
Matthias Clasen [Sat, 9 Feb 2002 22:12:04 +0000 (22:12 +0000)]
Avoid segfault for selectable tab labels (even without a segfault, they

* gtk/gtknotebook.c (gtk_notebook_set_focus_child): Avoid segfault
for selectable tab labels (even without a segfault, they make the
notebook almost unusable, though).  (#69985)

* gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path): Silently do
nothing if the parent is not a menu.  (#66492)

* gtk/gtkitemfactory.c (gtk_item_factory_from_widget,
gtk_item_factory_path_from_widget): Try fetching the return value
from menu_item->submenu as a fallback.  (#69020)

22 years agoconvert the iter to a child iter again, after doing _iter_children. It's
Kristian Rietveld [Sat, 9 Feb 2002 21:56:30 +0000 (21:56 +0000)]
convert the iter to a child iter again, after doing _iter_children. It's

Sat Feb  9 22:57:43 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtktreemodelsort.c (gtk_tree_model_sort_build_level): convert
        the iter to a child iter again, after doing _iter_children. It's
        possible that _iter_children added some rows and updated the stamp.

22 years agoUpdated Finnish translation and converted it to UTF-8.
Pauli Virtanen [Sat, 9 Feb 2002 21:55:40 +0000 (21:55 +0000)]
Updated Finnish translation and converted it to UTF-8.

2002-02-09  Pauli Virtanen  <ptvirtan@cc.hut.fi>

* fi.po: Updated Finnish translation and converted it to UTF-8.

22 years agoUse == rather than = in sanity checks. Ouch!
Daniel Elstner [Sat, 9 Feb 2002 20:44:12 +0000 (20:44 +0000)]
Use == rather than = in sanity checks. Ouch!

2002-02-09  Daniel Elstner  <daniel.elstner@gmx.net>

* gtk/gtktextchild.c: Use == rather than = in sanity checks.  Ouch!

22 years agoAdd missing curled braces so that it doesn't always return. Also indent
Daniel Elstner [Sat, 9 Feb 2002 19:14:54 +0000 (19:14 +0000)]
Add missing curled braces so that it doesn't always return. Also indent

2002-02-09  Daniel Elstner  <daniel.elstner@gmx.net>

* gtk/gtktextchild.c (CHECK_IN_BUFFER_RETURN): Add missing curled braces so that it doesn't always return.  Also indent both CHECK_IN_BUFFER* macros properly, and make use of G_STMT_START/G_STMT_END.

22 years agoAdd prototype for _gtk_binding_reset_parsed().
Owen Taylor [Sat, 9 Feb 2002 18:37:40 +0000 (18:37 +0000)]
Add prototype for _gtk_binding_reset_parsed().

Sat Feb  9 13:27:14 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkbindings.h: Add prototype for
        _gtk_binding_reset_parsed().

22 years agoadd missed changelog entry
Owen Taylor [Sat, 9 Feb 2002 18:22:12 +0000 (18:22 +0000)]
add missed changelog entry

22 years agoAdd tools and images used for creating the check/radio button images in
Owen Taylor [Sat, 9 Feb 2002 18:20:45 +0000 (18:20 +0000)]
Add tools and images used for creating the check/radio button images in

Sat Feb  9 13:19:20 2002  Owen Taylor  <otaylor@redhat.com>

* configure.in gtk/Makefile.am gtk/theme-bits/*: Add
tools and images used for creating the check/radio
button images in the default theme.

22 years agoupdate a bit
Gediminas Paulauskas [Sat, 9 Feb 2002 18:17:56 +0000 (18:17 +0000)]
update a bit

22 years agoKeyboard navigation for GtkPaned F6: cycle between panes. F8: focus handle
Soeren Sandmann [Sat, 9 Feb 2002 13:05:02 +0000 (13:05 +0000)]
Keyboard navigation for GtkPaned F6: cycle between panes. F8: focus handle

Sat Feb  9 13:58:41 2002  Soeren Sandmann  <sandmann@daimi.au.dk>

* gtk/gtkpaned.[ch]: Keyboard navigation for GtkPaned
F6: cycle between panes.
F8: focus handle (#53584)

* tests/testgtk.c: Add test cases for GtkPaned keyboard
navigation.

22 years agoXCopyArea with subwindow_mode = IncludeInferiors. (#70999)
Owen Taylor [Sat, 9 Feb 2002 05:24:25 +0000 (05:24 +0000)]
XCopyArea with subwindow_mode = IncludeInferiors. (#70999)

Sat Feb  9 00:16:31 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image):
        XCopyArea with subwindow_mode = IncludeInferiors.
        (#70999)

        * demos/testpixbuf-save.c (configure_cb): Fix a minor
        memory management problem.

22 years agoForce all weight arrays to sum exactly to 65535. (Fixes #70971, reported
Owen Taylor [Sat, 9 Feb 2002 04:14:53 +0000 (04:14 +0000)]
Force all weight arrays to sum exactly to 65535. (Fixes #70971, reported

Fri Feb  8 23:11:15 2002  Owen Taylor  <otaylor@redhat.com>

        * pixops/pixops.c: Force all weight arrays to sum exactly
        to 65535. (Fixes #70971, reported by Federico Mena Quintero)

        * Makefile.am (libgdk_pixbuf_1_3_la_DEPENDENCIES): Add
        libpixops.la.

22 years agoFix problem with string-valued parameters (#70012, Johan Dahlin.)
Owen Taylor [Sat, 9 Feb 2002 01:29:14 +0000 (01:29 +0000)]
Fix problem with string-valued parameters (#70012, Johan Dahlin.)

Fri Feb  8 20:24:58 2002  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkbindings.c (binding_compose_params): Fix problem
with string-valued parameters (#70012, Johan Dahlin.)

* gtk/gtkentry.c (gtk_entry_delete_whitespace): Fix
white space deletion.

22 years agofix evil ref bug where the wrong row and a deleted row was unreffed. Found
Jonathan Blandford [Sat, 9 Feb 2002 01:28:00 +0000 (01:28 +0000)]
fix evil ref bug where the wrong row and a deleted row was unreffed. Found

Fri Feb  8 21:25:56 2002  Jonathan Blandford  <jrb@redhat.com>

* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): fix
evil ref bug where the wrong row and a deleted row was unreffed.
Found by Darin Adler <darin@bentspoon.com>

22 years agoAdd a function to delete all bindings add by gtk_binding_parse_binding()
Owen Taylor [Sat, 9 Feb 2002 00:19:29 +0000 (00:19 +0000)]
Add a function to delete all bindings add by gtk_binding_parse_binding()

Fri Feb  8 18:46:13 2002  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkbindings.[ch] (_gtk_binding_reset_parsed): Add
a function to delete all bindings add by
gtk_binding_parse_binding() when rereading RC files.

* gtk/gtkrc.c (gtk_rc_reparse_all_for_settings): Reset
binding set content as well as RC content.

* gtk/gtkbindings.c (binding_compose_params): Fix
various GValue handling problems.

* gtk/gtkentry.c (gtk_entry_class_init): Remove bindings
for C-b, C-f, M-b, M-f, C-a, C-e, C-w, C-y, M-space, C-u,
C-k, M-\, M-d, C-d.

* gtk/gtktextview.c (gtk_text_view_class_init): Remove
same bindings as GtkEntry, plus C-n, C-p, C-space

        * gtk/gtkrc.key.default gtk/gtkrc.key.emacs gtk/Makefile.am:
Add Emacs and Default key themes.

22 years agoRemove a tiny bit more dead code.
Darin Adler [Sat, 9 Feb 2002 00:12:30 +0000 (00:12 +0000)]
Remove a tiny bit more dead code.

* gtk/gtktreeview.c: (gtk_tree_view_map_expanded_rows_helper):
Remove a tiny bit more dead code.

22 years agoFix stale pointer bug.
Darin Adler [Fri, 8 Feb 2002 23:26:29 +0000 (23:26 +0000)]
Fix stale pointer bug.

* gtk/gtktreeview.c: (gtk_tree_view_map_expanded_rows_helper):
Fix stale pointer bug.

22 years agoFix comment; PixopsInterpType -> GdkInterpType.
Federico Mena Quintero [Fri, 8 Feb 2002 19:52:23 +0000 (19:52 +0000)]
Fix comment; PixopsInterpType -> GdkInterpType.

2002-02-08  Federico Mena Quintero  <federico@ximian.com>

* pixops/pixops.h: Fix comment; PixopsInterpType -> GdkInterpType.

22 years agoReturn FALSE if not shoing the titles. (#70959, Thomas Leonard)
Owen Taylor [Fri, 8 Feb 2002 19:39:26 +0000 (19:39 +0000)]
Return FALSE if not shoing the titles. (#70959, Thomas Leonard)

Fri Feb  8 14:30:14 2002  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkclist.c (title_focus_in): Return FALSE if
not shoing the titles. (#70959, Thomas Leonard)

22 years agoisspace -> g_ascii_isspace Remove gdki8n.h include. Remove <ctype.h>
Darin Adler [Fri, 8 Feb 2002 19:12:34 +0000 (19:12 +0000)]
isspace -> g_ascii_isspace Remove gdki8n.h include. Remove <ctype.h>

* demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace
* gdk/x11/gdkim-x11.c: Remove gdki8n.h include.
* gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include.
* gdk/x11/gdkmain-x11.c: Remove <ctype.h> include.
* gtk/fnmatch.c: Remove <ctype.h> include.
* gtk/gtkaccelgroup.c: Remove <ctype.h> include.
* gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper ->
g_unichar_toupper, toupper -> g_unichar_totile
* gtk/gtkbindings.c: Remove <ctype.h> include.
* gtk/gtkfontsel.c: Remove <ctype.h> include.
* gtk/gtkiconfactory.c: Remove <ctype.h> include.
* gtk/gtkinputdialog.c: Remove <ctype.h> include.
* gtk/gtklabel.c: Remove <ctype.h> include.
* gtk/gtkmain.c: Remove <ctype.h> include.
* gtk/gtkmenu.c: Remove <ctype.h> include.
* gtk/gtkoldeditable.c: Remove <ctype.h> include.
* gtk/gtkrc.c: Remove <ctype.h> include.
* gtk/gtktextbtree.c: Remove <ctype.h> include.
* gtk/gtktextiter.c: Remove <ctype.h> include.
* gtk/gtktextsegment.c: Remove <ctype.h> include.

22 years agoWean this from <ctype.h>.
Darin Adler [Fri, 8 Feb 2002 19:08:20 +0000 (19:08 +0000)]
Wean this from <ctype.h>.

* io-xbm.c: (next_int): Wean this from <ctype.h>.

22 years agogtk/gtkfilesel.c gtk/gtkgamma.c use stock labels for dialog action
Sven Neumann [Fri, 8 Feb 2002 17:35:06 +0000 (17:35 +0000)]
gtk/gtkfilesel.c gtk/gtkgamma.c use stock labels for dialog action

2002-02-08  Sven Neumann  <sven@gimp.org>

* gtk/gtkfilesel.c
* gtk/gtkgamma.c
* gtk/gtkinputdialog.c: use stock labels for dialog action buttons.

22 years agoPass the ref_node and unref_node calls through to the child model.
Darin Adler [Fri, 8 Feb 2002 17:13:14 +0000 (17:13 +0000)]
Pass the ref_node and unref_node calls through to the child model.

* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node),
(gtk_tree_model_sort_unref_node): Pass the ref_node and
unref_node calls through to the child model.

22 years agos/__FUNCTION__/G_GNUC_FUNCTION/ ditto
Laszlo Peter [Fri, 8 Feb 2002 16:23:05 +0000 (16:23 +0000)]
s/__FUNCTION__/G_GNUC_FUNCTION/ ditto

2002-02-08  Laszlo Peter  <laca@ireland.sun.com>

* gtk/gtktextchild.c: s/__FUNCTION__/G_GNUC_FUNCTION/
* gtk/gtktextview.c: ditto

22 years agoUpdated Ukrainian translation
Yuri Syrota [Fri, 8 Feb 2002 14:56:33 +0000 (14:56 +0000)]
Updated Ukrainian translation

22 years agoUpdated Ukrainian translation
Yuri Syrota [Fri, 8 Feb 2002 13:58:26 +0000 (13:58 +0000)]
Updated Ukrainian translation

22 years agoUpdated Ukrainian translation
Yuri Syrota [Fri, 8 Feb 2002 10:16:14 +0000 (10:16 +0000)]
Updated Ukrainian translation

22 years agoclean up a little
Owen Taylor [Fri, 8 Feb 2002 03:25:31 +0000 (03:25 +0000)]
clean up a little

22 years agoadd change_value virtual function, to fix build
Havoc Pennington [Fri, 8 Feb 2002 02:38:44 +0000 (02:38 +0000)]
add change_value virtual function, to fix build

2002-02-07  Havoc Pennington  <hp@pobox.com>

* gtk/gtkspinbutton.h (struct _GtkSpinButtonClass): add
change_value virtual function, to fix build

* gtk/gtkpixmap.c (gtk_pixmap_class_init): parent_class was
from GtkWidget not GtkMisc. Not that it ever mattered.

22 years agoAdd ::move-focus-out signal to handle Control[-Shift]-Tab and
Owen Taylor [Fri, 8 Feb 2002 01:10:25 +0000 (01:10 +0000)]
Add ::move-focus-out signal to handle Control[-Shift]-Tab and

Thu Feb  7 19:52:00 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtknotebook.[ch]: Add ::move-focus-out signal
to handle Control[-Shift]-Tab and Control-arrow
bindings and implement bindings as per #53612.

* gtk/gtktextview.c (gtk_text_view_move_focus): Fix
fetching the toplevel for plug-socket.

* gtk/gtknotebook.c (gtk_notebook_class_init): Remove
bindings for Return/Enter to select the page.

* gtk/gtknotebook.c (gtk_notebook_change_current_page):
Beep at ends.

* gtk/gtknotebook.c (focus_tabs_move): Don't wrap around
and beep at ends.

* gtk/gtknotebook.c (gtk_notebook_focus): When focusing into
the page with the arrow keys, focus the first widget,
not the directionally closest widget.

22 years agoConvert to using binding set for doing key bindings. (#62622, Requested by
Owen Taylor [Fri, 8 Feb 2002 00:02:52 +0000 (00:02 +0000)]
Convert to using binding set for doing key bindings. (#62622, Requested by

Thu Feb  7 19:00:10 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkspinbutton.c (gtk_spin_button_key_release): Convert
        to using  binding set for doing key bindings. (#62622,
        Requested by Skip Montaro)

        * gtk/gtkwindow.c (gtk_window_class_init): Add control-arrow
        bindings as overrides along with control-tab bindings.

        * gtk/gtknotebook.c (gtk_notebook_class_init): Fix return
        type for ::focus_tab signal.

22 years agoFixes #70782 and some drag dest rectangle/line issues
Kristian Rietveld [Thu, 7 Feb 2002 18:43:59 +0000 (18:43 +0000)]
Fixes #70782 and some drag dest rectangle/line issues

Thu Feb  7 19:39:27 2002  Kristian Rietveld  <kris@gtk.org>

        Fixes #70782 and some drag dest rectangle/line issues

        * gtk/gtktreeview.c (gtk_tree_view_set_model): set
        GTK_TREE_VIEW_IS_LIST flag (we can switch from a TreeStore to a
        ListStore for example)
        (gtk_tree_view_get_path_at_pos): revert previous change, we
        shouldn't correct for the header, because we are taking bin_window
        coordinates here
        (gtk_tree_view_set_drag_dest_row): queue old drag_dest row and
        upper/lower neighbors for draw, so the drag dest rectangle/line will
        be cleared correctly
        (gtk_tree_view_get_dest_row_at_pos): correct for treeview header
        here, as drag_y is relative to the widget and _get_path_at_pos wants
        coords relative to bin_window, draw black outline rectangle after
        drawing the cells

22 years agoUse layout text (which may be affected by invisible char) to compute
Owen Taylor [Thu, 7 Feb 2002 15:57:32 +0000 (15:57 +0000)]
Use layout text (which may be affected by invisible char) to compute

Thu Feb  7 10:53:12 2002  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkentry.c (gtk_entry_draw_text): Use layout text
(which may be affected by invisible char) to compute
selection bounds, not entry text. (#70733, Alex Larsson)

22 years agoChange show_help signal to return gboolean instead of void. This allows
Padraig O'Briain [Thu, 7 Feb 2002 15:45:17 +0000 (15:45 +0000)]
Change show_help signal to return gboolean instead of void. This allows

* gtk/gtkwidget.[ch]:
Change show_help signal to return gboolean instead of void. This
allows the keypress which invokes the signal to be propagated to the
focus widgets ancestors if not handled by the focus widget.

* gtk/gtktoolips.[ch]
Change _gtk_tooltips_show_tip () to return a gboolean indicating
whether widget has tooltip to display.