]> Pileus Git - ~andy/gtk/log
~andy/gtk
18 years agodeclare _gdk_xgrab_check_button_event.
Manish Singh [Thu, 30 Jun 2005 21:18:34 +0000 (21:18 +0000)]
declare _gdk_xgrab_check_button_event.

Thu Jun 30 14:17:24 2005  Manish Singh  <yosh@gimp.org>

        * gdk/x11/gdkprivate-x11.h: declare _gdk_xgrab_check_button_event.

        * gtk/gtkbutton.c: fix signature of gtk_button_grab_broken.

18 years agoAvoid infinite loop if a mask is zero. (#309222, David Saxton)
Matthias Clasen [Thu, 30 Jun 2005 19:11:58 +0000 (19:11 +0000)]
Avoid infinite loop if a mask is zero. (#309222, David Saxton)

2005-06-30  Matthias Clasen  <mclasen@redhat.com>

* gdk/x11/gdkvisual-x11.c (gdk_visual_decompose_mask): Avoid
infinite loop if a mask is zero.  (#309222, David Saxton)

18 years agoClarify the code, gcc 4 complains about predecrement in MAX().
Matthias Clasen [Thu, 30 Jun 2005 19:07:16 +0000 (19:07 +0000)]
Clarify the code, gcc 4 complains about predecrement in MAX().

2005-06-30  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_fetch_child):
Clarify the code, gcc 4 complains about predecrement in MAX().

18 years agoDon't prematurely unregister callbacks.
Matthias Clasen [Thu, 30 Jun 2005 18:42:44 +0000 (18:42 +0000)]
Don't prematurely unregister callbacks.

2005-06-30  Matthias Clasen  <mclasen@redhat.com>

* modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize): Don't
prematurely unregister callbacks.

18 years agoUpdates
Matthias Clasen [Thu, 30 Jun 2005 04:53:23 +0000 (04:53 +0000)]
Updates

18 years agoHandle broken grabs.
Matthias Clasen [Thu, 30 Jun 2005 03:35:30 +0000 (03:35 +0000)]
Handle broken grabs.

2005-06-29  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkbutton.c (gtk_button_grab_broken): Handle broken
        grabs.

        * gtk/gtkrange.c (gtk_range_grab_broken): Handle broken
        grabs.

        * gdk/gdkevents.h: Add a boolean to specify wether the broken
        grab was implicit.

        * gdk/x11/gdkdisplay-x11.c (gdk_display_pointer_is_grabbed):
        As the documentation states, don't return TRUE for
        implicit grabs.

        * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
        a boolean field to store wether a pointer grab is implicit.

        * gdk/x11/gdkmain-x11.c (_gdk_xgrab_check_button_event):
        Track implicit grabs.

        * gdk/x11/gdkevents-x11.c (gdk_event_translate): Call
        _gdk_xgrab_check_button_event for button events.

18 years agoUpdates
Matthias Clasen [Thu, 30 Jun 2005 03:21:25 +0000 (03:21 +0000)]
Updates

18 years agoClarify GtkComboBoxEntry
Ross Burton [Tue, 28 Jun 2005 12:31:24 +0000 (12:31 +0000)]
Clarify GtkComboBoxEntry

18 years agoUpdated Thai translation.
Theppitak Karoonboonyanan [Tue, 28 Jun 2005 10:17:45 +0000 (10:17 +0000)]
Updated Thai translation.

2005-06-28  Theppitak Karoonboonyanan  <thep@linux.thai.net>

* th.po: Updated Thai translation.

18 years agoMake sure that cell boxes are always completely inside the item area.
Matthias Clasen [Tue, 28 Jun 2005 06:25:18 +0000 (06:25 +0000)]
Make sure that cell boxes are always completely inside the item area.

2005-06-28  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkiconview.c (gtk_icon_view_calculate_item_size2):
Make sure that cell boxes are always completely inside
the item area.

18 years agoMake the list of demos scrollable.
Matthias Clasen [Tue, 28 Jun 2005 03:42:55 +0000 (03:42 +0000)]
Make the list of demos scrollable.

2005-06-27  Matthias Clasen  <mclasen@redhat.com>

* demos/gtk-demo/main.c (create_tree): Make the list of
demos scrollable.

18 years agoFix positioning at the end of the line for lines ending in invisible
Matthias Clasen [Tue, 28 Jun 2005 02:46:11 +0000 (02:46 +0000)]
Fix positioning at the end of the line for lines ending in invisible

2005-06-27  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end):
Fix positioning at the end of the line for lines ending
in invisible characters.
(gtk_text_layout_get_line_display): Set display->layout
to a PangoLayout, even for totally invisible lines.

18 years agoUpdated Spanish translation.
Francisco Javier F. Serrador [Mon, 27 Jun 2005 22:20:35 +0000 (22:20 +0000)]
Updated Spanish translation.

2005-06-28  Francisco Javier F. Serrador  <serrador@cvs.gnome.org>

* es.po: Updated Spanish translation.

18 years agoIgnore GrabBroken events which are caused by overgrabbing inside the
Matthias Clasen [Mon, 27 Jun 2005 21:06:33 +0000 (21:06 +0000)]
Ignore GrabBroken events which are caused by overgrabbing inside the

2005-06-27  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Ignore
GrabBroken events which are caused by overgrabbing inside
the application; menus rely on these for their operation.

* gdk/gdkevents.h (struct _GdkEventGrabBroken): Add a
grab_window field.

* gdk/win32/gdkevents-win32.c (gdk_event_translate): Set
grab_window to NULL when generating GrabBroken events for
WM_KILLFOCUS messages.

* gdk/x11/gdkmain-x11.c (_gdk_xgrab_check_unmap)
(_gdk_xgrab_check_destroy): Set grab_window to NULL when
generating GrabBroken events when the grab window becomes
unviewable or is destroyed.

* gdk/x11/gdkmain-x11.c (gdk_pointer_grab, gdk_keyboard_grab):
Generate GrabBroken events when overriding a grab inside
the application. In this case, set grab_window to the new
grab_window.

18 years agoContinue to activate even if we can't grab the keyboard.
Matthias Clasen [Mon, 27 Jun 2005 20:04:33 +0000 (20:04 +0000)]
Continue to activate even if we can't grab the keyboard.

2005-06-27  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkbutton.c (gtk_real_button_activate): Continue
to activate even if we can't grab the keyboard.
(gtk_button_finish_activate): Only ungrab when we have
a keyboard grab.  (#172998, William Jon McCann)

18 years agoTranslation updated by Ivar Smolin.
Priit Laes [Mon, 27 Jun 2005 19:34:22 +0000 (19:34 +0000)]
Translation updated by Ivar Smolin.

2005-06-27  Priit Laes  <plaes@cvs.gnome.org>

* et.po: Translation updated by Ivar Smolin.

18 years agoAvoid a segfault. (#309054)
Matthias Clasen [Mon, 27 Jun 2005 18:37:41 +0000 (18:37 +0000)]
Avoid a segfault. (#309054)

2005-06-27  Matthias Clasen  <mclasen@redhat.com>

* modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
Avoid a segfault. (#309054)

* gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
fields for grab timestamps.

* gdk/x11/gdkmain-x11.c (gdk_pointer_grab, gdk_keyboard_grab):
Store grab timestamps when grabbing.

* gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard_ungrab)
(gdk_display_pointer_ungrab): Don't unset the grab_window
if the timestamps indicate that the ungrab will fails.

18 years agoCancel menus when they are grab-shadowed by something thats not a submenu.
Matthias Clasen [Mon, 27 Jun 2005 17:36:34 +0000 (17:36 +0000)]
Cancel menus when they are grab-shadowed by something thats not a submenu.

2005-06-27  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkmenu.c (gtk_menu_grab_notify): Cancel menus when
        they are grab-shadowed by something thats not a
        submenu.  (#145416, Euan MacGregor)

18 years agoFix indentation.
Owen Taylor [Mon, 27 Jun 2005 15:13:08 +0000 (15:13 +0000)]
Fix indentation.

2005-06-27  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtk[hv]ruler.c (gtk_[hv]ruler_draw_ticks):
        Fix indentation.

18 years agoFix leaks Same Closes bug #308953.
Kjartan Maraas [Mon, 27 Jun 2005 14:38:19 +0000 (14:38 +0000)]
Fix leaks Same Closes bug #308953.

2005-06-27  Kjartan Maraas  <kmaraas@gnome.org>

* gtk/gtkhruler.c: (gtk_hruler_draw_ticks): Fix leaks
* gtk/gtkvruler.c: (gtk_vruler_draw_ticks): Same
Closes bug #308953.

18 years agoUse GMappedFile.
Matthias Clasen [Mon, 27 Jun 2005 04:49:03 +0000 (04:49 +0000)]
Use GMappedFile.

2005-06-27  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Use
GMappedFile.

* configure.in: Require GLib 2.7.1

18 years agoUnregister XIM callbacks here. (#309054)
Matthias Clasen [Mon, 27 Jun 2005 02:27:41 +0000 (02:27 +0000)]
Unregister XIM callbacks here. (#309054)

2005-06-26  Matthias Clasen  <mclasen@redhat.com>

* modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
Unregister XIM callbacks here.  (#309054)

* modules/input/gtkimcontextxim.h: Small cleanup.

18 years agoPay attention to the scroll offset when drawing the box. (#308834, Tom von
Matthias Clasen [Mon, 27 Jun 2005 02:07:35 +0000 (02:07 +0000)]
Pay attention to the scroll offset when drawing the box. (#308834, Tom von

2005-06-26  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
scroll offset when drawing the box.  (#308834, Tom von
Schwerdtner)

18 years agogdk/Makefile.am Current GNU tools do understand the PRIVATE keyword, so no
Tor Lillqvist [Sun, 26 Jun 2005 19:01:33 +0000 (19:01 +0000)]
gdk/Makefile.am Current GNU tools do understand the PRIVATE keyword, so no

2005-06-26  Tor Lillqvist  <tml@novell.com>

* gdk/Makefile.am
* gtk/Makefile.am: Current GNU tools do understand the PRIVATE
keyword, so no need to remove those entries from the import
library. libtool installs the .dll.a import library itself, so no
need to do it here. Install the .def file.

18 years agoCurrent GNU tools do understand the PRIVATE keyword, so no need to remove
Tor Lillqvist [Sun, 26 Jun 2005 18:55:49 +0000 (18:55 +0000)]
Current GNU tools do understand the PRIVATE keyword, so no need to remove

2005-06-26  Tor Lillqvist  <tml@novell.com>

* Makefile.am: Current GNU tools do understand the PRIVATE
keyword, so no need to remove those entries from the import
library. libtool installs the .dll.a import library itself, so no
need to do it here. Do install the .def file.

18 years agoUpdated Slovak translation.
Marcel Telka [Sun, 26 Jun 2005 18:21:40 +0000 (18:21 +0000)]
Updated Slovak translation.

2005-06-26  Marcel Telka  <marcel@telka.sk>

* sk.po: Updated Slovak translation.

18 years agoadd GDK_GRAB_BROKEN to the switch cases.
Manish Singh [Sun, 26 Jun 2005 07:06:13 +0000 (07:06 +0000)]
add GDK_GRAB_BROKEN to the switch cases.

Sun Jun 26 00:04:36 2005  Manish Singh  <yosh@gimp.org>

        * gdk/gdkevents.c (gdk_event_get_time, gdk_event_get_state): add
        GDK_GRAB_BROKEN to the switch cases.

        * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): remove unused
        variables.

        * gtk/gtkpaned.c (gtk_paned_grab_broken): return TRUE.

18 years agoStop column header drag operations if the grab is broken.
Matthias Clasen [Sun, 26 Jun 2005 06:51:55 +0000 (06:51 +0000)]
Stop column header drag operations if the grab is broken.

2005-06-26  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtktreeview.c (gtk_tree_view_grab_broken): Stop column
header drag operations if the grab is broken.

18 years agoStop the drag if the grab is broken.
Matthias Clasen [Sun, 26 Jun 2005 06:39:19 +0000 (06:39 +0000)]
Stop the drag if the grab is broken.

2005-06-26  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkhsv.c (gtk_hsv_grab_broken): Stop the drag if
the grab is broken.

18 years agoDon't do explicitly ungrab pointer and keyboard. We're unmapping the grab
Matthias Clasen [Sun, 26 Jun 2005 06:26:47 +0000 (06:26 +0000)]
Don't do explicitly ungrab pointer and keyboard. We're unmapping the grab

2005-06-26  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkcombobox.c (gtk_combo_box_popdown): Don't do
explicitly ungrab pointer and keyboard. We're unmapping
the grab window anyway.
(gtk_combo_box_popup): Handle grab failures.

18 years agoDon't emit grab-broken for overgrabbing, until we figure out how to do
Matthias Clasen [Sun, 26 Jun 2005 03:48:06 +0000 (03:48 +0000)]
Don't emit grab-broken for overgrabbing, until we figure out how to do

2005-06-25  Matthias Clasen  <mclasen@redhat.com>

* gdk/x11/gdkmain-x11.c (gdk_keyboard_grab, gdk_pointer_grab):
Don't emit grab-broken for overgrabbing, until we figure
out how to do that without breaking the menu code.

18 years agoUpdated Slovak translation.
Marcel Telka [Sat, 25 Jun 2005 20:35:53 +0000 (20:35 +0000)]
Updated Slovak translation.

2005-06-25  Marcel Telka  <marcel@telka.sk>

* sk.po: Updated Slovak translation.

18 years agoAdd a GrabBroken event to GDK, and a grab-broken-event signal to
Matthias Clasen [Sat, 25 Jun 2005 07:10:40 +0000 (07:10 +0000)]
Add a GrabBroken event to GDK, and a grab-broken-event signal to

2005-06-25  Matthias Clasen  <mclasen@redhat.com>

Add a GrabBroken event to GDK, and a grab-broken-event
signal to GtkWidget.  (#107320, Simon Cooke, initial patch
by John Ehresman)

* gdk/gdkevents.h: Add a GDK_GRAB_BROKEN event type,
define a GdkEventGrabBroken event struct.

* gdk/win32/gdkevents-win32.c (gdk_event_translate):
Generate GrabBroken events in response to WM_KILLFOCUS.

* gdk/x11/gdkmain-x11.c: Generate GrabBroken events
when a grab is broken by the window becoming unviewable,
or by another grab from the same client.

* gtk/gtkwidget.h (GtkWidgetClass): Add grab_broken_event.

* gtk/gtkwidget.c (gtk_widget_event_internal): Translate
GrabBroken events into grab_broken_event signals.

* gtk/gtkmain.c (gtk_main_do_event): Propagate GrabBroken
events.

* gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Deactivate
the menu when the grab is broken.

* gtk/gtkcolorsel.c (gtk_color_selection_grab_broken): Stop
the color picker if the grab is broken.

* gtk/gtkpaned.c (gtk_paned_grab_broken): Stop the drag if
the grab is broken.

18 years agoAdd some new stock items. (#166480, Kristof Vansant)
Matthias Clasen [Sat, 25 Jun 2005 05:06:47 +0000 (05:06 +0000)]
Add some new stock items. (#166480, Kristof Vansant)

2005-06-25  Matthias Clasen  <mclasen@redhat.com>

Add some new stock items.  (#166480, Kristof Vansant)

* gtk/stock-icons/stock_fullscreen_16.png:
* gtk/stock-icons/stock_fullscreen_24.png:
* gtk/stock-icons/stock_leave_fullscreen_16.png:
* gtk/stock-icons/stock_leave_fullscreen_24.png:
* gtk/stock-icons/stock_info_16.png:
* gtk/stock-icons/stock_info_24.png: New icons.

* gtk/stock-icons/Makefile.am: Add new icons.

* gtk/gtkstock.h: Define names for the new icons.

* gtk/gtkstock.c (builtin_items): Register new stock items.

* gtk/gtkiconfactory.c (get_default_icons): Register new
stock icons.

18 years agoMake movement by paragraphs up/down symmetric. (#307055, Behnam Esfahbod)
Matthias Clasen [Fri, 24 Jun 2005 17:42:17 +0000 (17:42 +0000)]
Make movement by paragraphs up/down symmetric. (#307055, Behnam Esfahbod)

2005-06-24  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtktextview.c
(gtk_text_view_move_cursor_internal): Make movement by
paragraphs up/down symmetric.  (#307055, Behnam Esfahbod)

18 years agoFix up selection of conversion functions for MSB machines:
Owen Taylor [Fri, 24 Jun 2005 15:06:29 +0000 (15:06 +0000)]
Fix up selection of conversion functions for MSB machines:

2005-06-24  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkrgb.c (gdk_rgb_select_conv): Fix up selection of
        conversion functions for MSB machines: convert_0888[_br]
        now work on bytes so are endian independent.
        (Reported by David Zeuthen)

18 years agoDon't jump to the next line if we are at the end of the line.
Matthias Clasen [Fri, 24 Jun 2005 13:49:34 +0000 (13:49 +0000)]
Don't jump to the next line if we are at the end of the line.

2005-06-24  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtktextview.c (gtk_text_view_scroll_hpages): Don't
jump to the next line if we are at the end of the line.

18 years agoMention also bug #308413.
Tor Lillqvist [Fri, 24 Jun 2005 13:04:51 +0000 (13:04 +0000)]
Mention also bug #308413.

18 years agoImprove and simplify line segment rendering on Win32, especially the
Tor Lillqvist [Fri, 24 Jun 2005 13:00:05 +0000 (13:00 +0000)]
Improve and simplify line segment rendering on Win32, especially the

2005-06-23  Tor Lillqvist  <tml@novell.com>

Improve and simplify line segment rendering on Win32, especially
the implementation of GDK_CAP_NOT_LAST, and dashed lines. Fixes
bug #306396.

* gdk/win32/gdkprivate-win32.h (GdkGCWin32): Save the GdkGC's
line_style, cap_style and join_style as such in the
GdkGCWin32. Don't need to keep the pen_double_dash flag, we can
check the line_style.

* gdk/win32/gdkgc-win32.c (fixup_pen): New internal function. Sets
up the GDI pen type, style, end cap and join attributes to use
based on the pen width, GDK line style, end cap style, and join
style.

For a narrow (zero-width) GDK pen with the GDK_CAP_NOT_LAST end
cap style, which typically are used for XOR drawing where it is
essential that the last pixel is not drawn, use a GDI cosmetic
pen. Only for a cosmetic pen does GDI not draw the last pixel. I
deduced this by experimetation, the documentation is rather vague.

For other GDK pens use a geometric GDI pen. If the width is 0 or 1
and the GDK end cap style is GDK_CAP_BUTT, and the line style is
GDK_LINE_SOLID, use PS_ENDCAP_ROUND. This ensures that also
single-pixel length lines are drawn. (For sngle-pixel width lines
roundness as such is of course irrelevant.) For dashed lines, use
PS_ENDCAP_FLAT.

For wide lines use PS_ENDCAP_FLAT, _ROUND or _SQUARE,
respectively, for GDK_CAP_BUTT, GDK_CAP_ROUND and GDK_CAP_PROJECTING.

For one pixel on-off dashed lines, use PS_ALTERNATE, it seems to
work better than PS_USERSTYLE. For other dashed lines, use
PS_USERSTYLE and the dashes as set by the user (or the default
four-pixel on-off style).

(gdk_win32_gc_values_to_win32values, gdk_win32_gc_set_dashes):
Call fixup_pen() to do the pen settings after modifying some of
the GDK GC attributes that affect pens.

* gdk/win32/gdkdrawable-win32.c (render_line_horizontal,
render_line_vertical, draw_segments): Check GdkGCWin32::line_style
instead of the the removed pen_double_dash member. Don't use
PATCOPY unconditionally in the PatBlt() call, use a raster ope
code that depends on the GC function in use.

(draw_rectangle, draw_segments, draw_lines): Be more careful in
deciding when to do the manual dash rendering.

(draw_segments): Don't do any manual "last point" drawing at
all. The above changes takes care of narrow line segments being
drawn correctly in most cases, at least on NT-based Windows.

18 years agofix language team reference
Kwok-Koon Cheung [Fri, 24 Jun 2005 03:38:24 +0000 (03:38 +0000)]
fix language team reference

18 years agoUpdated Canadian English translation.
Adam Weinberger [Thu, 23 Jun 2005 23:44:51 +0000 (23:44 +0000)]
Updated Canadian English translation.

2005-06-23  Adam Weinberger  <adamw@gnome.org>

* en_CA.po: Updated Canadian English translation.

18 years agoFix an error in the cache timeout logic. (#166601, Morten Welinder)
Matthias Clasen [Thu, 23 Jun 2005 20:44:27 +0000 (20:44 +0000)]
Fix an error in the cache timeout logic. (#166601, Morten Welinder)

2005-06-23  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder):
Fix an error in the cache timeout logic.  (#166601, Morten
Welinder)

18 years agoChange the keynav for header reordering and resizing to Alt-arrows and
Matthias Clasen [Thu, 23 Jun 2005 20:19:21 +0000 (20:19 +0000)]
Change the keynav for header reordering and resizing to Alt-arrows and

2005-06-23  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtktreeview.c (gtk_tree_view_key_press): Change the
keynav for header reordering and resizing to Alt-arrows and
Shift-Alt-arrows, following a proposal by the keynav
authority. (#308666, Calum Benson)

18 years agoRemove a leftover debugging envvar.
Matthias Clasen [Thu, 23 Jun 2005 17:05:17 +0000 (17:05 +0000)]
Remove a leftover debugging envvar.

2005-06-23  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Remove
a leftover debugging envvar.

18 years agoFix the big endian case for 3-channel source. (Reported by David Zeuthen)
Owen Taylor [Thu, 23 Jun 2005 13:49:06 +0000 (13:49 +0000)]
Fix the big endian case for 3-channel source. (Reported by David Zeuthen)

2005-06-23  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix the
        big endian case for 3-channel source. (Reported by
        David Zeuthen)

18 years agoDon't trigger warnings if there are extra references to the hbox.
Matthias Clasen [Thu, 23 Jun 2005 04:24:24 +0000 (04:24 +0000)]
Don't trigger warnings if there are extra references to the hbox.

2005-06-23  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkbutton.c (gtk_button_construct_child): Don't
trigger warnings if there are extra references to the
hbox.  (#308677, Dan Winship)

18 years agoUse g_file_set_contents(). (#308722, Morten Welinder)
Matthias Clasen [Thu, 23 Jun 2005 04:14:17 +0000 (04:14 +0000)]
Use g_file_set_contents(). (#308722, Morten Welinder)

2005-06-23  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkfilesystemunix.c (bookmark_list_write): Use
g_file_set_contents().  (#308722, Morten Welinder)

18 years agoUse glib-i18n.h
Matthias Clasen [Thu, 23 Jun 2005 03:09:48 +0000 (03:09 +0000)]
Use glib-i18n.h

2005-06-22  Matthias Clasen  <mclasen@redhat.com>

* gdk-pixbuf-i18n.h: Use glib-i18n.h

18 years agoTranslation updated by Tino Meinen.
Vincent van Adrighem [Wed, 22 Jun 2005 21:03:41 +0000 (21:03 +0000)]
Translation updated by Tino Meinen.

2005-06-22  Vincent van Adrighem  <adrighem@gnome.org>

* nl.po: Translation updated by Tino Meinen.

18 years agoSet the time field in the event. (#308573, Morten Welinder)
Matthias Clasen [Wed, 22 Jun 2005 16:09:41 +0000 (16:09 +0000)]
Set the time field in the event. (#308573, Morten Welinder)

2005-06-22  Matthias Clasen  <mclasen@redhat.com>

* gdk/x11/gdkdnd-x11.c (xdnd_finished_filter): Set the
time field in the event.  (#308573, Morten Welinder)

18 years agoRemove gratitious differences between the stable branch and HEAD, which
Matthias Clasen [Wed, 22 Jun 2005 15:09:35 +0000 (15:09 +0000)]
Remove gratitious differences between the stable branch and HEAD, which

* gtk/gtkfilesystemunix.c: Remove gratitious differences
between the stable branch and HEAD, which sneaked in with
the bookmark renaming.

18 years agoUpdated Slovak translation.
Marcel Telka [Wed, 22 Jun 2005 05:12:29 +0000 (05:12 +0000)]
Updated Slovak translation.

2005-06-22  Marcel Telka  <marcel@telka.sk>

* sk.po: Updated Slovak translation.

18 years agoDon't leak the cairo context Closes bug #308581.
Kjartan Maraas [Tue, 21 Jun 2005 22:46:30 +0000 (22:46 +0000)]
Don't leak the cairo context Closes bug #308581.

2005-06-22  Kjartan Maraas  <kmaraas@gnome.org>

* gtk/gtkhsv.c: (gtk_hsv_expose): Don't leak the cairo context
Closes bug #308581.

18 years agoModify all of the GtkMisc widgets to round down on centering calculations
Matthias Clasen [Tue, 21 Jun 2005 15:38:40 +0000 (15:38 +0000)]
Modify all of the GtkMisc widgets to round down on centering calculations

2005-06-21  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkarrow.c:
* gtk/gtkimage.c:
* gtk/gtklabel.c:
* gtk/gtkpixmap.c: Modify all of the GtkMisc widgets to round down
on centering calculations to match the behaviour of other parts
of GTK+. (#307419, Ryan Lortie)

18 years agoTranslation updated by Tino Meinen.
Vincent van Adrighem [Tue, 21 Jun 2005 08:31:06 +0000 (08:31 +0000)]
Translation updated by Tino Meinen.

2005-06-21  Vincent van Adrighem  <adrighem@gnome.org>

* nl.po: Translation updated by Tino Meinen.

18 years agoConnect to button-release-event as well, to handle touchscreen scenarios
Matthias Clasen [Tue, 21 Jun 2005 05:54:11 +0000 (05:54 +0000)]
Connect to button-release-event as well, to handle touchscreen scenarios

2005-06-21  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkdnd.c (gtk_drag_source_set): Connect to
button-release-event as well, to handle touchscreen
scenarios better.  (#171490, Markku Vire)

18 years agoFix the build
Matthias Clasen [Tue, 21 Jun 2005 05:49:49 +0000 (05:49 +0000)]
Fix the build

18 years agoTrivial cleanups. (#169647, #303455, Fabricio Barros Cabral, Benoit
Matthias Clasen [Tue, 21 Jun 2005 05:35:43 +0000 (05:35 +0000)]
Trivial cleanups. (#169647, #303455, Fabricio Barros Cabral, Benoit

2005-06-21  Matthias Clasen  <mclasen@redhat.com>

* gtk/*.h: Trivial cleanups. (#169647, #303455,
Fabricio Barros Cabral, Benoit Carpentier)

18 years agoConsistently use gchar. (#303455, Benoit Carpentier)
Matthias Clasen [Tue, 21 Jun 2005 05:15:06 +0000 (05:15 +0000)]
Consistently use gchar. (#303455, Benoit Carpentier)

2005-06-21  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtklabel.h: Consistently use gchar.  (#303455,
Benoit Carpentier)

18 years agoNew function which can be used to implement scrolling in non-window
Matthias Clasen [Tue, 21 Jun 2005 04:09:52 +0000 (04:09 +0000)]
New function which can be used to implement scrolling in non-window

2005-06-21  Matthias Clasen  <mclasen@redhat.com>

* gdk/gdk.symbols:
* gdk/gdkwindow.h:
* gdk/x11/gdkgeometry-x11.c (gdk_window_move_region): New
function which can be used to implement scrolling in
non-window widgets.  (#135165, Søren Sandmann)

18 years agoHandle missing MAP_FAILED. (#308449, Georg Schwarz)
Matthias Clasen [Tue, 21 Jun 2005 03:36:52 +0000 (03:36 +0000)]
Handle missing MAP_FAILED. (#308449, Georg Schwarz)

2005-06-20  Matthias Clasen  <mclasen@redhat.com>

* xdgmimecache.c: Handle missing MAP_FAILED.  (#308449, Georg
Schwarz)

18 years agoBump version number
Matthias Clasen [Mon, 20 Jun 2005 22:45:20 +0000 (22:45 +0000)]
Bump version number

18 years ago2.7.0
Matthias Clasen [Mon, 20 Jun 2005 22:06:27 +0000 (22:06 +0000)]
2.7.0

18 years agoTranslation updated by Ivar Smolin.
Priit Laes [Mon, 20 Jun 2005 21:02:09 +0000 (21:02 +0000)]
Translation updated by Ivar Smolin.

2005-06-21  Priit Laes  <plaes@cvs.gnome.org>

* et.po: Translation updated by Ivar Smolin.

18 years agoUpdated French translation.
Christophe Merlet [Mon, 20 Jun 2005 20:59:56 +0000 (20:59 +0000)]
Updated French translation.

18 years agoUpdated Danish translation.
Martin Willemoes Hansen [Mon, 20 Jun 2005 19:32:38 +0000 (19:32 +0000)]
Updated Danish translation.

        * da.po: Updated Danish translation.

18 years agoVariant of gtk_window_present which takes a timestamp. (#166379, Elijah
Matthias Clasen [Mon, 20 Jun 2005 18:19:34 +0000 (18:19 +0000)]
Variant of gtk_window_present which takes a timestamp. (#166379, Elijah

2005-06-20  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtk.symbols:
* gtk/gtkwindow.h:
* gtk/gtkwindow.c (gtk_window_present_with_time): Variant of
gtk_window_present which takes a timestamp.  (#166379, Elijah Newren)

18 years agoIgnore some more headers.
Matthias Clasen [Mon, 20 Jun 2005 05:59:03 +0000 (05:59 +0000)]
Ignore some more headers.

18 years agoAdd a forgotten symbol
Matthias Clasen [Mon, 20 Jun 2005 05:14:46 +0000 (05:14 +0000)]
Add a forgotten symbol

18 years agoUpdates
Matthias Clasen [Mon, 20 Jun 2005 03:58:26 +0000 (03:58 +0000)]
Updates

18 years agoadded a check which avoids processing updates on bin_window and scrolling
Kristian Rietveld [Sun, 19 Jun 2005 19:22:46 +0000 (19:22 +0000)]
added a check which avoids processing updates on bin_window and scrolling

2005-06-19  Kristian Rietveld  <kris@gtk.org>

* gtk/gtktreeview.c (gtk_tree_view_clamp_node_visible): added a
check which avoids processing updates on bin_window and scrolling
if the node is already visible. (#170600, Billy Biggs).

18 years agoonly keep the row at the same position if the full row is visible.
Kristian Rietveld [Sun, 19 Jun 2005 18:40:35 +0000 (18:40 +0000)]
only keep the row at the same position if the full row is visible.

2005-06-19  Kristian Rietveld  <kris@gtk.org>

* gtk/gtktreeview.c (validate_visible_area): only keep the
row at the same position if the full row is visible. (#304623,
Jorn Baayen).

18 years agoset dy to zero if treeview's height is smaller than the current page_size
Kristian Rietveld [Sun, 19 Jun 2005 18:00:56 +0000 (18:00 +0000)]
set dy to zero if treeview's height is smaller than the current page_size

2005-06-19  Kristian Rietveld  <kris@gtk.org>

* gtk/gtktreeview.c (gtk_tree_view_size_allocate): set dy to zero
if treeview's height is smaller than the current page_size (just
like we do elsewhere).

18 years agoMake mousewheel scrolling possible in typeahead mode, suggestion from
Kristian Rietveld [Sun, 19 Jun 2005 17:37:07 +0000 (17:37 +0000)]
Make mousewheel scrolling possible in typeahead mode, suggestion from

2005-06-19  Kristian Rietveld  <kris@gtk.org>

Make mousewheel scrolling possible in typeahead mode, suggestion
from Reinout van Schouwen (#307898).

* gtk/gtktreeview.c (gtk_tree_view_ensure_interactive_directory):
connect treeview search window to scroll_event signal,
(gtk_tree_view_search_scroll_event): implement.

18 years agopass the event on to treeview, so it has a change of selecting a row, etc.
Kristian Rietveld [Sun, 19 Jun 2005 13:42:13 +0000 (13:42 +0000)]
pass the event on to treeview, so it has a change of selecting a row, etc.

2005-06-19  Kristian Rietveld  <kris@gtk.org>

* gtk/gtktreeview.c (gtk_tree_view_search_button_press_event): pass
the event on to treeview, so it has a change of selecting a row, etc.
(#169677, Kirk Bridger).

18 years agoThis commit includes a fix for #169463, Stefan Kost.
Kristian Rietveld [Sun, 19 Jun 2005 12:44:12 +0000 (12:44 +0000)]
This commit includes a fix for #169463, Stefan Kost.

2005-06-19  Kristian Rietveld  <kris@gtk.org>

This commit includes a fix for #169463, Stefan Kost.

* gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_get_size):
when cell_area is set, return cell_area width/height as width/height,
so the focus rectangle will be drawn correctly.

* gtk/gtktreeview.c (gtk_tree_view_bin_expose): drop unneeded get
of focus-line-width property,
(validate_row): take focus_line_width into account.

* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
also take focus_line_width into account when calculating the cell_area
y and height (before, we only took it into account when calculating
x and width).

18 years agoFix a warning
Matthias Clasen [Sun, 19 Jun 2005 04:44:44 +0000 (04:44 +0000)]
Fix a warning

18 years agoAdd an ignore-hidden property with getter and setter. (#171612, Christian
Matthias Clasen [Sun, 19 Jun 2005 04:16:28 +0000 (04:16 +0000)]
Add an ignore-hidden property with getter and setter. (#171612, Christian

2005-06-19  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtk.symbols:
* gtk/gtksizegroup.[hc]: Add an ignore-hidden property
with getter and setter.  (#171612, Christian Neumair)

18 years agoMake this work for inserting before/after an existing menuitem or
Matthias Clasen [Sun, 19 Jun 2005 03:55:12 +0000 (03:55 +0000)]
Make this work for inserting before/after an existing menuitem or

2005-06-18  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Make this
work for inserting before/after an existing menuitem or
toolitem.  (#155946, Christian Persch)

* tests/testmerge.c (delayed_toggle_dynamic): Test the
"insert after" functionality of gtk_ui_manager_add_ui.

18 years agoAdd bug ref
Matthias Clasen [Sun, 19 Jun 2005 03:20:51 +0000 (03:20 +0000)]
Add bug ref

18 years agoAllow to construct menu tool buttons.
Matthias Clasen [Sun, 19 Jun 2005 03:20:07 +0000 (03:20 +0000)]
Allow to construct menu tool buttons.

2005-06-18  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkuimanager.c: Allow to construct menu tool buttons.

* demos/gtk-demo/appwindow.c: Demonstrate menu tool buttons
constructed with GtkUIManager.

18 years agoMake this function public. (#64792, Havoc Pennington)
Matthias Clasen [Sun, 19 Jun 2005 02:02:09 +0000 (02:02 +0000)]
Make this function public. (#64792, Havoc Pennington)

2005-06-18  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtk.symbols:
* gtk/gtkimage.h:
* gtk/gtkimage.c (gtk_image_clear): Make this function
public.  (#64792, Havoc Pennington)

18 years agoundo merging of the separate loop setting cell data with cell drawing loop
Kristian Rietveld [Sat, 18 Jun 2005 12:11:26 +0000 (12:11 +0000)]
undo merging of the separate loop setting cell data with cell drawing loop

2005-06-18  Kristian Rietveld  <kris@gtk.org>

* gtk/gtktreeview.c (gtk_tree_view_bin_expose): undo merging
of the separate loop setting cell data with cell drawing loop
(introduced in revision 1.280), since this breaks focus handling
wrt special cells.

18 years agoremove GDK_CURSOR and GDK_IS_CURSOR, instance checks don't work on boxed
Manish Singh [Sat, 18 Jun 2005 11:25:14 +0000 (11:25 +0000)]
remove GDK_CURSOR and GDK_IS_CURSOR, instance checks don't work on boxed

Sat Jun 18 04:22:51 2005  Manish Singh  <yosh@gimp.org>

        * gdk/gdkcursor.h: remove GDK_CURSOR and GDK_IS_CURSOR, instance
        checks don't work on boxed types.

        * gdk/x11/gdkcursor-x11.c:
        * gdk/gdkcursor.c: make return_if_fail checks != NULL instead of
        GDK_IS_CURSOR.

18 years agoremove unused variable height_old.
Manish Singh [Sat, 18 Jun 2005 11:22:44 +0000 (11:22 +0000)]
remove unused variable height_old.

Sat Jun 18 04:21:58 2005  Manish Singh  <yosh@gimp.org>

        * gtk/gtktreeview.c (do_presize_handler): remove unused variable
        height_old.

18 years agoTypo fixes
Matthias Clasen [Sat, 18 Jun 2005 05:33:55 +0000 (05:33 +0000)]
Typo fixes

18 years agoFix 308111
Matthias Clasen [Sat, 18 Jun 2005 04:26:47 +0000 (04:26 +0000)]
Fix 308111

18 years agoFix nl_langinfo() use
Matthias Clasen [Sat, 18 Jun 2005 04:19:29 +0000 (04:19 +0000)]
Fix nl_langinfo() use

18 years agoSupport the ICCCM urgency hint. (#61858, Havoc Pennington)
Matthias Clasen [Fri, 17 Jun 2005 20:19:32 +0000 (20:19 +0000)]
Support the ICCCM urgency hint. (#61858, Havoc Pennington)

2005-06-17  Matthias Clasen  <mclasen@redhat.com>

Support the ICCCM urgency hint.  (#61858, Havoc Pennington)

* gtk/gtk.symbols:
* gtk/gtkwindow.[hc]: Add a GtkWindow::urgency-hint property
with getter and setter.

* gdk/gdk.symbols:
* gdk/gdkwindow.h:
* gdk/x11/gdkwindow-x11.c (gdk_window_set_urgency_hint):
Add a setter for the urgency hint.

* gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Store
urgency hint here.

* gdk/x11/gdkwindow-x11.c (update_wm_hints): Set the urgency
hint in the WM_HINTS property when appropriate.

18 years agoFix #160281, testcase from Peter Bloomfield.
Kristian Rietveld [Fri, 17 Jun 2005 19:44:53 +0000 (19:44 +0000)]
Fix #160281, testcase from Peter Bloomfield.

2005-06-17  Kristian Rietveld  <kris@gtk.org>

Fix #160281, testcase from Peter Bloomfield.

* gtk/gtktreeview.c (do_presize_handler): always size request
and update adjustments in fixed height mode,
(gtk_tree_view_build_tree): if a fixed height is set, set this
height on newly added nodes.

18 years agoSet the actions and suggested_action fields in the GdkDragContext to
Tor Lillqvist [Fri, 17 Jun 2005 19:41:01 +0000 (19:41 +0000)]
Set the actions and suggested_action fields in the GdkDragContext to

2005-06-17  Tor Lillqvist  <tml@novell.com>

* gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Set the actions
and suggested_action fields in the GdkDragContext to
GDK_ACTION_COPY. Otherwise apps that check the suggested_action
field, like eog, won't accept dropped files.

18 years agoDefine GDK_IS_CURSOR() and GDK_CURSOR().
Matthias Clasen [Fri, 17 Jun 2005 19:37:29 +0000 (19:37 +0000)]
Define GDK_IS_CURSOR() and GDK_CURSOR().

2005-06-17  Matthias Clasen  <mclasen@redhat.com>

* gdk/gdkcursor.h: Define GDK_IS_CURSOR() and GDK_CURSOR().

18 years agoImprove some return_if_fail checks, and add the missing non-Xcursor
Matthias Clasen [Fri, 17 Jun 2005 19:27:04 +0000 (19:27 +0000)]
Improve some return_if_fail checks, and add the missing non-Xcursor

2005-06-17  Matthias Clasen  <mclasen@redhat.com>

* gdk/x11/gdkcursor-x11.c:
* gdk/gdkcursor.c: Improve some return_if_fail checks,
and add the missing non-Xcursor fallback for
_gdk_x11_cursor_update_theme(), noticed by Jeroen
Zwartepoorte.

18 years agoDocument several button signals as not useful. `
Matthias Clasen [Fri, 17 Jun 2005 18:42:49 +0000 (18:42 +0000)]
Document several button signals as not useful. `

2005-06-17  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkbutton.c (gtk_button_class_init): Document
several button signals as not useful.
`

18 years agoResize the popup if necessary. (#308076, Vincent Noel)
Matthias Clasen [Fri, 17 Jun 2005 18:26:25 +0000 (18:26 +0000)]
Resize the popup if necessary. (#308076, Vincent Noel)

2005-06-17  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkentrycompletion.c (gtk_entry_completion_complete):
Resize the popup if necessary.  (#308076, Vincent Noel)

18 years agoQueue a draw on the old and new focus widgets, if their defaultness
Matthias Clasen [Fri, 17 Jun 2005 17:36:47 +0000 (17:36 +0000)]
Queue a draw on the old and new focus widgets, if their defaultness

2005-06-17  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkwindow.c (gtk_window_real_set_focus): Queue a
draw on the old and new focus widgets, if their defaultness
changes.  (#305607, Billy Biggs)

18 years agomake sure the row above 'above_path' is always in a validated state, so it
Kristian Rietveld [Fri, 17 Jun 2005 17:34:40 +0000 (17:34 +0000)]
make sure the row above 'above_path' is always in a validated state, so it

2005-06-17  Kristian Rietveld  <kris@gtk.org>

* gtk/gtktreeview.c (validate_visible_area): make sure the row
above 'above_path' is always in a validated state, so it does
not mess up scrolling. (#303319, testcase from Billy Biggs).

18 years agoHandle cursor theme changes for cached cursors which are not associated
Matthias Clasen [Fri, 17 Jun 2005 17:26:24 +0000 (17:26 +0000)]
Handle cursor theme changes for cached cursors which are not associated

2005-06-17  Matthias Clasen  <mclasen@redhat.com>

* gdk/x11/gdkprivate-x11.h:
* gdk/x11/gdkcursor-x11.c: Handle cursor theme changes
for cached cursors which are not associated with a window
at the time of the theme change, by storing a serial
number in each cursor, and updating the theme_serial
counter whenever the cursor theme changes.

* gdk/x11/gdkcursor-x11.c (_gdk_x11_cursor_update_theme):
Private function to update a cursor to the current
cursor theme if necessary.

* gdk/x11/gdkmain-x11.c (gdk_pointer_grab):
* gdk/x11/gdkwindow-x11.c (gdk_window_set_cursor): Call
_gdk_x11_cursor_update_theme() here.

18 years agoFix #if G_BYTE_ORDER == GDK_LSB_FIRST.
Owen Taylor [Fri, 17 Jun 2005 14:17:43 +0000 (14:17 +0000)]
Fix #if G_BYTE_ORDER == GDK_LSB_FIRST.

2005-06-17  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix
        #if G_BYTE_ORDER == GDK_LSB_FIRST.

18 years agodon't try to update the top_row rowref ourselves here, but just have
Kristian Rietveld [Fri, 17 Jun 2005 14:11:19 +0000 (14:11 +0000)]
don't try to update the top_row rowref ourselves here, but just have

2005-06-17  Kristian Rietveld  <kris@gtk.org>

* gtk/gtktreeview.c (validate_visible_area): don't try to update
the top_row rowref ourselves here, but just have _dy_to_top_row()
do it,
(gtk_tree_view_scroll_to_cell): handle scrolling via
validate_visible_area() if the treeview is not visible or needs
reallocation. (#165246, Nickolay V. Shmyrev).