]> Pileus Git - ~andy/gtk/log
~andy/gtk
20 years agoLookup all the atoms in the target list at once.
Owen Taylor [Sat, 5 Jul 2003 15:02:35 +0000 (15:02 +0000)]
Lookup all the atoms in the target list at once.

Sat Jul  5 09:55:38 2003  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkdnd-x11.c (precache_target_list): Lookup
        all the atoms in the target list at once.

        * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display):
        Local drag short-circuit.

        * gdk/x11/gdkdnd-x11.c (gdk_drag_motion): For the
        local case, poke the actions in directly instead of
        going through xdnd_set_actions.

        * gdk/x11/gdkdnd-x11.c (xdnd_read_actions): Short-circuit
        the local case.

        * gdk/x11/gdkdnd-x11.c (xdnd_manage_source_filter): Don't
        XSelectInput()/add a filter if the drag is local.

        * gdk/x11/gdkdnd-x11.c (gdk_drag_get_selection):
        Simplify handling of "XdndSelection".

        * gdk/x11/gdkevents-x11.c (gdk_event_send_client_message_to_all_recurse): Somehow,
        a WM_STATE => _NET_WM_STATE change hand been made here.

        * gdk/x11/gdkproperty-x11.c (_gdk_x11_precache_atoms): Free
        xatom_names, not atom_names.

        * tests/testdnd.c (target_drag_motion): Make the trashcan
        open again. (Got lost in deprecation cleanup.)

20 years agoMove the grabs up earlier, so we don't get a big pile of uncompressed
Owen Taylor [Sat, 5 Jul 2003 05:27:11 +0000 (05:27 +0000)]
Move the grabs up earlier, so we don't get a big pile of uncompressed

Sat Jul  5 00:49:32 2003  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkdnd.c (gtk_drag_begin): Move the grabs up
        earlier, so we don't get a big pile of uncompressed
        motion events before the grab takes effect.

        * gtk/gtkdnd.c (gtk_drag_update_icon): Call
        gdk_window_process_all_updates() so that the area
        we are dragging over gets a change to redraw.

        * gtk/gtkdnd.c (_gtk_drag_dest_handle_event): Use
        gdk_window_get_position(), not gdk_window_get_origin().

        * gdk/x11/gdkwindow-x11.[ch] (gdk_window_have_shape_ext)
        gdkdisplay-x11.h: use XShapeQueryExtension to
        avoid duplicate XQueryExtension when we actually
        use it. Remove unnecessary caching in GdkDisplayX11.

20 years agoFunction to get a range of information about all the children of a window
Owen Taylor [Sat, 5 Jul 2003 04:22:06 +0000 (04:22 +0000)]
Function to get a range of information about all the children of a window

Fri Jul  4 23:49:22 2003  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkasync.[ch] (_gdk_x11_get_window_child_info):
        Function to get a range of information about all the
        children of a window in a single pass.

        * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse)
        gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Use
        _gdk_x11_get_window_child_info() to greatly reduce
        the number of roundtrips.

20 years agoAdd a function to XSendEvent() and call a calback on failure/success.
Owen Taylor [Sat, 5 Jul 2003 03:02:21 +0000 (03:02 +0000)]
Add a function to XSendEvent() and call a calback on failure/success.

Fri Jul  4 22:57:18 2003  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkasync.[ch] (_gdk_send_xevent_async): Add
        a function to XSendEvent() and call a calback on
        failure/success.

        * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Short-circuit
        messages to the same process, use _gdk_send_xevent_async().

20 years agoSplit toplevel-specific pieces of GdkWindowImplX11 into a separate
Owen Taylor [Sat, 5 Jul 2003 02:34:52 +0000 (02:34 +0000)]
Split toplevel-specific pieces of GdkWindowImplX11 into a separate

Fri Jul  4 22:26:27 2003  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkwindow-x11.[ch] gdkevents-x11.c: Split
        toplevel-specific pieces of GdkWindowImplX11 into
        a separate GdkToplevelX11 structure.

20 years agoFix some leftover fields.
Owen Taylor [Sat, 5 Jul 2003 02:06:04 +0000 (02:06 +0000)]
Fix some leftover fields.

Fri Jul  4 22:05:09 2003  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkasync.c (struct _SetInputFocusState): Fix
        some leftover fields.

20 years agoUse asynchronously _gdk_x11_set_input_focus_safe to avoid having to trap
Owen Taylor [Sat, 5 Jul 2003 01:54:05 +0000 (01:54 +0000)]
Use asynchronously _gdk_x11_set_input_focus_safe to avoid having to trap

Fri Jul  4 15:57:52 2003  Owen Taylor  <otaylor@redhat.com>

* gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
Use asynchronously _gdk_x11_set_input_focus_safe
to avoid having to trap errors and XSync().

* gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use
_gdk_x11_set_input_focus_safe() here as well.

* gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed):
Rework handling of property notifies on _NET_WM_STATE
so that we ignore _NET_WM_DESKTOP notifies unless we
really care.

* gdk/x11/gdkimage-x11.c (gdk_image_check_xshm): Use
XShmQueryExtension() rather than XQueryExtension() to
avoid extra rountrip.

* gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_init):
Remove unused call to XGetWindowAttributes()

* gdk/x11/gdkdisplay-x11.c (gdk_display_open): Remove
unused call to XGetKeyboardControl().

* gdk/x11/gdkdisplay-x11.c gdk/gdk.def (gdk_display_flush):
Add (#99571)

* gdk/win32/gdkevents-win32.c gdk/linux-fb/gdkevents-fb.c
No-op implementations of gdk_display_flush().

* gdk/gdkwindow.c (gdk_window_process_all_updates): Use
gdk_display_flush() rather than gdk_flush() to avoid
XSync().

* gdk/x11/gdkwindow-x11.c (update_wm_hints)
gdk/x11/gdkwindow-x11.h: Centralize all handling of WM_HINTS here
so that we don't have to get the property back from the server.

* gdk/x11/gdkwindow-x11.c (show_window_internal): Store
the serial of when we map a toplevel to allow optimizing
out notifies on _NET_WM_STATE/_NET_WM_DESKTOP.

* gdk/x11/gdkevents-x11.c (gdk_event_translate): Don't
XTranslateCoordinates() for override-redirect windows.

Fri Jul  4 15:59:27 2003  Owen Taylor  <otaylor@redhat.com>

* gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Remove comment
about setting window group after the window is mapped from docs
- nothing the ICCCM forbids that.

* gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
Fix g_return_val_if_fail() in void return function.

* configure.in: Fix misplaced comma that was resulting
in XShm always being disabled.

20 years agoremove this accidentally committed file.
Soeren Sandmann [Fri, 4 Jul 2003 17:38:08 +0000 (17:38 +0000)]
remove this accidentally committed file.

Fri Jul  4 19:55:49 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

* tests/stresstest-toolbar: remove this accidentally committed
file.

* tests/stresstest-toolbar.c: really add this new test

20 years agonew test for removing items
Soeren Sandmann [Fri, 4 Jul 2003 16:48:40 +0000 (16:48 +0000)]
new test for removing items

Fri Jul  4 19:06:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

* tests/stresstest-toolbar.c: new test for removing items

* tests/testtoolbar.c: add a popup menu

* gtk/gtkcontainer.c (gtk_container_remove): add hack to avoid
  assert widget->parent == container when the container is a
  toolbar.

* gtk/gtktoolbar.c (gtk_toolbar_remove_tool_item): Make much
simpler. Also make correct.

* gtk/gtktoolbar.c (gtk_toolbar_button_press): make
popup_context_menu a boolean handled signal.

20 years agoWe can calculate the width and height of the bounding rectangle only after
Tor Lillqvist [Fri, 4 Jul 2003 00:23:03 +0000 (00:23 +0000)]
We can calculate the width and height of the bounding rectangle only after

2003-07-04  Tor Lillqvist  <tml@iki.fi>

* gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_polygon,
gdk_win32_draw_segments, gdk_win32_draw_lines): We can calculate
the width and height of the bounding rectangle only after the
minumum x and y have been found, and need a separate loop for
it. Thanks to Bruce Hochstetler for providing a sample program
exhibiting the bug.

20 years agoSupport saving ICOs and CURs.
Matthias Clasen [Thu, 3 Jul 2003 23:37:34 +0000 (23:37 +0000)]
Support saving ICOs and CURs.

20 years agoAdd gdk_string_to_compound_text_for_display. (#116537, Peter Zelezny)
Tor Lillqvist [Thu, 3 Jul 2003 23:16:44 +0000 (23:16 +0000)]
Add gdk_string_to_compound_text_for_display. (#116537, Peter Zelezny)

2003-07-03  Tor Lillqvist  <tml@iki.fi>

* gdk/gdk.def: Add gdk_string_to_compound_text_for_display.
(#116537, Peter Zelezny)

20 years agoAdd a test program from gnome-desktop.
Owen Taylor [Thu, 3 Jul 2003 21:26:35 +0000 (21:26 +0000)]
Add a test program from gnome-desktop.

        * tests/Makefile.am test/testicontheme.c: Add a test
        program from gnome-desktop.

20 years agoUse the theme colours for rubber banding
Ross Burton [Thu, 3 Jul 2003 13:10:41 +0000 (13:10 +0000)]
Use the theme colours for rubber banding

20 years agoInsert cast to fix warning. Assign something to old_value to quiet gcc
Soeren Sandmann [Thu, 3 Jul 2003 01:02:04 +0000 (01:02 +0000)]
Insert cast to fix warning. Assign something to old_value to quiet gcc

Thu Jul  3 03:13:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

* gtk/gtkpaned.c (gtk_paned_set_child_property): Insert cast to
fix warning. Assign something to old_value to quiet gcc

* gtk/gtkcalendar.c
(start_spinning): gtk_timeout_add->g_timeout_add

* gtk/gtkicontheme.c
(theme_lookup_icon): Make it compile (remove double semicolon)

* gtk/gtktoolbutton.c
(gtk_tool_button_class_init): Long comment about properties.
(gtk_tool_button_class_init): Improve text for "use_underline"
property
(gtk_tool_button_create_menu_proxy): Fix up to use_mnemonic based
on whether the passed-in label has use_mnemonic set
(gtk_tool_button_create_menu_proxy): Split image cloning out in
new function. Make that function also handle image with pixbuf
storage.
(gtk_tool_button_construct_contents): Use gtk_widget_destroy()
instead of gtk_container_remove().
(gtk_tool_button_construct_contents): Fix eliding bug

* gtk/gtktoolbar.c
(gtk_toolbar_finalize): New function. Unref tooltips, pointed out
by Morten Welinder
(gtk_toolbar_button_press): Make popup_context_menu signal provide
coordinates and button number

* tests/testtoolbar.c (main): Add new pixbuf toolbutton

* tests/apple-red.png: new file

20 years agoDocument named icon system.
Owen Taylor [Wed, 2 Jul 2003 22:45:30 +0000 (22:45 +0000)]
Document named icon system.

Wed Jul  2 18:15:21 2003  Owen Taylor  <otaylor@redhat.com>

        * gtk/Makefile.am gtk/gtk-docs.sgml gtk/gtksections.txt
        gtk/tmpl/gtkicontheme.sgml: Document named icon system.

        * gtk/tmpl/gtkrc.sgml: Mention specifying named icons
        as @"icon-name".

        * gtk/tmpl/gtkimage.sgml: Add a cross-reference to stock
        icons.

20 years agoadd gtkicontheme.c
Owen Taylor [Wed, 2 Jul 2003 22:44:25 +0000 (22:44 +0000)]
add gtkicontheme.c

Wed Jul  2 18:00:32 2003  Owen Taylor  <otaylor@redhat.com>

        * POTFILES.in: add gtkicontheme.c

20 years agoImplement a loader for named themed icon based on from gnome-desktop
Owen Taylor [Wed, 2 Jul 2003 22:44:09 +0000 (22:44 +0000)]
Implement a loader for named themed icon based on from gnome-desktop

Wed Jul  2 18:00:56 2003  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkicontheme.[ch]: Implement a loader for
        named themed icon based on from gnome-desktop library
        by Alex Larsson.

        * gtk/gtkiconthemeparser.[ch]: .ini file parsing code
        from gnome-desktop.

        * gtk/gtkiconfactory.[ch]: Add
        gtk_icon_source_set/get_icon_name() to allow stock icons
        to be based off of named theme icons.

        * gtk/gtkiconfactory.c: Rework sources so that the source
        is *either* a pixbuf, or a filename, or an icon name,
        instead of the pixbuf/filename mix it was before. Put a
        workaround for get_pixbuf() so that it can return the
        filename pixbuf, e.g, for render_icon().

        * gtk/gtkiconfactory.c: Make the default setup use
        themed icons, and add builtin icons to the default
        icon theme for all the standard pixbufs, so we
        don't rely on actually having an icon theme on disk.

        * gtk/gtkrc.c: Add support for @"icon-name" to specify
        a themed icon for a stock icon source.

        * tests/Makefile.am test/testicontheme.c: Add a test
        program from gnome-desktop.

        * gdk/x11/gdkevents-x11.c gtk/gtksettings.c: Add
        Net/IconThemeName / gtk-icon-theme-name setting.

        * gtk/gtkiconfactory.c (ensure_cache_up_to_date): Actually
        update the icon cache serial so we don't continually

        * gtk/gtkwidget.c: Fix a couple of references in doc comments
        to ::direction_set that should have been to ::direction-changed

20 years agoAttach the style to the widget.
Owen Taylor [Wed, 2 Jul 2003 18:56:35 +0000 (18:56 +0000)]
Attach the style to the widget.

Wed Jul  2 14:45:41 2003  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtktoolbar.c (gtk_toolbar_realize): Attach the
        style to the widget.

20 years agoAdd new toolbar headers
Soeren Sandmann [Wed, 2 Jul 2003 14:04:43 +0000 (14:04 +0000)]
Add new toolbar headers

Wed Jul  2 15:42:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

* gtk/gtk.h: Add new toolbar headers

* tests/testtoolbar.c: new file

* tests/Makefile.am (noinst_PROGRAMS): Add testtoolbar.c

* gtk/gtkexpander.c (gtk_expander_class_init): Make it compile

Tue Jul  1 22:49:25 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

* gtk/gtktoolbar.c:
(gtk_toolbar_remove_tool_item): Fix bug where list is changed
inside a for loop (pointed out by Morten Welinder).
(gtk_toolbar_focus_home_or_end): Minor formatting change

Comments from Owen:

* gtk/gtktoolbutton.c: remove copy of elide_underscores(). Use
gtk_toolbar_elide_underscores instead.

* gtk/gtktoolbar.c: rename signal from focus_ends to
focus_home_or_end.
(_gtk_toolbar_elide_underscores): export this as an internal
function.
(gtk_toolbar_move_focus): add comment explaining difference to
gtk_toolbar_focus();
(gtk_toolbar_list_children_in_focus_order): Make TAB_FORWARD and
TAB_BACKWARD focus the right widgets in RTL mode

* gtk/gtktoolbutton.c (gtk_tool_button_new): Change to take
"label" and "icon" parameters

* gtk/gtktoolbutton.[ch]: remove icon_set property.

20 years agoImprove docs. (116364, Morten Welinder)
Matthias Clasen [Tue, 1 Jul 2003 20:49:01 +0000 (20:49 +0000)]
Improve docs. (116364, Morten Welinder)

2003-07-01  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkspinbutton.c (gtk_spin_button_set_digits): Improve docs.  (116364, Morten Welinder)

20 years agoAdd a test for GtkFontButton and GtkColorButton.
Matthias Clasen [Tue, 1 Jul 2003 20:02:31 +0000 (20:02 +0000)]
Add a test for GtkFontButton and GtkColorButton.

20 years agoNew docs for new widgets.
Matthias Clasen [Tue, 1 Jul 2003 19:59:59 +0000 (19:59 +0000)]
New docs for new widgets.

20 years agoAdd color and font picker widgets.
Matthias Clasen [Tue, 1 Jul 2003 19:52:07 +0000 (19:52 +0000)]
Add color and font picker widgets.

20 years agoAdd GtkExpander docs.
Matthias Clasen [Tue, 1 Jul 2003 19:46:22 +0000 (19:46 +0000)]
Add GtkExpander docs.

20 years agoWindowFromPoint() wants screen coordinates (#115422, Tim Evans).
Tor Lillqvist [Tue, 1 Jul 2003 11:14:46 +0000 (11:14 +0000)]
WindowFromPoint() wants screen coordinates (#115422, Tim Evans).

2003-07-01  Tor Lillqvist  <tml@iki.fi>

* gdk/win32/gdkwindow-win32.c (_gdk_windowing_window_get_pointer):
WindowFromPoint() wants screen coordinates (#115422, Tim Evans).

20 years agoAdd gdk_cursor_new_from_pixbuf(), gdk_display_supports_cursor_alpha(),
Matthias Clasen [Mon, 30 Jun 2003 22:32:06 +0000 (22:32 +0000)]
Add gdk_cursor_new_from_pixbuf(), gdk_display_supports_cursor_alpha(),

2003-07-01  Matthias Clasen  <maclas@gmx.de>

* gdk/gdk-sections.txt: Add
gdk_cursor_new_from_pixbuf(), gdk_display_supports_cursor_alpha(),
gdk_display_supports_cursor_color(), gdk_display_get_default_cursor_size() and
gdk_display_get_maximal_cursor_size().

20 years agoCheck for Xcursor.
Matthias Clasen [Mon, 30 Jun 2003 22:30:54 +0000 (22:30 +0000)]
Check for Xcursor.

2003-07-01  Matthias Clasen  <maclas@gmx.de>

* configure.in: Check for Xcursor.

* gdk/x11/gdkcursor-x11.c:
* gdk/gdkdisplay.h:
* gdk/gdkcursor.h: RGBA cursor support based on Xcursor. New functions:
gdk_cursor_new_from_pixbuf(), gdk_display_supports_cursor_alpha(),
gdk_display_supports_cursor_color(), gdk_display_get_default_cursor_size() and
gdk_display_get_maximal_cursor_size().  (#69436)

20 years agoNew function, callback proc for EnumWindows().
Tor Lillqvist [Mon, 30 Jun 2003 21:58:24 +0000 (21:58 +0000)]
New function, callback proc for EnumWindows().

2003-06-30  Tor Lillqvist  <tml@iki.fi>

* gdk/win32/gdkdnd-win32.c (find_window_enum_proc): New function,
callback proc for EnumWindows().
(gdk_drag_find_window_for_screen): Actually take the drag_window
argument into account: Instead of using WindowFromPoint(), use
EnumWindows(), to be able to skip the drag_window. (#116320, Tony
M Brown, Herman Bloggs)

* gdk/win32/*.c: Replace gdk_drawable_ref()/unref() and
gdk_window_ref()/unref() calls with g_object_ref()/unref().
Consistently use %p format in debugging output of pointers and
HANDLEs.

20 years agokill some stray characters breaking the build.
Mark McLoughlin [Mon, 30 Jun 2003 13:10:12 +0000 (13:10 +0000)]
kill some stray characters breaking the build.

2003-06-30  Mark McLoughlin  <mark@skynet.ie>

        * gtk/gtkexpander.h: kill some stray characters
        breaking the build.

20 years agoAdd GtkExpander. See discussion in bug #60553.
Mark McLoughlin [Mon, 30 Jun 2003 12:57:57 +0000 (12:57 +0000)]
Add GtkExpander. See discussion in bug #60553.

2003-06-30  Mark McLoughlin  <mark@skynet.ie>

        Add GtkExpander. See discussion in bug #60553.

        * gtk/gtkexpander.[ch]: add.

        * gtk/Makefile.am: build gtk-expander.[ch].

        * docs/widget_geometry.txt: add info on the layout
        of GtkExpander.

20 years agoUpdated Indonesian translation
Mohammad DAMT [Mon, 30 Jun 2003 03:42:25 +0000 (03:42 +0000)]
Updated Indonesian translation

2003-06-30  Mohammad DAMT  <mdamt@bisnisweb.com>

* id.po: Updated Indonesian translation

20 years agogtkradiotoolbutton.c gtkradiotoolbutton.h gtktoggletoolbutton.c
Soeren Sandmann [Sun, 29 Jun 2003 23:34:20 +0000 (23:34 +0000)]
gtkradiotoolbutton.c gtkradiotoolbutton.h gtktoggletoolbutton.c

Mon Jun 30 01:20:19 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

* gtkradiotoolbutton.c
* gtkradiotoolbutton.h
* gtktoggletoolbutton.c
* gtktoggletoolbutton.h
* gtktoolbutton.c
* gtktoolbutton.h
* gtktoolitem.c
* gtktoolitem.h
* gtktoolbar.c
* gtktoolbar.h
* gtkseparatortoolitem.c
* gtkseparatortoolitem.h

New toolbar.

20 years agoAdditions.
Matthias Clasen [Sun, 29 Jun 2003 22:32:32 +0000 (22:32 +0000)]
Additions.

20 years agoMore formatting fixes for docs.
Matthias Clasen [Sun, 29 Jun 2003 21:16:06 +0000 (21:16 +0000)]
More formatting fixes for docs.

20 years agoDoc comment fix.
Matthias Clasen [Sun, 29 Jun 2003 20:28:14 +0000 (20:28 +0000)]
Doc comment fix.

20 years agoupdated Walloon file
Pablo Saratxaga [Sun, 29 Jun 2003 09:20:33 +0000 (09:20 +0000)]
updated Walloon file

20 years agoStop discriminating against 32bpp ICOs a): Use the byte size of the image
Matthias Clasen [Sat, 28 Jun 2003 20:04:18 +0000 (20:04 +0000)]
Stop discriminating against 32bpp ICOs a): Use the byte size of the image

2003-06-28  Matthias Clasen  <maclas@gmx.de>

* io-ico.c (DecodeHeader): Stop discriminating against 32bpp ICOs a): Use the byte
size of the image as a heuristic when selecting the bitmap  to load - this lets us
select 32bpp bitmaps which come after a 8bpp bitmap.
(OneLineTransp): Stop discriminating against 32bpp ICOs b): Don't overwrite the
alpha channel of 32bpp ICOs.
(gdk_pixbuf__ico_image_load_increment): Stop decoding the header unnecessarily.

20 years agoFix for #111028, thanks to J. Ali Harlow, who writes: I found that the
Tor Lillqvist [Sat, 28 Jun 2003 01:12:51 +0000 (01:12 +0000)]
Fix for #111028, thanks to J. Ali Harlow, who writes: I found that the

2003-06-28  Tor Lillqvist  <tml@iki.fi>

Fix for #111028, thanks to J. Ali Harlow, who writes:
I found that the GdkPixmap->GdkImage reference really isn't
important. It's only really there to have somewhere convenient to
store the location of the pixel data in the pixmap and as an easy
way of accessing the dimensions of that data. I have therefore put
together a fix which removes this reference entirely which seems
to solve the problem.

* gdk/win32/gdkpixmap-win32.h (struct _GdkPixmapImplWin32):
Instead of a pointer to a GdkImage, keep a pointer to the pixels
directly.

* gdk/win32/gdkimage-win32.c (_gdk_win32_setup_pixmap_image): Remove.
(_gdk_win32_new_image): New function, replacing the above. Creates
a GdkImage without any associated GdkPixmap.
(gdk_image_new_bitmap, _gdk_image_new_for_depth): Use it instead.

* gdk/win32/gdkprivate-win32.h: Remove from here, too.

* gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap)
* gdk/win32/gdkdrawable-win32.c (blit_from_pixmap)
* gdk/win32/gdkgc-win32.c (_gdk_win32_bitmap_to_hrgn)
* gdk/win32/gdkmain-win32.c (_gdk_win32_drawable_description):
* gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize,
gdk_pixmap_new, gdk_bitmap_create_from_data, gdk_pixmap_foreign_new)
Corresponding changes.

20 years agoMake it compile with C89 compilers.
Soeren Sandmann [Fri, 27 Jun 2003 02:38:44 +0000 (02:38 +0000)]
Make it compile with C89 compilers.

Fri Jun 27 03:56:59 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

* io-gif-animation.c (gdk_pixbuf_gif_anim_frame_composite): Make
it compile with C89 compilers.

Thu Jun 26 21:41:16 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

* gtk/gtktreeviewcolumn.c
(gtk_tree_view_column_cell_set_cell_data): only set "is_expander"
and "is_expanded" if the new value is different fromt he old one.

21 years agoFix typos. Update thread example I missed yesterday.
BST 2003 Tony Gale [Wed, 25 Jun 2003 18:01:14 +0000 (18:01 +0000)]
Fix typos. Update thread example I missed yesterday.

Wed Jun 25 18:59:15 BST 2003  Tony Gale <gale@gtk.org>

        * docs/faq/gtk-faq.sgml: Fix typos. Update
        thread example I missed yesterday.

21 years agoUpdate
Fatih Demir [Wed, 25 Jun 2003 01:47:25 +0000 (01:47 +0000)]
Update

21 years agoAdd a blurb for shadow_type.
Matthias Clasen [Tue, 24 Jun 2003 21:55:40 +0000 (21:55 +0000)]
Add a blurb for shadow_type.

2003-06-24  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkspinbutton.c (gtk_spin_button_class_init): Add a blurb for shadow_type.

* gtk/gtkwidget.c (gtk_widget_class_install_style_property_parser):
(gtk_widget_class_list_style_properties): Use same parameter names as in
header (to silence gtk-doc).

* gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Fix doc comments.

21 years agoThread support updates from Owen. Various suggestions from Steve Chaplin.
BST 2003 Tony Gale [Tue, 24 Jun 2003 19:02:52 +0000 (19:02 +0000)]
Thread support updates from Owen. Various suggestions from Steve Chaplin.

Tue Jun 24 20:00:45 BST 2003  Tony Gale <gale@gtk.org>

        * docs/faq/gtk-faq.sgml: Thread support updates
        from Owen. Various suggestions from Steve Chaplin.

21 years agoUpdated Indonesian translation
Mohammad DAMT [Tue, 24 Jun 2003 04:40:24 +0000 (04:40 +0000)]
Updated Indonesian translation

2003-03-24  Mohammad DAMT  <mdamt@bisnisweb.com>

* id.po: Updated Indonesian translation

21 years agoMove GtkIMContext to "Abstract Base Classes", since its abstract.
Matthias Clasen [Mon, 23 Jun 2003 22:59:01 +0000 (22:59 +0000)]
Move GtkIMContext to "Abstract Base Classes", since its abstract.

2003-06-24  Matthias Clasen  <maclas@gmx.de>

* gtk/gtk-docs.sgml: Move GtkIMContext to "Abstract Base Classes", since its abstract.

* gtk/tmpl/gtkaccessible.sgml:
* gtk/tmpl/gtkimmulticontext.sgml:
* gtk/tmpl/gtkimcontextsimple.sgml:
* gtk/tmpl/gtkimcontext.sgml:
* gtk/tmpl/gtkviewport.sgml:
* gtk/tmpl/gtkcellrenderertext.sgml:
* gtk/tmpl/gtkcellrendererpixbuf.sgml:
* gtk/tmpl/gtkcelleditable.sgml:
* gtk/tmpl/gtktreemodelsort.sgml:
* gtk/tmpl/gtktreednd.sgml:
* gtk/tmpl/gtktreesortable.sgml: Add short descriptions.

21 years agoAdd RTL variants of stock icons.
Matthias Clasen [Mon, 23 Jun 2003 21:51:44 +0000 (21:51 +0000)]
Add RTL variants of stock icons.

2003-06-23  Matthias Clasen  <maclas@gmx.de>

* gtk/Makefile.am (HTML_IMAGES): Add RTL variants of stock icons.

* gtk/tmpl/gtkstock.sgml: Document RTL variants of stock icons.

21 years agoRemove the pointless refusal to load images with dubious disposal mode on
Matthias Clasen [Mon, 23 Jun 2003 20:20:15 +0000 (20:20 +0000)]
Remove the pointless refusal to load images with dubious disposal mode on

2003-06-23  Matthias Clasen  <maclas@gmx.de>

* io-gif.c (gif_get_frame_info): Remove the pointless refusal to load images with dubious
disposal mode on the first frame. Just ignore it, as everybody else does.

21 years agoTypo fix.
Matthias Clasen [Sun, 22 Jun 2003 19:42:13 +0000 (19:42 +0000)]
Typo fix.

21 years agoAdd gdk_pixbuf_loader_new_with_mime_type.
Matthias Clasen [Sun, 22 Jun 2003 19:08:12 +0000 (19:08 +0000)]
Add gdk_pixbuf_loader_new_with_mime_type.

2003-06-22  Matthias Clasen  <matthias@localhost.localdomain>

* gdk-pixbuf/gdk-pixbuf-sections.txt: Add gdk_pixbuf_loader_new_with_mime_type.

21 years agoReset block_count to 0 for all application extensions, otherwise the data
Matthias Clasen [Sun, 22 Jun 2003 18:08:33 +0000 (18:08 +0000)]
Reset block_count to 0 for all application extensions, otherwise the data

2003-06-22  Matthias Clasen  <matthias@localhost.localdomain>

* io-gif.c (gif_get_extension): Reset block_count to 0 for all application extensions, otherwise the data blocks
of unknown extensions are not propertly skipped.

Second half of the fix for #106962, handle frames extending beyond the logical screen:

* io-gif.c (clip_frame): New helper function to clip a rectangle to the logical screen size of the gif.
(maybe_update): New helper function to call update_func only if the rectangle is not completely off-bounds.
(gif_get_lzw): Read frames extending outside the logical screen size, but be careful clip to the logical screen size
when operating on the composite pixbuf and when calling update_func.
(gif_init): Set the animation size to the logical screen size.
(gif_get_frame_info): Don't refuse to load images with frames extending beyond the logical screen size.

* io-gif-animation.c (gdk_pixbuf_gif_anim_frame_composite): Be careful to clip all rectangles to the logical screen
size, also handle the fact that frames may be completely off-bounds.

21 years agoUpdated Azerbaijani translation.
Metin Amiroff [Sun, 22 Jun 2003 14:36:08 +0000 (14:36 +0000)]
Updated Azerbaijani translation.

2003-06-22  Metin Amiroff <metin@karegen.com>

* az.po: Updated Azerbaijani translation.

21 years agoMention dup'd bug#s.
Tor Lillqvist [Sun, 22 Jun 2003 00:56:49 +0000 (00:56 +0000)]
Mention dup'd bug#s.

21 years agoWhen emulating X11's automatic grab on button down, pass owner_events as
Tor Lillqvist [Sun, 22 Jun 2003 00:21:03 +0000 (00:21 +0000)]
When emulating X11's automatic grab on button down, pass owner_events as

2003-06-21  Tor Lillqvist  <tml@iki.fi>

* gdk/win32/gdkevents-win32.c (gdk_event_translate): When
emulating X11's automatic grab on button down, pass owner_events
as FALSE. According to the XLib spec, automatic grabs use True for
owner_events when OwnerGrabButtonMask is selected, and I don't see
the X11 backend doing that. (#110271)
(find_window_for_pointer_event): Improve debugging output.

21 years agoMerge from 2.2
Matthias Clasen [Sat, 21 Jun 2003 00:46:49 +0000 (00:46 +0000)]
Merge from 2.2

21 years agoAnother question.
Matthias Clasen [Wed, 18 Jun 2003 22:41:06 +0000 (22:41 +0000)]
Another question.

21 years agoAdd a question about changing fonts. (#114747)
Matthias Clasen [Wed, 18 Jun 2003 22:08:42 +0000 (22:08 +0000)]
Add a question about changing fonts. (#114747)

2003-06-19  Matthias Clasen  <maclas@gmx.de>

* gtk/question_index.sgml: Add a question about changing fonts.
(#114747)

21 years agoLook for DLLs also in the bin subdirectory, where libtool 1.5 installs
Tor Lillqvist [Tue, 17 Jun 2003 23:49:40 +0000 (23:49 +0000)]
Look for DLLs also in the bin subdirectory, where libtool 1.5 installs

2003-06-17  Tor Lillqvist  <tml@iki.fi>

* gtk-zip.sh.in (DLLDIR): Look for DLLs also in the bin
subdirectory, where libtool 1.5 installs them.

* README.win32: Point to FSF's binary Win32 distribution of
gettext-runtime.

21 years agoru.po: Updated Russian translation from Russian team <gnome-cyr@gnome.org>.
Dmitry Mastrukov [Tue, 17 Jun 2003 09:24:54 +0000 (09:24 +0000)]
ru.po: Updated Russian translation from Russian team <gnome-cyr@gnome.org>.

21 years agoAdd rule to regenerate man pages from Docbook. (man_MANS): Add
Matthias Clasen [Tue, 17 Jun 2003 00:37:28 +0000 (00:37 +0000)]
Add rule to regenerate man pages from Docbook. (man_MANS): Add

2003-06-17  Matthias Clasen  <maclas@gmx.de>

* gdk-pixbuf/Makefile.am: Add rule to regenerate man pages from
Docbook.
(man_MANS): Add gdk-pixbuf-csource.1, gdk-pixbuf-query-loaders.1.
(content_files): Add gdk-pixbuf-csource.xml,
gdk-pixbuf-query-loaders.xml.

* gdk-pixbuf/gdk-pixbuf-csource.xml: New refentry, containing the
former gdk-pixbuf/gdk-pixbuf-csource.1, converted to Docbook.

* gdk-pixbuf/gdk-pixbuf-query-loaders.xml: New refentry.

* gdk-pixbuf/gdk-pixbuf-csource.1:
* gdk-pixbuf/gdk-pixbuf-query-loaders.1: Man pages generated from
the .xml sources.

* gdk-pixbuf/gdk-pixbuf.sgml: Include gdk-pixbuf-csource.xml and
gdk-pixbuf-query-loaders.xml.

* gtk/Makefile.am: Add rule to regenerate man pages from Docbook.
(man_MANS): Add gtk-query-immodules-2.0.1
(content_files): Add gtk-query-immodules-2.0.xml

* gtk/gtk-query-immodules-2.0.xml: New refentry.

* gtk/gtk-query-immodules-2.0.1: Man page generated from the .xml
source.

* gtk/gtk-docs.sgml: Include gtk-query-immodules-2.0.xml.

* acinclude.m4 (JH_PATH_XML_CATALOG, JH_CHECK_XML_CATALOG): New
macros to check for XML catalog contents and path, borrowed from
gtk-doc.
* configure.in: New option --enable-man to enable regeneration of
man pages from Docbook, if the necessary tools are found.

21 years agoAdd autogenerated indices.
Matthias Clasen [Mon, 16 Jun 2003 23:19:37 +0000 (23:19 +0000)]
Add autogenerated indices.

2003-06-17  Matthias Clasen  <mc2@YAST_ASK>

* gtk/gtk-docs.sgml:
* gdk-pixbuf/gdk-pixbuf.sgml:
* gdk/gdk-docs.sgml: Add autogenerated indices.

21 years agoDocument new properties as 2.4 additions.
Matthias Clasen [Sat, 14 Jun 2003 22:27:14 +0000 (22:27 +0000)]
Document new properties as 2.4 additions.

2003-06-15  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkcalendar.c (gtk_calendar_class_init):
* gtk/gtknotebook.c (gtk_notebook_class_init):
* gtk/gtkalignment.c (gtk_alignment_class_init):
* gtk/gtkpaned.c (gtk_paned_class_init): Document new properties
as 2.4 additions.

* gtk/gtkwidget.c (gtk_widget_class_init): Move inline signal docs
to the proper place, immediately before the g_signal_new() call.

* gtk/gtktextiter.h: Make the flags-nature of GtkTextSearchFlags
more obvious.  (#115122, Jeff Franks)

21 years agoUpdated Swedish translation.
Christian Rose [Sat, 14 Jun 2003 14:24:59 +0000 (14:24 +0000)]
Updated Swedish translation.

2003-06-14  Christian Rose  <menthos@menthos.com>

* sv.po: Updated Swedish translation.

21 years agoUpdated Spanish translation by Francisco Javier F. Serrador
Pablo Gonzalo del Campo [Thu, 12 Jun 2003 21:54:45 +0000 (21:54 +0000)]
Updated Spanish translation by Francisco Javier F. Serrador

2003-06-12  Pablo Gonzalo del Campo  <pablodc@bigfoot.com>

        * es.po: Updated Spanish translation by
                 Francisco Javier F. Serrador <serrador@arrakis.es>.

21 years agoSpecial case pixmaps. (#114880)
Anders Carlsson [Thu, 12 Jun 2003 20:49:18 +0000 (20:49 +0000)]
Special case pixmaps. (#114880)

2003-06-12  Anders Carlsson  <andersca@codefactory.se>

* gtk/gtkwidget.c: (event_window_is_still_viewable):
Special case pixmaps. (#114880)

21 years agoFix some typos.
Matthias Clasen [Wed, 11 Jun 2003 23:12:17 +0000 (23:12 +0000)]
Fix some typos.

2003-06-11  Matthias Clasen  <maclas@gmx.de>

* gtk/tmpl/gtkdnd.sgml: Fix some typos.

21 years agoDocument child-notify and drag-data-received signals. Owen, we need to
Matthias Clasen [Wed, 11 Jun 2003 23:10:28 +0000 (23:10 +0000)]
Document child-notify and drag-data-received signals. Owen, we need to

2003-06-12  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkwidget.c: Document child-notify and drag-data-received
signals. Owen, we need to figure out where the best place for
these comments in the source is. I currently put them in front of
the signals enum.

21 years agosilly typo fix. s/seperator/separator/. This gets rid of the assert spam
Kristian Rietveld [Wed, 11 Jun 2003 23:02:34 +0000 (23:02 +0000)]
silly typo fix. s/seperator/separator/. This gets rid of the assert spam

Thu Jan 12 01:01:19 2003  Kristian Rietveld  <kris@gtk.org>

* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
silly typo fix. s/seperator/separator/. This gets rid of the
assert spam when using TreeView.

21 years agoru.po: Updated Russian translation from Russian team <gnome-cyr@gnome.org>.
Dmitry Mastrukov [Wed, 11 Jun 2003 09:30:40 +0000 (09:30 +0000)]
ru.po: Updated Russian translation from Russian team <gnome-cyr@gnome.org>.

21 years agoUpdated Spanish translation by Juan Manuel García Molina
Pablo Gonzalo del Campo [Tue, 10 Jun 2003 19:18:16 +0000 (19:18 +0000)]
Updated Spanish translation by Juan Manuel García Molina

2003-06-10  Pablo Gonzalo del Campo  <pablodc@bigfoot.com>

* es.po: Updated Spanish translation by
                 Juan Manuel García Molina <juanma_gm@wanadoo.es>.

21 years agoNew function for XIM instantiate callback. New function where call to
Hidetoshi Tajima [Tue, 10 Jun 2003 18:24:29 +0000 (18:24 +0000)]
New function for XIM instantiate callback. New function where call to

Tue Jun 10 11:23:48 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>

* modules/input/gtkimcontextxim.c (xim_instantiate_callback): New
function for XIM instantiate callback.
* modules/input/gtkimcontextxim.c (xim_info_try_im): New function
where call to XOpenIM() or XRegisterIMInstantiateCallback() is
actually made.
* modules/input/gtkimcontextxim.c (xim_destroy_callback): New function
for XIM's destroy callback.
* modules/input/gtkimcontextxim.c (get_im): add a check if info->im
is set or not - if it's not set, call xim_info_try_im() to try to
initiaize it.
* modules/input/gtkimcontextxim.c (reinitialize_ic): reset
filter_key_release flag of the context.
* modules/input/gtkimcontextxim.c (get_ic_real): removed
* modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic): move
code from the removed get_ic_real().

For XIM instantiation, destruction and re-instantiation. With
this, Gtk+ apps will be able to connect or reconnect to the XIM,
when it starts after the apps, or when the XIM gets lost and recover.
(#113099, #107782).

21 years agoMerged from stable.
Kristian Rietveld [Mon, 9 Jun 2003 23:12:46 +0000 (23:12 +0000)]
Merged from stable.

Mon Jun 10 01:12:31 2003  Kristian Rietveld  <kris@gtk.org>

Merged from stable.

* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_get_size):
check if width is !null, not *width. Doh.

21 years agoMerged from stable.
Kristian Rietveld [Mon, 9 Jun 2003 23:10:20 +0000 (23:10 +0000)]
Merged from stable.

Tue Jun 10 01:09:33 2003  Kristian Rietveld  <kris@gtk.org>

Merged from stable.

* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
Remove the weird dx logic, get all cell_area and background_area
calculations right. Not sure what was up with it before. (Fixes
#110989, testcase from Vasco Alexandre da Silva Costa).

21 years agoMake it compile with C89 compilers
Soeren Sandmann [Mon, 9 Jun 2003 22:50:54 +0000 (22:50 +0000)]
Make it compile with C89 compilers

Tue Jun 10 00:58:23 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

* tests/testgtk.c: Make it compile with C89 compilers

21 years agoAdd gtk_text_view_[gs]et_overwrite().
Matthias Clasen [Mon, 9 Jun 2003 22:26:55 +0000 (22:26 +0000)]
Add gtk_text_view_[gs]et_overwrite().

2003-06-10  Matthias Clasen  <maclas@gmx.de>

* gtk/gtk-sections.txt: Add gtk_text_view_[gs]et_overwrite().

21 years agoInstall boolean property "overwrite". (gtk_text_view_[gs]et_property):
Matthias Clasen [Mon, 9 Jun 2003 22:25:00 +0000 (22:25 +0000)]
Install boolean property "overwrite". (gtk_text_view_[gs]et_property):

2003-06-10  Matthias Clasen  <maclas@gmx.de>

* gtk/gtktextview.c (gtk_text_view_class_init): Install boolean
property "overwrite".
(gtk_text_view_[gs]et_property): Handle "overwrite".
* gtk/gtktextview.[hc] (gtk_text_view_[gs]et_overwrite): Getter
and setter for "overwrite" property.  (#110241, Jeroen Zwartepoorte)

21 years agoInstall boolean child properties "resize" and "shrink".
Matthias Clasen [Mon, 9 Jun 2003 22:04:34 +0000 (22:04 +0000)]
Install boolean child properties "resize" and "shrink".

2003-06-09  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkpaned.c (gtk_paned_class_init): Install boolean child
properties "resize" and "shrink".
(gtk_paned_[gs]et_child_property): Implementations of
GtkContainer::[gs]et_child_property.
* tests/testgtk.c (toggle_resize, toggle_shrink): Use the new
paned child properties instead of remove/add hacks.  (#114667,
Soeren Sandmann)

21 years agoBack out event->window test - it wasn't needed because of the call to
Owen Taylor [Mon, 9 Jun 2003 20:29:16 +0000 (20:29 +0000)]
Back out event->window test - it wasn't needed because of the call to

Mon Jun  9 16:18:11 2003  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtknotebook.c (gtk_notebook_button_press): Back
        out event->window test - it wasn't needed because
        of the call to get_widget_coordinates().

        * gtk/gtknotebook.c (gtk_notebook_button_press): Remove
        call to gtk_widget_grab_focus() when not clicking on
        any tabs. (Real fix for #114534)

21 years agoUse application/x-rootwindow-drop for root window drops. (#108670, Alex
Owen Taylor [Mon, 9 Jun 2003 02:13:42 +0000 (02:13 +0000)]
Use application/x-rootwindow-drop for root window drops. (#108670, Alex

Sun Jun  8 22:03:09 2003  Owen Taylor  <otaylor@redhat.com>

        * tests/testdnd.c: Use application/x-rootwindow-drop for
        root window drops. (#108670, Alex Larsson)

        * gdk/x11/gdkdnd-x11.c (gdk_drag_motion) gtk/gtkdnd.c (gtk_drag_drop):
        Accept either application/x-rootwin-drop (what GTK+ has always used)
        or application/x-rootwindow-drop (what the XDND standard specifies).

21 years agoBefore delivering an event to a widget, check that (if relevant), the
Owen Taylor [Mon, 9 Jun 2003 01:55:01 +0000 (01:55 +0000)]
Before delivering an event to a widget, check that (if relevant), the

Fri Jun  6 11:07:33 2003  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkwidget.c (event_window_still_viewable):
        Before delivering an event to a widget, check that
        (if relevant), the event's window is still viewable.
        (#105642, Dennis Björklund)

        * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy):
        NULL out private->parent, since after destruction
        it might not be valid any more.

        * gdk/gdkwindow.c (gdk_window_is_viewable): Fix some
        accesses before g_return_val_if_fail(). Treat
        DESTROYED windows as unmapped.

21 years agoRecompute unconditionally in gtk_entry_style_set, and in a new
Owen Taylor [Sun, 8 Jun 2003 17:43:15 +0000 (17:43 +0000)]
Recompute unconditionally in gtk_entry_style_set, and in a new

Thu Jun  5 09:28:03 2003  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkentry.c: Recompute unconditionally in
        gtk_entry_style_set, and in a new gtk_label_screen_changed().
        Protect the guts of recompute_idle_func() with
        gtk_widget_has_screen(). (#114040, Morten Welinder)
        Fix FALSE/0 confusion.

21 years agoswap G and B. Fixes (#114669)
Soeren Sandmann [Sun, 8 Jun 2003 16:15:16 +0000 (16:15 +0000)]
swap G and B. Fixes (#114669)

Sun Jun  8 18:27:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

* gdk/gdkpixbuf-drawable.c (G8fromRGB565): swap G and B.
Fixes (#114669)

21 years agoFix bug with set_adjustment (viewport, NULL);
Owen Taylor [Sun, 8 Jun 2003 15:34:30 +0000 (15:34 +0000)]
Fix bug with set_adjustment (viewport, NULL);

Sun Jun  8 11:27:29 2003  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkviewport.c (viewport_set_adjustment): Fix bug with
        set_adjustment (viewport, NULL);

21 years agoAdd rtl variants of undo, redo, undelete and revert. (#96633)
Matthias Clasen [Sat, 7 Jun 2003 09:38:36 +0000 (09:38 +0000)]
Add rtl variants of undo, redo, undelete and revert. (#96633)

2003-06-07  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkiconfactory.c (get_default_icons):
* gtk/stock-icons/stock_{undo,redo,undelete,revert}_rtl_{16,24}.png:
* gtk/stock-icons/Makefile.am: Add rtl variants of undo, redo,
undelete and revert.  (#96633)

21 years agoMany fixes, along with extensive cleanups and refactoring of code to
Owen Taylor [Fri, 6 Jun 2003 23:08:14 +0000 (23:08 +0000)]
Many fixes, along with extensive cleanups and refactoring of code to

Fri Jun  6 16:25:44 2003  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkviewport.c: Many fixes, along with extensive cleanups and
        refactoring of code to reduce duplication; fixes include:

        - gtk_viewport_realize(): Position the window correct from adjustment
        values. (#110737, Michael Natterer)

        - Remove some division-by-zero checks in places where there is no
        longer division. (#110737)

        - gtk_viewport_class_init: Make the hadjustment/vadjustment properties
        G_PARAM_CONSTRUCT, so that there will always be adjustments, even
        if gtk_viewport_new isn't used (#101135, Thomas Leonard).

        - Switch over to encapsulated lazy-creation for hadjustment/
        vadjustment; even with the CONSTRUCT property, we need this after
        destroy.

        - When updating the adjustment, immediate set their values to
        match the the current range of the viewport, and update the
        viewport position to match the value of the new adjustments.
        (Part of #1165

21 years agoFix typo.
Tor Lillqvist [Fri, 6 Jun 2003 23:06:29 +0000 (23:06 +0000)]
Fix typo.

2003-06-06  Tor Lillqvist  <tml@iki.fi>

* gdk/win32/gdkprivate-win32.h: Fix typo.

21 years agoSet graphics_exposures and subwindow_mode, too, even if they aren't
Tor Lillqvist [Fri, 6 Jun 2003 22:55:55 +0000 (22:55 +0000)]
Set graphics_exposures and subwindow_mode, too, even if they aren't

2003-06-06  Tor Lillqvist  <tml@iki.fi>

* gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Set
graphics_exposures and subwindow_mode, too, even if they aren't
currently used.

21 years agoMerged from stable.
Kristian Rietveld [Fri, 6 Jun 2003 21:42:52 +0000 (21:42 +0000)]
Merged from stable.

Fri Jun  6 23:38:23 2003  Kristian Rietveld  <kris@gtk.org>

Merged from stable.

* gtk/gtktreeview.c (do_expand_collapse),
(expand_collapse_timeout), (cancel_arrow_animation): made
expand_collapse_timeout a wrapper with locks around
do_expand_collapse, made cancel_arrow_animation use
do_expand_collapse. Fixes threadlock. (Fixes #111286, patch from
Peter Bloomfield).

21 years agoAdd a 'finalizing' flag to keep preedit-[start,changed,end] signals from
Hidetoshi Tajima [Fri, 6 Jun 2003 19:42:10 +0000 (19:42 +0000)]
Add a 'finalizing' flag to keep preedit-[start,changed,end] signals from

Fri Jun  6 11:05:45 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>

* modules/input/gtkimcontextxim.h (struct _GtkIMContextXIM):
* modules/input/gtkimcontextxim.c (preedit_start_callback,
preedit_draw_callback, preedit_done_callback): Add a 'finalizing' flag
to keep preedit-[start,changed,end] signals from being called during
finalization (#111861).

21 years agoIgnore button presses that are not on the tab (#114534).
Noah Levitt [Fri, 6 Jun 2003 02:00:45 +0000 (02:00 +0000)]
Ignore button presses that are not on the tab (#114534).

2003-06-05  Noah Levitt  <nlevitt@columbia.edu>

* gtk/gtknotebook.c (gtk_notebook_button_press): Ignore button
presses that are not on the tab (#114534).

21 years agoConditionalize deendencies for gdk-pixbuf-csource on cross-compilation
Owen Taylor [Fri, 6 Jun 2003 00:52:20 +0000 (00:52 +0000)]
Conditionalize deendencies for gdk-pixbuf-csource on cross-compilation

Thu Jun  5 20:35:40 2003  Owen Taylor  <otaylor@redhat.com>

        * demos/Makefile.am: Conditionalize deendencies for
        gdk-pixbuf-csource on cross-compilation (#112391, J. Ali Harlowe).
        Buildtest-inline-pixbufs.h in srcdir. Don't try to build
        test-inline-pixbufs.h if we don't have libpng.

        * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h):
        Add a dependency on gdk-pixbuf.loaders when not
        cross-compiling, remove the dependency on gdk-pixbuf-csource
        when not cross compiling.

21 years agoHandle gtk_window_get_geometry_info() returning NULL. (#107311, John
Owen Taylor [Fri, 6 Jun 2003 00:17:48 +0000 (00:17 +0000)]
Handle gtk_window_get_geometry_info() returning NULL. (#107311, John

Thu Jun  5 20:12:51 2003  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkwindow.c (gtk_window_get_default_size): Handle
        gtk_window_get_geometry_info() returning NULL.
        (#107311, John Finlay)

21 years agoSubtract off twice the border width from the width/height, not 1x the
Owen Taylor [Thu, 5 Jun 2003 23:37:03 +0000 (23:37 +0000)]
Subtract off twice the border width from the width/height, not 1x the

Thu Jun  5 19:24:33 2003  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtktoolbar.c (gtk_toolbar_expose): Subtract off
        twice the border width from the width/height, not
        1x the border width. (#106336, Rodney Dawes)

21 years agoIf at the end of the buffer, move to the end iter - parallels behavior of
Owen Taylor [Thu, 5 Jun 2003 23:08:48 +0000 (23:08 +0000)]
If at the end of the buffer, move to the end iter - parallels behavior of

Thu Jun  5 15:33:38 2003  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
        If at the end of the buffer, move to the end iter -
        parallels behavior of move_iter_to_previous_line.
        (#81960, Padraig O'Briain)

21 years ago#80023, Yao Zhang, TOKUNAGA Hiroyuki
Owen Taylor [Thu, 5 Jun 2003 23:04:49 +0000 (23:04 +0000)]
#80023, Yao Zhang, TOKUNAGA Hiroyuki

Thu Jun  5 16:12:54 2003  Owen Taylor  <otaylor@redhat.com>

        #80023, Yao Zhang, TOKUNAGA Hiroyuki

        * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations):
        Account for the preedit cursor offset if the iter passed
        in is at the same place as the insertion cursor.

        * gtk/gtktextview.c (gtk_text_view_get_cursor_location):
        Encapsulate getting the insertion cursor location.

        * gtk/gtktextview.c (gtk_text_view_update_im_spot_location):
        Pass the real y/height to the IM context. Take
        text_view->x/yoffset into account.

21 years agoNever scroll on focus in (#81893, Patch from Paolo Maggi)
Owen Taylor [Thu, 5 Jun 2003 22:59:35 +0000 (22:59 +0000)]
Never scroll on focus in (#81893, Patch from Paolo Maggi)

Thu Jun  5 16:52:54 2003  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtktextview.[ch]: Never scroll on focus in
        (#81893, Patch from Paolo Maggi)

        * gtk/gtktextview.c (gtk_text_view_scroll_[h]pages):
        Scroll to the current cursor location before handling
        the action, in case the user just tabbed in
        and the cursor is offscreen.

21 years ago#107883, Gustavo Giráldez
Owen Taylor [Thu, 5 Jun 2003 22:28:48 +0000 (22:28 +0000)]
#107883, Gustavo Giráldez

Thu Jun  5 17:20:40 2003  Owen Taylor  <otaylor@redhat.com>

         #107883, Gustavo Giráldez

        * gtk/gtktextlayout.c (gtk_text_layout_emit_changed):
        Split out the case where we know we changed, and
        already dealt with our cached line being invalidated
        from external calls to gtk_text_layout_changed.

        * gtk/gtktextlayout.c (gtk_text_layout_changed):
        Check if the invalidate yrange intersects our
        cached line, and clear it if necessary.

21 years agoHandle global filters.
Tor Lillqvist [Thu, 5 Jun 2003 22:05:14 +0000 (22:05 +0000)]
Handle global filters.

2003-06-05  Tor Lillqvist  <tml@iki.fi>

* gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle global
filters.

21 years agoFix for #84668, reported by Torbjörn Andersson:
Matthias Clasen [Thu, 5 Jun 2003 19:34:03 +0000 (19:34 +0000)]
Fix for #84668, reported by Torbjörn Andersson:

2003-06-05  Matthias Clasen  <maclas@gmx.de>

* gtk/gtktextview.c: Fix for #84668, reported by Torbjörn Andersson:
(gtk_text_view_grab_notify):
(gtk_text_view_state_changed): Implement these
to unobscure cursor when grab shadowed or insensitised.
(gtk_text_view_unobscure_mouse_cursor): New function to undo the
effect of gtk_text_view_obscure_mouse_cursor(). Code lifted from
gtk_text_view_motion_event().
(gtk_text_view_motion_event): Use gtk_text_view_obscure_mouse_cursor().

21 years agoNew keybinding signal for (un)selecting the whole buffer. Bound to
Matthias Clasen [Thu, 5 Jun 2003 19:23:31 +0000 (19:23 +0000)]
New keybinding signal for (un)selecting the whole buffer. Bound to

2003-06-05  Matthias Clasen  <maclas@gmx.de>

* gtk/gtktextview.c (select_all): New keybinding signal for
(un)selecting the whole buffer. Bound to C-a/C-\.  (see #107889)