1 2005-08-09 Mark McLoughlin <mark@skynet.ie>
3 Fixes "notification area leaks space" (bug #312687)
5 * gtk/gtksocket-x11.c: (_gtk_socket_windowing_filter_func):
6 gtk/gtkplug.c: (_gtk_plug_add_to_socket): don't pass a
7 detail to g_signal_emit_by_name()
9 2005-08-09 Matthias Clasen <mclasen@redhat.com>
13 2005-08-09 Matthias Clasen <mclasen@redhat.com>
15 * gtk/gtksizegroup.c (get_size_groups, set_size_groups): Use
16 g_quark_from_static_string here.
18 2005-08-08 Christian Persch <chpe@cvs.gnome.org>
20 * gtk/gtkmenutoolbutton.c: (gtk_menu_tool_button_state_changed),
21 (gtk_menu_tool_button_class_init), (popup_menu_under_arrow),
22 (gtk_menu_tool_button_init):
24 Deactivate the menu when the button becomes insensitive, and remove
25 dead code. Fixes bug #312920.
27 2005-08-08 Matthias Clasen <mclasen@redhat.com>
29 * gdk/gdk.symbols: Make the last change compile.
31 2005-08-08 Christian Persch <chpe@cvs.gnome.org>
33 * gtk/gtkmenutoolbutton.c:
34 (gtk_menu_tool_button_construct_contents),
35 (button_state_changed_cb), (menu_position_func),
36 (arrow_button_toggled_cb):
38 Use ->priv instead of GTK_MENU_TOOL_BUTTON_GET_PRIVATE.
39 Surviving part of bug #310589.
41 2005-08-07 Matthias Clasen <mclasen@redhat.com>
43 * gdk/gdk.symbols: Add the gdk_display variable.
46 * gtk/abicheck.sh: Also check exported variables.
48 Fri Aug 5 16:54:19 2005 Søren Sandmann <sandmann@redhat.com>
50 * gtk/gtkmenutoolbutton.c
51 (gtk_menu_tool_button_construct_contents): Set the relief of the
52 arrow button to the value returned by
53 gtk_tool_item_get_relief_style(). Patch from Benjamin Berg.
56 2005-08-04 Sunil Mohan Adapa <sunil@atc.tcs.co.in>
58 * configure.in: Re-added "te" to ALL_LINGUAS after
59 correcting the problem.
61 2005-08-04 Matthias Clasen <mclasen@redhat.com>
63 * configure.in: Require cairo 0.6
65 2005-08-04 Christian Persch <chpe@cvs.gnome.org>
67 * configure.in: Remove "te" since it breaks the build.
69 2005-08-04 Sunil Mohan Adapa <sunil@atc.tcs.co.in>
71 * configure.in: Added "te" to ALL_LINGUAS.
73 2005-08-04 Tor Lillqvist <tml@novell.com>
75 * gtk-zip.sh.in: Reflect the change of the default theme's name to
76 "Raleigh". Include the MS-Windows theme's gtkrc file. Include the
79 2005-08-02 Matthias Clasen <mclasen@redhat.com>
81 * configure.in: Bump version
83 * === Released 2.7.5 ===
85 * configure.in: Bump version
89 2005-08-01 Matthias Clasen <mclasen@redhat.com>
91 * gtk/gtkfixed.c (gtk_fixed_put): Fix a typo, spotted by
94 * gtk/Makefile.am (install-data-local):
95 * gtk/gtksettings.c (gtk_settings_class_init): Rename the
96 default theme to "Raleigh". (#312254, Thomas Wood)
98 * gtk/gtkdnd.c (set_icon_stock_pixbuf): Create the icon window
99 with the correct dimensions. (#312256, Mike Morrison)
101 * gtk/gtktextbuffer.h:
102 * gtk/gtk.symbols: Remove G_GNUC_NULL_TERMINATED here
105 * gtk/gtkuimanager.c (update_node): Update tooltips when
106 reconnecting toolitems. (#312173, Alex Graveley)
108 * gdk/x11/gdkxftdefaults.c: Define the hint styles to make
109 building against fc < 2.2.92 work. (#311839, Damien Carbery)
111 * gdk/x11/gdkevents-x11.c (gdk_check_wm_desktop_changed): Make
112 tracking the on_all_desktops state work better.
114 * gdk/x11/gdkwindow-x11.c (gdk_x11_window_move_to_current_desktop):
115 Don't do anything if the window is on all desktops. (#311803,
118 2005-08-01 Dom Lachowicz <cinamod@hotmail.com>
120 * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Part of #168326
122 2005-08-01 Matthias Clasen <mclasen@redhat.com>
124 * gtk/gtkclipboard.c (gtk_clipboard_set_image)
125 (gtk_clipboard_set_text): Don't leak atom names. (#311933,
128 * gtk/gtkmain.c (do_post_parse_initialization): Call
129 gettext_initialization() here as well. (#311612, Dan Winship)
131 2005-08-01 Tor Lillqvist <tml@novell.com>
133 * gdk/win32/gdkwindow-win32.c (gdk_window_set_urgency_hint):
134 Implement using FlashWindowEx(). (#309423)
136 2005-07-30 Hans Breuer <hans@breuer.org>
138 * gtk/makefile.msc.in tests/makefile.msc : updated
140 2005-07-30 Johan Dahlin <jdahlin@async.com.br>
142 * gtk/gtkctree.c (gtk_ctree_class_init): Do not use |
143 G_PARAM_STATIC_NAME in the type field, makes subclassing possible.
145 2005-07-29 Claudio Saavedra <csaavedra@alumnos.utalca.cl>
147 * docs/reference/gtk/migrating-GtkAction.sgml: Declaring the
148 GtkActionEntry arrays static const. Fixes #301612.
150 2005-07-29 J. Ali Harlow <ali@juiblex.co.uk>
152 * gtk/Makefile.am: Include gtkwin32embed.h in EXTRA_DIST
153 unconditionally. Fixes #311972.
155 2005-07-28 Federico Mena Quintero <federico@ximian.com>
157 * perf/README: Update for the new API of the profiler.
159 * perf/gtkwidgetprofiler.[ch]: New files with a widget profiler
160 object. This is the old content of timers.[ch] turned into a nice
161 object, with signals for creation and reporting. The profiler
162 needs to maintain some state when reusing the widget, so it's
163 useful to turn it into a real object.
165 Break down timing show_all into GTK_WIDGET_PROFILER_REPORT_MAP and
166 GTK_WIDGET_PROFILER_REPORT_EXPOSE.
168 * perf/main.c: Refactor to use GtkWidgetProfiler.
170 * perf/appwindow.c (content_area_new): Make this just create a
171 notebook, instead of a complex arrangement of panes.
173 * perf/widgets.h: New header file for all the "create a widget"
176 * perf/treeview.c: New file. Moved the tree view part from
177 appwindow.c over to here; GtkTreeView really needs its own tests.
178 (tree_view_new): Set the shadow type to IN.
180 * perf/textview.c: Likewise moved over from appwindow.c, but for
182 (text_view_new): Set the shadow type to IN.
184 * perf/Makefile.am (testperf_SOURCES): Add the new source files;
185 remove appwindow.h and timers.[ch].
187 * perf/timers.[ch]: Removed.
189 * perf/appwindow.h: Removed.
191 2005-07-29 Tor Lillqvist <tml@novell.com>
193 * gdk/win32/gdkevents-win32.c: Remove ifdeffed out code relating
194 to the gdk-ping message. Use the global _gdk_display instead of
195 calling gdk_display_get_default() or gdk_drawable_get_display()
196 which would return _gdk_display anyway.
197 (append_event, apply_filters, gdk_event_translate): Drop any
198 GdkDisplay parameter as we only have one display anyway. Use
199 _gdk_display where needed.
200 (gdk_event_apply_filters): Delete, move the code into its only
201 caller, apply_filters().
202 (generate_button_event): Factor out code from two places in
203 gdk_event_translate().
204 (gdk_event_translate): Call generate_button_event() in place of
207 * gdk/win32/gdkevents-win32.c (generate_grab_broken_event): New
208 static function to generate and append the GDK_GRAB_BROKEN events.
209 (gdk_pointer_grab, gdk_keyboard_grab): Generate grab broken events
210 when overriding a grab inside the application, like in the X11
211 backend. Final bits of the fix for #107320, hopefully.
212 (print_event): Handle also GDK_SETTING, GDK_OWNER_CHANGE and
213 GDK_GRAB_BROKEN events.
214 (gdk_event_translate): Call generate_grab_broken_event() in place
217 * gdk/win32/gdkdrawable-win32.c (blit_inside_drawable): Rename
218 from blit_inside_window(), as it now does blitting inside a
219 bitmap, too. No code change, still just call BitBlt().
220 (_gdk_win32_blit): Check for source equalling destination
221 first. (#169508, #131977)
222 Do away with the superfluous local draw_impl variable, the
223 parameter to this function is already a GdkDrawableImplWin32*, no
224 need to copy and cast it.
226 2005-07-28 Robert Ögren <gtk@roboros.com>
228 Avoid spurious core pointer events when the tablet pen is lifted.
231 * gdk/win32/gdkinput-win32.c (set_ignore_core): New static function,
232 handles delayed unsetting of _gdk_input_ignore_core.
233 (_gdk_input_other_event): Call set_ignore_core instead of setting
234 _gdk_input_ignore_core directly.
236 2005-07-28 Dom Lachowicz <cinamod@hotmail.com>
238 * modules/engines/ms-windows/*: Re-sync with gtk-wimp CVS. Notable
239 changes include: menu/toolbars have a gradient applied to them; better
240 handling of menu/toolbar shadows, tracking theme settings;
241 sliders/scales now use XP theming; status bar grippies drawn properly;
242 convincing toolbar grippies are drawn for the Win2k theme; notebook
243 tabs now have that orange stripe across their top; a host of scrollbar
246 2005-07-27 Tor Lillqvist <tml@novell.com>
248 * gdk/win32/gdkmain-win32.c (_gdk_win32_psstyle_to_string): Handle
251 * gdk/win32/gdkmain-win32.c (gdk_screen_get_height_mm): Fix for
252 multi-monitor cases. (#311677, Tim Evans)
254 2005-07-26 Owen Taylor <otaylor@redhat.com>
256 * gtk/gtknotebook.c (gtk_notebook_page_allocate): Fix to be
257 monotonic in the original size (#308145, Morten Welinder)
259 2005-07-26 Elijah Newren <newren@gmail.com>
261 Revert part of patch from #166379; don't have gtk_window_present()
262 change a window's desktop, but rather leave it up to the WM.
265 * gtk/gtkwindow.c (gtk_window_present_with_time): Don't change a
268 2005-07-26 Tor Lillqvist <tml@novell.com>
270 * gtk/gtkplug-win32.c: Declare GetAncestor() and define GA_PARENT
271 if missing (MSVC6). (#311633)
273 2005-07-26 Federico Mena Quintero <federico@ximian.com>
275 * perf/: New directory with the start of a framework for testing
278 * Makefile.am (SRC_SUBDIRS): Added the perf directory.
280 * configure.in (AC_OUTPUT): Generate perf/Makefile.
282 2005-07-26 Matthias Clasen <mclasen@redhat.com>
284 * gtk/gtkfilechooserdefault.c: Fix up includes on Win32.
285 (#311630, Kazuki Iwamoto)
287 * gtk/gtkimcontextsimple.c: Add ISO_Level3_Shift to
288 the list of keysyms to ignore for composition, since
289 AltGr keys produce it in some keyboard layouts. (#307283)
292 * gtk/gtk.symbols: Remove G_GNUC_NULL_TERMINATED from
293 gtk_widget_new as well, pointed out by Kjartan Maraas.
295 2005-07-25 Matthias Clasen <mclasen@redhat.com>
297 * gtk/gtkhsv.c (paint_triangle): Pad out the full width, in
298 an attempt to work around bug #311225.
300 * gtk/gtktreemodelsort.c: Trivial doc fixes.
302 * gtk/gtktreesortable.c: Talk about comparison functions, not
303 sort functions in some places. (#311398, Fabrice Bauzac)
306 * gtk/gtkobject.[hc]:
307 * gtk/gtkfilechooserdialog.[hc]
308 * gtk/gtkdialog.[hc]: Remove the G_GNUC_NULL_TERMINATED marker
309 from a number of varargs functions where we allow to omit the
310 varargs completely. (#311465, Callum McKenzie)
312 2005-07-22 Matthias Clasen <mclasen@redhat.com>
314 * === Released 2.7.4 ===
318 * gtk/gtkmessagedialog.c (gtk_message_dialog_format_secondary_markup):
319 Point out escaping oversight. (#311260, Owen Taylor)
321 2005-07-21 Matthias Clasen <mclasen@redhat.com>
323 * gtk/gtkcombobox.c (gtk_combo_box_list_destroy): Cleanup
324 a possible resize idle. (#311141, Robert Ögren)
326 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_changed):
327 (gtk_tree_model_sort_sort_level): Ref the level while using it,
328 otherwise it may get nuked by gtk_tree_model_sort_increment_stamp.
329 (gtk_tree_model_sort_row_deleted): Don't leak the root level
330 here. (#300089, James Bramford, Markku Vire)
332 2005-07-21 Federico Mena Quintero <federico@ximian.com>
334 * gtk/gtkfilechooser.c (gtk_file_chooser_set_filename): Clarify
335 the usage of this function.
336 (gtk_file_chooser_set_uri): Likewise.
337 (gtk_file_chooser_set_current_name): Likewise.
339 * gtk/gtkfilechooserdefault.c (set_file_system_backend):
340 Instrument this function for profiling as well.
341 (gtk_file_chooser_default_init): Likewise; just to have a marker
342 of where instance initialization begins.
344 2005-07-21 Owen Taylor <otaylor@redhat.com>
346 * gtk/gtkwidget.c (update_pango_context): Fix a couple of leaks.
348 2005-07-21 Christian Rose <menthos@menthos.com>
350 * configure.in: Added "hy" to ALL_LINGUAS.
352 2005-07-21 Matthias Clasen <mclasen@redhat.com>
356 * gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Be
357 a bit more careful to not shrink the label to a negative
358 width. (#311175, Thomas Vander Stichele)
360 * gtk/gtk.symbols: mark gtk_socket_steal as deprecated.
362 * configure.in: Bump the cairo requirement.
364 2005-07-19 Owen Taylor <otaylor@redhat.com>
366 * gtk/gtksettings.c gtk/gtkwidget.c: Change machinery for
367 following font rendering xsettings to set cairo font
368 options on PangoContext
370 * gdk/x11/gdkxftdefaults.c gdk/x11/gdkevents-x11.c gdkscreen-x11.h
371 gdkprivate-x11.h: Get default values for rendering options
372 (such as antialiasing, dpi) from the Xft resources for the
373 display, borrowing a bit of code from Xft.
375 * gtk/gtksettings.c (gtk_settings_class_init): Fix docs for
376 values of gtk-xft-hintstyle.
378 2005-07-21 Tor Lillqvist <tml@novell.com>
380 Make GtkPlug/Socket cross-platform: Add Win32 implementation,
381 splice out X11 implementation to separate files. (#58541)
383 * gtk/gtk.symbols: Make GtkPlug/Socket API available with all
386 * gtk/Makefile.am: Changes to build GtkPlug/Socket with all
390 * gtk/gtkplug.c: Splice out backend-dependend parts to separate
393 * gtk/gtksocketprivate.h
394 * gtk/gtkplugprivate.h: New files. Declare the backend-specific
395 functions, and the private backend-independent functions they call
398 * gtk/gtksocket-stub.c
400 * gtk/gtksocket-x11.c
402 * gtk/gtksocket-win32.c
403 * gtk/gtkplug-win32.c
404 * gtk/gtkwin32embed.h
405 * gtk/gtkwin32embed.c: New files, containing the backend-specific
406 parts of GtkPlug/Socket.
409 * gtk/gtkxembed.c (_gtk_xembed_message_name): New function, used
410 in error messages and debugging output.
412 * gtk/gtkwindow.c (gtk_window_show): No need for ifdef, can now
413 use GTK_IS_PLUG() with all backends.
415 * tests/testsocket_common.c: Make it work on Win32, too.
417 2005-07-21 Tor Lillqvist <tml@novell.com>
419 * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Use
420 wide-char API when available. (#311079, Peter Zelezny)
422 2005-07-21 Matthias Clasen <mclasen@redhat.com>
424 * gtk/gtkwidget.c (gtk_widget_modify_bg, gtk_widget_modify_base):
425 Add hints on how to handle "no window" widgets. (#136347)
427 2005-07-20 Keith Packard <keithp@keithp.com>
429 * gdk/x11/gdkdrawable-x11.c: (gdk_x11_ref_cairo_surface):
431 Follow change in cairo API to add Screen* to
432 cairo_xlib_create_surface_for_bitmap
434 2005-07-20 Matthias Clasen <mclasen@redhat.com>
436 * gtk/gtkicontheme.c (load_svg_at_size): Explicitly use the
437 svg loader, if available. This should help with the fact that
438 svg is not reliably sniffable with the current gdk-pixbuf sniffing
441 * gtk/gtkstyle.c (gtk_default_draw_expander): Make sure expanded
442 expanders are not fuzzy. (#310172, reported by Alexander Larsson,
443 patch by Owen Taylor)
445 * gtk/gtkdnd.c (gtk_drag_begin_internal): Don't fail if we
446 can't get a keyboard grab. (#168351)
448 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_[sg]et_property):
449 Add GTK_FILE_CHOOSER_PROP_DO_OVERWRITE_CONFIRMATION.
451 2005-07-19 Federico Mena Quintero <federico@ximian.com>
453 * gtk/gtkfilechooserdefault.c: Added a few utility functions for
454 profiling; instrument the code, make it conditional.
456 2005-07-19 Kristian Rietveld <kris@gtk.org>
458 * gtk/gtkentry.c (gtk_entry_move_forward_word): don't iterate
459 past the end of the string, so pango_layout_get_cursor_pos() won't
460 complain. (#309211, Tommi Komulainen).
462 2005-07-19 Tor Lillqvist <tml@novell.com>
464 * gtk/gtkmain.c (check_sizeof_GtkWindow, check_sizeof_GtkBox):
465 Don't bother mentioning the -fnative-struct (used by GCC 2) switch
466 in the error message any longer.
468 2005-07-18 Matthias Clasen <mclasen@redhat.com>
470 * gdk/gdkpixbuf-render.c: Small formatting fixes in doc comments.
472 * gtk/gtkcombobox.c (gtk_combo_box_model_row_deleted)
473 (gtk_combo_box_model_row_inserted): Remove useless calls
474 to gtk_tree_row_reference_inserted/deleted, since we
475 don't use manual row references here.
477 * gtk/gtkmain.c (gtk_parse_args, gtk_init_with_args): Call
478 gettext_initialization before checking gtk_initialized, otherwise
479 there are scenarios where it is not called at all. For an
480 example, see tests/testfilechooserbutton.c. (#310323,
483 2005-07-18 Tor Lillqvist <tml@novell.com>
485 * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get): Be sure to remove
486 any possible leftover clipping region in the DC if we don't want
487 any clipping. Thanks to Robert Ögren. (#309823)
489 * configure.in (GDK_EXTRA_LIBS): [Win32] Bypass libtool, use
490 -Wl,-luuid. This avoids a libtool warning as libuuid is static.
492 2005-07-18 Matthias Clasen <mclasen@redhat.com>
494 * gtk/gtkcombobox.c (gtk_combo_box_set_focus_on_click): Propagate
495 the focus-on-click value to the button. (#310543, Christian Persch)
497 * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a note
498 about the need to handle expose events. We really need a chapter
499 on the GTK+ drawing model that we can refer to here... (#310765,
502 2005-07-16 Tor Lillqvist <tml@novell.com>
504 * configure.in (GDK_EXTRA_LIBS): [Win32] Put -luuid back, it is
505 needed in case one builds without the ie55 stuff. (#310582)
507 2005-07-15 Matthias Clasen <mclasen@redhat.com>
509 * configure.in: Bump version
511 * === Released 2.7.3 ===
513 * gdk/gdkdraw.c (gdk_draw_drawable): Add better docs.
514 (#310192, Owen Taylor)
516 2005-07-15 Matthias Clasen <mclasen@redhat.com>
520 * gtk/gtkentry.c (gtk_entry_move_forward_word):
521 (gtk_entry_move_backward_word): Don't treat whitespace as
522 words for keynav, pointed out by Owen Taylor.
524 2005-07-15 Federico Mena Quintero <federico@ximian.com>
526 * gtk/gtkfilechooserdefault.c
527 (should_respond_after_confirm_overwrite): Take the parent folder
528 path instead of the display name, to avoid doing duplicated work
529 in gtk_file_chooser_default_should_respond().
531 2005-07-15 Federico Mena Quintero <federico@ximian.com>
533 * gtk/gtkfilechooserdefault.c
534 (confirm_dialog_should_accept_filename): Take the display name of
535 the folder as well so that we can present a better message. Use a
536 stock cancel button, "_Replace", and GTK_STOCK_SAVE_AS.
537 (gtk_file_chooser_default_should_respond): Pass the file part and
538 folder display name directly to the function above. Oops, only do
539 the confirmation dialog if the file exists.
541 2005-07-15 Federico Mena Quintero <federico@ximian.com>
543 * gtk/gtkfilechooserdefault.c
544 (confirm_dialog_should_accept_filename): Use header capitalization
545 for the buttons, per the HIG.
547 * gtk/gtk.symbols: Add the new functions.
549 * tests/testfilechooser.c (confirm_overwrite_cb): Add a test for
550 the confirm-overwrite signal.
552 * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Remove the
553 stub documentation for the "confirm-overwrite" signal.
554 (gtk_file_chooser_set_do_overwrite_confirmation): Add "Since: 2.8"
556 (gtk_file_chooser_get_do_overwrite_confirmation): Likewise.
558 2005-07-14 Federico Mena Quintero <federico@ximian.com>
560 Add overwrite confirmation for SAVE mode. Fixes bug #152850:
562 * gtk/gtkfilechooser.h: Add prototypes for
563 gtk_file_chooser_set/get_do_overwrite_confirmation().
564 (GtkFileChooserConfirmation): New enum for the result of the
565 "confirm-overwrite" signal.
567 * gtk/gtkmarshalers.list: Add ENUM:VOID.
569 * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Add a
570 "do-overwrite-confirmation" boolean property.
571 (gtk_file_chooser_set_do_overwrite_confirmation): Implement.
572 (gtk_file_chooser_get_do_overwrite_confirmation): Implement.
573 (confirm_overwrite_accumulator): New accumulator for the signal.
575 * gtk/gtkfilechooserutils.h (GtkFileChooserProp): Add
576 GTK_FILE_CHOOSER_PROP_DO_OVERWRITE_CONFIRMATION.
578 * gtk/gtkfilechooserutils.c
579 (_gtk_file_chooser_install_properties): Override the
580 do-overwrite-confirmation property.
582 * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserIface): Add a
583 confirm_overwrite signal to the vtable.
585 * gtk/gtkfilechooserdefault.c
586 (gtk_file_chooser_default_set_property): Handle the new property.
587 (gtk_file_chooser_default_get_property): Likewise.
588 (get_selected_file_info_from_file_list): New helper function; code
589 taken from list_selection_changed().
590 (list_selection_changed): Use get_selected_file_info_from_file_list().
591 (should_respond_after_confirm_overwrite): New function.
592 (gtk_file_chooser_default_should_respond): Confirm when necessary.
594 2005-07-14 Matthias Clasen <mclasen@redhat.com>
596 * gtk/gtk.symbols: Add new exported symbols.
598 2005-07-14 Tor Lillqvist <tml@novell.com>
600 * gtk/gtkfilesystemwin32.c (filename_get_info): Implement getting
601 the MIME type of a file. Look it up in the Registry. Bug reported
604 2005-07-14 Tor Lillqvist <tml@novell.com>
606 * configure.in (GDK_EXTRA_LIBS): Don't need -luuid on Win32. It
607 was some leftover, and in fact occasionally caused issues with
608 libtool as it made its way into the libgdk-win32-2.0.la file and
609 that way into the .la files of all libraries that depend on
610 GDK. (This happened only when building from CVS and not using a
611 full "make install" which would run the sanitize-la.sh script.)
613 2005-07-14 Matthias Clasen <mclasen@redhat.com>
615 * gdk/x11/gdkevents-x11.c (set_screen_from_root): Don't assert if
616 the xrootwin is invalid. (#309997, Barbie LeVille)
617 (gdk_event_translate): Ignore events with an invalid root field.
619 * configure.in: Set interface age to 0.
621 * gtk/gtkimmodule.h: Move G_BEGIN_DECLS to the right spot, noticed
624 2005-07-14 Kristian Rietveld <kris@gtk.org>
626 * gtk/gtktreeviewcolumn.[ch] (gtk_tree_view_column_queue_resize): new
627 function (fixes #169961, reported by Morten Welinder).
629 2005-07-14 Kristian Rietveld <kris@gtk.org>
631 * gtk/gtktreeview.[ch] (gtk_tree_view_get_visible_range): new
632 function. (fixes #105252, suggestion from Mikael Hallendal).
634 2005-07-13 Manish Singh <yosh@gimp.org>
636 * demos/gtk-demo/iconview_edit.c: remove unused variable.
638 2005-07-13 Kristian Rietveld <kris@gtk.org>
640 * gtk/gtktreemodel.[ch] (gtk_tree_row_reference_get_model): new
641 function. (#160879, Stefan Kost).
643 2005-07-13 Kristian Rietveld <kris@gtk.org>
645 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): paint a flat box
646 on the area the treeview got allocated extra vertically (fixes
647 #142063, reported by Brian Bober).
649 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
650 make this function calculate real_cell_area and real_background_area
651 correctly. (fixes #309249, reported by Bernd Demian).
653 2005-07-13 Matthias Clasen <mclasen@redhat.com>
655 * gtk/gtkcalendar.c (calendar_realize_arrows): Fix an
656 unintentional case of width-for-height... (#310133, Luis Villa)
658 2005-07-13 Kristian Rietveld <kris@gtk.org>
660 * gtk/gtktreeview.c (gtk_tree_view_new_column_width): let's take
661 the MIN of width and max_width here, not width and max_width != -1.
662 (fixes #144480, reported by Mikael Magnusson).
664 2005-07-13 Matthias Clasen <mclasen@redhat.com>
666 * gtk/gtkicontheme.c (load_themes): Don't keep the caches
667 for unthemed directories in a separate list, instead append
668 them at the end of the dir_mtimes list, so that we can check
669 them for staleness like the other caches. (#310221, Mark
672 * configure.in: Check that we have a new enough Cairo.
674 2005-07-13 Robert Ögren <gtk@roboros.com>
676 Fix handling of Aiptek and Aiptek-like graphical tablets such as Trust
677 on Windows. (#167004, thanks to "pnohant" for testing)
679 Code cleanup: Remove the unused and unmaintained code for using a
680 non-system tablet context (USE_SYSCONTEXT ifdef:s), suggested
683 * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Handle
684 tablet drivers that don't support WTI_DDCTXS/WTI_DSCTXS gracefully.
685 Sligthly reorganize and simplify the code to support this.
686 (_gdk_input_wintab_init_check, _gdk_input_other_event): Remove
687 USE_SYSCONTEXT ifdef:s and the code for the case it was not defined.
688 (gdk_input_window_find_within): Removed.
690 2005-07-13 Matthias Clasen <mclasen@redhat.com>
692 * gdk/win32/bdfcursor.c: Add Copyright/License information.
694 2005-07-13 Kristian Rietveld <kris@gtk.org>
696 * gtk/gtktreeview.c (validate_row): when !separator, don't add
697 the focus_line_width to width/height (happens in
698 _column_cell_get_size), but do add the vertical-separator to height,
699 we weren't taking this into account before.
701 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
702 take vertical-separator into account. (#309137, Ross Burton).
704 2005-07-13 Matthias Clasen <mclasen@redhat.com>
706 * tests/treestoretest.c:
707 * tests/testxinerama.c:
708 * tests/testtreeview.c:
709 * tests/testtreefocus.c:
710 * tests/testtreeflow.c:
711 * tests/testtreeedit.c:
712 * tests/testtreecolumns.c:
714 * tests/testtextbuffer.c:
715 * tests/testspinbutton.c:
716 * tests/testsocket_common.c:
717 * tests/testsocket_child.c:
718 * tests/testsocket.c:
719 * tests/testmultiscreen.c:
720 * tests/testmultidisplay.c:
723 * tests/testmenubars.c:
724 * tests/testicontheme.c:
725 * tests/testfilechooser.c:
726 * tests/testentrycompletion.c:
728 * tests/testcombochange.c:
729 * tests/testactions.c:
733 * gtk/gtktexttypes.h:
734 * gtk/gtktexttypes.c:
735 * gtk/gtktexttagprivate.h:
736 * gtk/gtktextsegment.h:
737 * gtk/gtktextiterprivate.h:
738 * gtk/gtktextchildprivate.h:
739 * gtk/gtktextbtree.h: Add Copyright/License information.
741 * gtk/gtkicontheme.c (gtk_icon_theme_get_default)
742 (gtk_icon_theme_get_for_screen): Add a warning about
743 unreffing icon themes. (#310163, Rodney Dawes)
745 2005-07-13 Kristian Rietveld <kris@gtk.org>
747 * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): quit
748 maintaining the iter on every iteration, only get the iter when
749 we are about to call the foreach_func. Gives us a 10x speedup,
750 since maintaining iters is a lot more expensive than maintaining
751 paths. We lose a bit of sanity checking though. Thanks go to
752 Billy Biggs for pointing this out.
754 2005-07-12 Matthias Clasen <mclasen@redhat.com>
756 * tests/testcairo.c (draw): Fix the same confusion here, too.
758 * gdk/gdkgc.c (make_stipple_tile_surface): Fix
759 cairo_content_t <-> cairo_format_t confusion. (#310086,
760 Carlos Garnacho Parro)
762 * gtk/gtkfilesystemunix.c
763 (gtk_file_system_unix_volume_get_display_name): Follow
764 the Nautilus change and rename "Filesystem" to "File System",
765 string change. (#310047, Vincent Noel)
767 2005-07-12 Matthias Clasen <mclasen@redhat.com>
769 * demos/gtk-demo/iconview.c: Rename this demo.
771 * demos/gtk-demo/iconview_edit.c: Add a demo for icon view
772 editing and drag-and-drop.
774 * demos/gtk-demo/geninclude.pl.in: Accept dashes in demo titles.
776 2005-07-12 Matthias Clasen <mclasen@redhat.com>
778 * gtk/theme-bits/decompose-bits.c:
779 * gtk/gtkfilechooserembed.c:
780 * gtk/gtktextmarkprivate.h:
781 * gtk/gtktexttagtable.h:
782 * gtk/gtktexttagtable.c:
783 * gtk/gtkrc.key.emacs: Add Copyright/License information.
785 * gdk/linux-fb/gdkrender-fb.c:
786 * gdk/linux-fb/gdkpango-fb.c:
787 * gdk/linux-fb/gdkdrawable-fb2.c:
788 * gdk/linux-fb/gdkgc-fb.c:
789 * gdk/linux-fb/gdkfbswitch.c: Add Copyright/License information.
793 * gdk/gdkselection.h:
794 * gdk/gdkselection.c:
808 * gdk/gdkcolor.h: Add Copyright/License information.
810 2005-07-11 Matthias Clasen <mclasen@redhat.com>
812 * modules/input/imm-extra.h: Add Copyright/License information.
814 2005-07-11 Matthias Clasen <mclasen@redhat.com>
816 * gtk/gtktexttag.c (gtk_text_tag_class_init)
817 (gtk_text_tag_set_property): Remove the runtime warning about
818 the invisible property, add a warning about possible remaining
819 problems to the documentation of the property. (#66194)
821 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Don't
822 ever go unconditionally to the buffer ends; that doesn't work
823 if the initial or final portion of the buffer are invisible.
825 2005-07-11 Kristian Rietveld <kris@gtk.org>
827 * gtk/gtktreeview.c (gtk_tree_view_class_init): add binding entry
828 for ctrl + backspace (move focus to parent without affecting
830 (gtk_tree_view_real_select_cursor_parent): implement ctrl+backspace
831 and simplify the function a bit. (#309296, Kathy Fernandes).
833 2005-07-11 Matthias Clasen <mclasen@redhat.com>
835 Make gtk_window_present() move the window to the current
836 desktop, instead of letting the WM change the current
837 desktop to where the window is. (#166379, Elijah Newren)
841 * gdk/x11/gdkwindow-x11.c (gdk_x11_window_move_to_current_desktop):
842 New function to move a window to the current desktop.
844 * gtk/gtkwindow.c (gtk_window_present_with_time): Move the
845 window to the current desktop before giving it focus.
847 2005-07-11 Matthias Clasen <mclasen@redhat.com>
849 When dragging text, use a drag icon showing the (ellipsized)
850 text that is being dragged: (#161132, Kevin Duffus, patch
851 by Carlos Garnacho Parro)
854 * gtk/gtktextutil.c (_gtk_text_util_create_drag_icon): Add
855 a function to create a pixmap for use when dragging text.
857 * gtk/gtktextview.c (gtk_text_view_start_selection_dnd):
858 * gtk/gtklabel.c (gtk_label_motion):
859 * gtk/gtkentry.c (gtk_entry_motion_notify): Use a drag icon
860 showing the text being dragged.
862 2005-07-11 Matthias Clasen <mclasen@redhat.com>
864 * gtk/gtkentry.c (gtk_entry_move_forward_word)
865 (gtk_entry_move_backward_word): Match the text view change
866 to allow selecting whitespace with double-click.
868 * gtk/gtktextview.c (extend_selection): Make double-clicking
869 between words select whitespace. (#309860, Mike Miller, patch
872 * gtk/gtkiconview.c: Documentation improvements. (#309946,
875 2005-07-10 Kristian Rietveld <kris@gtk.org>
877 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): remove
878 unneeded check for negative window_y.
880 2005-07-10 Kristian Rietveld <kris@gtk.org>
882 * gtk/gtktreeview.c (gtk_tree_view_search_key_press_event): also move
883 to the next match when ctrl+g is pressed. (#156657, Matt T. Proud).
885 2005-07-10 Kristian Rietveld <kris@gtk.org>
887 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): rework
888 function to make page up/down behave the same as in GtkTextView.
889 (Fixes #101220, Owen Taylor).
891 2005-07-09 Kristian Rietveld <kris@gtk.org>
893 Fix #305737, patch from Tomislav Jonjic. This makes the
894 gtk_tree_store_insert* family of functions emit row_has_child_toggled
895 when needed (they didn't do that before).
897 * gtk/gtktreestore.c (gtk_tree_store_insert): emit
898 row_has_child_toggled when needed,
899 (gtk_tree_store_insert_before): fix a possible memleak,
900 emit row_has_child_toggled when needed,
901 (gtk_tree_store_insert_after): ditto.
903 2005-07-09 Kristian Rietveld <kris@gtk.org>
905 * gtk/gtktreeview.c (gtk_tree_view_real_expand_row): when
906 open_all is TRUE, traverse the newly built tree to emit
907 row_expanded for the subitems. (rev 1.444, patch in #172319
908 broke this). Fixes #305582, reported by Billy Biggs.
910 2005-07-09 Tor Lillqvist <tml@novell.com>
912 * configure.in: Look for windres on Win32. Drop build/* from
915 * Makefile.am: Drop build from SUBDIRS.
917 * gdk/win32/rc/Makefile.am
919 * gtk/Makefile.am: Don't use the scripts in build/win32 to compile
920 the rc files into resource object files. (This means we lose the
921 build number increment magic, but I doubt it was that useful
922 anyway.) Instead use windres directly. To pass a normal .o file
923 produced by windres through libtool, which would want a .lo file,
924 pass it directly to the linker using a -Wl option.
926 * gdk/win32/rc/gdk.rc.in
927 * gtk/gtk-win32.rc.in: Replace BUILDNUMBER with 0.
929 2005-07-08 Kristian Rietveld <kris@gtk.org>
931 Fixes #165034, reported by Jorn Baayen.
933 * gtk/gtkrbtree.[ch] (_gtk_rbtree_set_fixed_height): add a
934 mark_valid parameter (so we can mark all nodes as valid when we
935 are setting them to the fixed height).
937 * gtk/gtktreeview.c (initialized_fixed_height_mode): mark all
938 nodes as valid when setting the fixed height,
939 (do_validate_rows): update call to _set_fixed_height,
940 (gtk_tree_view_row_inserted): mark node as valid when fixed
941 height mode is enabled and a height has been set,
942 (gtk_tree_view_build_tree): if fixed height mode is enabled,
943 mark new nodes as valid in addition to setting the height.
945 2005-07-08 Matthias Clasen <mclasen@redhat.com>
947 * configure.in: Bump version
949 * === Released 2.7.2 ===
953 * gtk/gtkcelllayout.c (gtk_cell_layout_pack_start):
954 (gtk_cell_layout_pack_end): Add a note about reusing cell
957 * gtk/gtkdnd.c (gtk_drag_update_cursor): Pass a GdkDragAction to
958 gtk_drag_get_cursor. (#309784, Sebastien Bacher)
960 2005-07-08 Tor Lillqvist <tml@novell.com>
962 * gtk/gtkfilesel.c: Use g_get_host_name().
964 2005-07-07 Matthias Clasen <mclasen@redhat.com>
966 * configure.in: Add -DHPPEX -DSHMLINK to CFLAGS for HP-UX.
967 (#162979, Paul Cornett)
969 * gtk/gtkhscale.c (gtk_hscale_new_with_range):
970 (gtk_vscale_new_with_range): Add some additional docs on
971 precision here too. (#309238, Steve Chaplin)
973 * gdk/x11/gdkmain-x11.c (generate_grab_broken_event): Don't
974 generate events on destroyed windows.
976 Implement Drag-and-Drop to the file list. (#145121, Sven Neumann)
978 * gtk/gtkfilechooserdefault.c (file_list_drag_data_received_cb)
979 (file_list_drag_drop_cb, file_list_drag_motion_cb): New functions
980 to handle drag-and-drop on the file list.
981 (create_file_list): Set up drag-and-drop handlers on the file list.
983 2005-07-07 Matthias Clasen <mclasen@redhat.com>
985 Fix #157787, reported by Jonathan Blandford:
987 * gtk/gtkfilechooserdefault.c
988 (gtk_file_chooser_default_set_current_folder): Don't leave a
989 "trail" behind when set_current_folder is called explicitly.
990 (gtk_file_chooser_default_update_current_folder): New function
991 that is called to update the current folder in response to
994 * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Add a boolean
995 keep_trail argument, and don't leave a "trail" behind unless
998 2005-07-06 Manish Singh <yosh@gimp.org>
1000 * demos/gtk-demo/menus.c: change_orientation() should return void,
1001 remove unused variable in do_menus().
1003 2005-07-06 Tor Lillqvist <tml@novell.com>
1005 * gdk/win32/gdkcursor-win32.c
1006 (gdk_win32_icon_to_pixbuf_libgtk_only): Don't create the GdkPixbuf
1007 until we know that we have something to put in it.
1009 2005-07-05 Matthias Clasen <mclasen@redhat.com>
1011 * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range): Add some
1012 additional docs on precision. (#309238, Steve Chaplin)
1014 * modules/input/imime.c: Fix includes. (#309462, Kazuki IWAMOTO)
1016 2005-07-05 Matthias Clasen <mclasen@redhat.com>
1018 * doc/tools/widgets.c: Actually generate a file-button
1021 2005-07-06 Tor Lillqvist <tml@novell.com>
1023 * gdk/win32/gdkcursor-win32.c: Add comment about the current named
1024 cursor implementation, and what it maybe really should do.
1025 (gdk_win32_icon_to_pixbuf_libgtk_only): New function, code moved
1026 here from gtk/gtkfilesystemwin32.c:extract_icon().
1027 (gdk_cursor_get_image): Use
1028 gdk_win32_icon_to_pixbuf_libgtk_only().
1031 * gdk/win32/gdkwin32.h: Declare gdk_win32_icon_to_pixbuf_libgtk_only().
1033 * gtk/gtkfilesystemwin32.c (extract_icon): Use
1034 gdk_win32_icon_to_pixbuf_libgtk_only().
1036 2005-07-05 Matthias Clasen <mclasen@redhat.com>
1038 * gtk/gtkmenu.c (gtk_menu_grab_notify): Take window
1039 groups into account. (#309473, Diego Gonzalez)
1041 * gtk/gtkwindow.[hc]: Add a non-exported function to
1042 get the grab widget of a window group.
1044 2005-07-05 Kristian Rietveld <kris@gtk.org>
1046 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): in the
1047 'main' expose loop, add back the calls to _set_cell_data
1048 removed earlier. (#309221, Matthias Clasen).
1050 2005-07-05 Matthias Clasen <mclasen@redhat.com>
1052 * demos/gtk-demo/menus.c: Demonstrate vertical menubars.
1055 * gtk/gtkaboutdialog.[hc]: Add a wrap-license property
1056 with getter and setter. (#165012, Christian Rose,
1057 based on a patch by Christian Persch)
1059 2005-07-05 Matthias Clasen <mclasen@redhat.com>
1061 * gdk/Makefile.am: Distribute the keyname-table.h header
1062 and the files that are used to construct it. (#309421,
1065 2005-07-04 Matthias Clasen <mclasen@redhat.com>
1067 * gtk/gtkmenubar.c (gtk_menu_bar_set_pack_direction)
1068 (gtk_menu_bar_set_child_pack_direction): Queue a resize
1069 on the contained menuitems as well.
1071 * demos/gtk-demo/appwindow.c: Break some overlong lines.
1073 2005-07-03 Hans Breuer <hans@breuer.org>
1075 * **/makefile.msc[.in] : updated
1076 * gtk/gtkiconcache.c : <io.h> for open()
1077 * gtk/gtkstyle.c : use G_PI instead of M_PI
1079 * gdk/win32/gdkcursor-win32.c : implement gdk_cursor_new_from_name()
1080 by mapping the lower case win32 api name to the respective cursor.
1081 E.g. pass "wait" to get the IDC_WAIT cursor. Also allows to load
1082 cursors from named resources in the executable.
1083 (gdk_cursor_get_image) : just return NULL for now.
1085 * gdk/win32/gdkgeometry-win32.c : implement gdk_window_move_region()
1086 by delegation to ScollWindowEx(), untested.
1088 * gdk/win32/gdkwindow-win32.c : stub for gdk_window_set_urgency_hint()
1090 2005-07-03 Matthias Clasen <mclasen@redhat.com>
1092 * gtk/gtkimagemenuitem.c: Hmm, when committing my vertical
1093 menubar patch, I forgot the GtkImageMenuItem changes. And I
1094 managed to do 2 releases without noticing that...
1096 * gtk/gtksettings.c (gtk_settings_class_init): Correct the
1097 blurb for the icon-sizes setting. String change.
1098 (#309355, Benjamin Berg)
1100 2005-07-01 Matthias Clasen <mclasen@redhat.com>
1102 * configure.in: Bump version.
1104 * === Released 2.7.1 ===
1108 2005-07-01 Matthias Clasen <mclasen@redhat.com>
1110 * gtk/gtkfilesel.c (cmpl_init_state): Prevent an infinite
1111 loop when G_FILENAME_ENCODING is invalid. (#309280, Padraig Brady)
1113 Thu Jun 30 14:17:24 2005 Manish Singh <yosh@gimp.org>
1115 * gdk/x11/gdkprivate-x11.h: declare _gdk_xgrab_check_button_event.
1117 * gtk/gtkbutton.c: fix signature of gtk_button_grab_broken.
1119 2005-06-30 Matthias Clasen <mclasen@redhat.com>
1121 * gdk/x11/gdkvisual-x11.c (gdk_visual_decompose_mask): Avoid
1122 infinite loop if a mask is zero. (#309222, David Saxton)
1124 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_fetch_child):
1125 Clarify the code, gcc 4 complains about predecrement in MAX().
1127 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize): Don't
1128 prematurely unregister callbacks.
1132 2005-06-29 Matthias Clasen <mclasen@redhat.com>
1134 * gtk/gtkbutton.c (gtk_button_grab_broken): Handle broken
1137 * gtk/gtkrange.c (gtk_range_grab_broken): Handle broken
1140 * gdk/gdkevents.h: Add a boolean to specify wether the broken
1143 * gdk/x11/gdkdisplay-x11.c (gdk_display_pointer_is_grabbed):
1144 As the documentation states, don't return TRUE for
1147 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
1148 a boolean field to store wether a pointer grab is implicit.
1150 * gdk/x11/gdkmain-x11.c (_gdk_xgrab_check_button_event):
1151 Track implicit grabs.
1153 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Call
1154 _gdk_xgrab_check_button_event for button events.
1156 2005-06-28 Matthias Clasen <mclasen@redhat.com>
1158 * gtk/gtkiconview.c (gtk_icon_view_calculate_item_size2):
1159 Make sure that cell boxes are always completely inside
1162 2005-06-27 Matthias Clasen <mclasen@redhat.com>
1164 * demos/gtk-demo/main.c (create_tree): Make the list of
1167 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end):
1168 Fix positioning at the end of the line for lines ending
1169 in invisible characters.
1170 (gtk_text_layout_get_line_display): Set display->layout
1171 to a PangoLayout, even for totally invisible lines.
1173 * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Ignore
1174 GrabBroken events which are caused by overgrabbing inside
1175 the application; menus rely on these for their operation.
1177 * gdk/gdkevents.h (struct _GdkEventGrabBroken): Add a
1180 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Set
1181 grab_window to NULL when generating GrabBroken events for
1182 WM_KILLFOCUS messages.
1184 * gdk/x11/gdkmain-x11.c (_gdk_xgrab_check_unmap)
1185 (_gdk_xgrab_check_destroy): Set grab_window to NULL when
1186 generating GrabBroken events when the grab window becomes
1187 unviewable or is destroyed.
1189 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab, gdk_keyboard_grab):
1190 Generate GrabBroken events when overriding a grab inside
1191 the application. In this case, set grab_window to the new
1194 2005-06-27 Matthias Clasen <mclasen@redhat.com>
1196 * gtk/gtkbutton.c (gtk_real_button_activate): Continue
1197 to activate even if we can't grab the keyboard.
1198 (gtk_button_finish_activate): Only ungrab when we have
1199 a keyboard grab. (#172998, William Jon McCann)
1201 2005-06-27 Matthias Clasen <mclasen@redhat.com>
1203 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
1204 Avoid a segfault. (#309054)
1206 2005-06-27 Matthias Clasen <mclasen@redhat.com>
1208 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
1209 fields for grab timestamps.
1211 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab, gdk_keyboard_grab):
1212 Store grab timestamps when grabbing.
1214 * gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard_ungrab)
1215 (gdk_display_pointer_ungrab): Don't unset the grab_window
1216 if the timestamps indicate that the ungrab will fails.
1218 * gtk/gtkmenu.c (gtk_menu_grab_notify): Cancel menus when
1219 they are grab-shadowed by something thats not a
1220 submenu. (#145416, Euan MacGregor)
1222 2005-06-27 Owen Taylor <otaylor@redhat.com>
1224 * gtk/gtk[hv]ruler.c (gtk_[hv]ruler_draw_ticks):
1227 2005-06-27 Kjartan Maraas <kmaraas@gnome.org>
1229 * gtk/gtkhruler.c: (gtk_hruler_draw_ticks): Fix leaks
1230 * gtk/gtkvruler.c: (gtk_vruler_draw_ticks): Same
1233 2005-06-27 Matthias Clasen <mclasen@redhat.com>
1235 * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Use
1238 * configure.in: Require GLib 2.7.1
1240 2005-06-26 Matthias Clasen <mclasen@redhat.com>
1242 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
1243 Unregister XIM callbacks here. (#309054)
1245 * modules/input/gtkimcontextxim.h: Small cleanup.
1247 * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
1248 scroll offset when drawing the box. (#308834, Tom von
1251 2005-06-26 Tor Lillqvist <tml@novell.com>
1254 * gtk/Makefile.am: Current GNU tools do understand the PRIVATE
1255 keyword, so no need to remove those entries from the import
1256 library. libtool installs the .dll.a import library itself, so no
1257 need to do it here. Install the .def file.
1259 Sun Jun 26 00:04:36 2005 Manish Singh <yosh@gimp.org>
1261 * gdk/gdkevents.c (gdk_event_get_time, gdk_event_get_state): add
1262 GDK_GRAB_BROKEN to the switch cases.
1264 * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): remove unused
1267 * gtk/gtkpaned.c (gtk_paned_grab_broken): return TRUE.
1269 2005-06-26 Matthias Clasen <mclasen@redhat.com>
1271 * gtk/gtktreeview.c (gtk_tree_view_grab_broken): Stop column
1272 header drag operations if the grab is broken.
1274 * gtk/gtkhsv.c (gtk_hsv_grab_broken): Stop the drag if
1277 * gtk/gtkcombobox.c (gtk_combo_box_popdown): Don't do
1278 explicitly ungrab pointer and keyboard. We're unmapping
1279 the grab window anyway.
1280 (gtk_combo_box_popup): Handle grab failures.
1282 2005-06-25 Matthias Clasen <mclasen@redhat.com>
1284 * gdk/x11/gdkmain-x11.c (gdk_keyboard_grab, gdk_pointer_grab):
1285 Don't emit grab-broken for overgrabbing, until we figure
1286 out how to do that without breaking the menu code.
1288 2005-06-25 Matthias Clasen <mclasen@redhat.com>
1290 Add a GrabBroken event to GDK, and a grab-broken-event
1291 signal to GtkWidget. (#107320, Simon Cooke, initial patch
1294 * gdk/gdkevents.h: Add a GDK_GRAB_BROKEN event type,
1295 define a GdkEventGrabBroken event struct.
1297 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
1298 Generate GrabBroken events in response to WM_KILLFOCUS.
1300 * gdk/x11/gdkmain-x11.c: Generate GrabBroken events
1301 when a grab is broken by the window becoming unviewable,
1302 or by another grab from the same client.
1304 * gtk/gtkwidget.h (GtkWidgetClass): Add grab_broken_event.
1306 * gtk/gtkwidget.c (gtk_widget_event_internal): Translate
1307 GrabBroken events into grab_broken_event signals.
1309 * gtk/gtkmain.c (gtk_main_do_event): Propagate GrabBroken
1312 * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Deactivate
1313 the menu when the grab is broken.
1315 * gtk/gtkcolorsel.c (gtk_color_selection_grab_broken): Stop
1316 the color picker if the grab is broken.
1318 * gtk/gtkpaned.c (gtk_paned_grab_broken): Stop the drag if
1321 2005-06-25 Matthias Clasen <mclasen@redhat.com>
1323 Add some new stock items. (#166480, Kristof Vansant)
1325 * gtk/stock-icons/stock_fullscreen_16.png:
1326 * gtk/stock-icons/stock_fullscreen_24.png:
1327 * gtk/stock-icons/stock_leave_fullscreen_16.png:
1328 * gtk/stock-icons/stock_leave_fullscreen_24.png:
1329 * gtk/stock-icons/stock_info_16.png:
1330 * gtk/stock-icons/stock_info_24.png: New icons.
1332 * gtk/stock-icons/Makefile.am: Add new icons.
1334 * gtk/gtkstock.h: Define names for the new icons.
1336 * gtk/gtkstock.c (builtin_items): Register new stock items.
1338 * gtk/gtkiconfactory.c (get_default_icons): Register new
1341 2005-06-24 Owen Taylor <otaylor@redhat.com>
1343 * gdk/gdkrgb.c (gdk_rgb_select_conv): Fix up selection of
1344 conversion functions for MSB machines: convert_0888[_br]
1345 now work on bytes so are endian independent.
1346 (Reported by David Zeuthen)
1348 2005-06-24 Matthias Clasen <mclasen@redhat.com>
1350 * gtk/gtktextview.c (gtk_text_view_scroll_hpages): Don't
1351 jump to the next line if we are at the end of the line.
1352 (gtk_text_view_move_cursor_internal): Make movement by
1353 paragraphs up/down symmetric. (#307055, Behnam Esfahbod)
1355 2005-06-23 Tor Lillqvist <tml@novell.com>
1357 Improve and simplify line segment rendering on Win32, especially
1358 the implementation of GDK_CAP_NOT_LAST, and dashed lines. Fixes
1359 bugs #306396 and #308413.
1361 * gdk/win32/gdkprivate-win32.h (GdkGCWin32): Save the GdkGC's
1362 line_style, cap_style and join_style as such in the
1363 GdkGCWin32. Don't need to keep the pen_double_dash flag, we can
1364 check the line_style.
1366 * gdk/win32/gdkgc-win32.c (fixup_pen): New internal function. Sets
1367 up the GDI pen type, style, end cap and join attributes to use
1368 based on the pen width, GDK line style, end cap style, and join
1371 For a narrow (zero-width) GDK pen with the GDK_CAP_NOT_LAST end
1372 cap style, which typically are used for XOR drawing where it is
1373 essential that the last pixel is not drawn, use a GDI cosmetic
1374 pen. Only for a cosmetic pen does GDI not draw the last pixel. I
1375 deduced this by experimetation, the documentation is rather vague.
1377 For other GDK pens use a geometric GDI pen. If the width is 0 or 1
1378 and the GDK end cap style is GDK_CAP_BUTT, and the line style is
1379 GDK_LINE_SOLID, use PS_ENDCAP_ROUND. This ensures that also
1380 single-pixel length lines are drawn. (For sngle-pixel width lines
1381 roundness as such is of course irrelevant.) For dashed lines, use
1384 For wide lines use PS_ENDCAP_FLAT, _ROUND or _SQUARE,
1385 respectively, for GDK_CAP_BUTT, GDK_CAP_ROUND and GDK_CAP_PROJECTING.
1387 For one pixel on-off dashed lines, use PS_ALTERNATE, it seems to
1388 work better than PS_USERSTYLE. For other dashed lines, use
1389 PS_USERSTYLE and the dashes as set by the user (or the default
1390 four-pixel on-off style).
1392 (gdk_win32_gc_values_to_win32values, gdk_win32_gc_set_dashes):
1393 Call fixup_pen() to do the pen settings after modifying some of
1394 the GDK GC attributes that affect pens.
1396 * gdk/win32/gdkdrawable-win32.c (render_line_horizontal,
1397 render_line_vertical, draw_segments): Check GdkGCWin32::line_style
1398 instead of the the removed pen_double_dash member. Don't use
1399 PATCOPY unconditionally in the PatBlt() call, use a raster op
1400 code that depends on the GC function in use.
1402 (draw_rectangle, draw_segments, draw_lines): Be more careful in
1403 deciding when to do the manual dash rendering.
1405 (draw_segments): Don't do any manual "last point" drawing at
1406 all. The above changes takes care of narrow line segments being
1407 drawn correctly in most cases, at least on NT-based Windows.
1409 2005-06-23 Matthias Clasen <mclasen@redhat.com>
1411 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder):
1412 Fix an error in the cache timeout logic. (#166601, Morten
1415 * gtk/gtktreeview.c (gtk_tree_view_key_press): Change the
1416 keynav for header reordering and resizing to Alt-arrows and
1417 Shift-Alt-arrows, following a proposal by the keynav
1418 authority. (#308666, Calum Benson)
1420 * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Remove
1421 a leftover debugging envvar.
1423 2005-06-23 Owen Taylor <otaylor@redhat.com>
1425 * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix the
1426 big endian case for 3-channel source. (Reported by
1429 2005-06-23 Matthias Clasen <mclasen@redhat.com>
1431 * gtk/gtkbutton.c (gtk_button_construct_child): Don't
1432 trigger warnings if there are extra references to the
1433 hbox. (#308677, Dan Winship)
1435 * gtk/gtkfilesystemunix.c (bookmark_list_write): Use
1436 g_file_set_contents(). (#308722, Morten Welinder)
1438 2005-06-22 Matthias Clasen <mclasen@redhat.com>
1440 * gdk/x11/gdkdnd-x11.c (xdnd_finished_filter): Set the
1441 time field in the event. (#308573, Morten Welinder)
1443 * gtk/gtkfilesystemunix.c: Remove gratitious differences
1444 between the stable branch and HEAD, which sneaked in with
1445 the bookmark renaming.
1447 2005-06-22 Kjartan Maraas <kmaraas@gnome.org>
1449 * gtk/gtkhsv.c: (gtk_hsv_expose): Don't leak the cairo context
1452 2005-06-21 Matthias Clasen <mclasen@redhat.com>
1457 * gtk/gtkpixmap.c: Modify all of the GtkMisc widgets to round down
1458 on centering calculations to match the behaviour of other parts
1459 of GTK+. (#307419, Ryan Lortie)
1461 2005-06-21 Matthias Clasen <mclasen@redhat.com>
1463 * gtk/gtkdnd.c (gtk_drag_source_set): Connect to
1464 button-release-event as well, to handle touchscreen
1465 scenarios better. (#171490, Markku Vire)
1467 * gtk/*.h: Trivial cleanups. (#169647, #303455,
1468 Fabricio Barros Cabral, Benoit Carpentier)
1472 * gdk/x11/gdkgeometry-x11.c (gdk_window_move_region): New
1473 function which can be used to implement scrolling in
1474 non-window widgets. (#135165, Søren Sandmann)
1476 2005-06-20 Matthias Clasen <mclasen@redhat.com>
1478 * gtk/gtkiconcache.c: Handle MAP_FAILED. (#308449, Georg
1481 2005-06-20 Matthias Clasen <mclasen@redhat.com>
1483 * configure.in: Bump version number.
1485 * === Released 2.7.0 ===
1487 2005-06-20 Matthias Clasen <mclasen@redhat.com>
1491 * gtk/gtkwindow.c (gtk_window_present_with_time): Variant of
1492 gtk_window_present which takes a timestamp. (#166379, Elijah Newren)
1494 2005-06-19 Matthias Clasen <mclasen@redhat.com>
1496 * gtk/gtk.symbols: Add a forgotten symbol
1500 2005-06-19 Kristian Rietveld <kris@gtk.org>
1502 * gtk/gtktreeview.c (gtk_tree_view_clamp_node_visible): added a
1503 check which avoids processing updates on bin_window and scrolling
1504 if the node is already visible. (#170600, Billy Biggs).
1506 2005-06-19 Kristian Rietveld <kris@gtk.org>
1508 * gtk/gtktreeview.c (validate_visible_area): only keep the
1509 row at the same position if the full row is visible. (#304623,
1512 2005-06-19 Kristian Rietveld <kris@gtk.org>
1514 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set dy to zero
1515 if treeview's height is smaller than the current page_size (just
1516 like we do elsewhere).
1518 2005-06-19 Kristian Rietveld <kris@gtk.org>
1520 Make mousewheel scrolling possible in typeahead mode, suggestion
1521 from Reinout van Schouwen (#307898).
1523 * gtk/gtktreeview.c (gtk_tree_view_ensure_interactive_directory):
1524 connect treeview search window to scroll_event signal,
1525 (gtk_tree_view_search_scroll_event): implement.
1527 2005-06-19 Kristian Rietveld <kris@gtk.org>
1529 * gtk/gtktreeview.c (gtk_tree_view_search_button_press_event): pass
1530 the event on to treeview, so it has a change of selecting a row, etc.
1531 (#169677, Kirk Bridger).
1533 2005-06-19 Kristian Rietveld <kris@gtk.org>
1535 This commit includes a fix for #169463, Stefan Kost.
1537 * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_get_size):
1538 when cell_area is set, return cell_area width/height as width/height,
1539 so the focus rectangle will be drawn correctly.
1541 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): drop unneeded get
1542 of focus-line-width property,
1543 (validate_row): take focus_line_width into account.
1545 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
1546 also take focus_line_width into account when calculating the cell_area
1547 y and height (before, we only took it into account when calculating
1550 2005-06-19 Matthias Clasen <mclasen@redhat.com>
1553 * gtk/gtksizegroup.[hc]: Add an ignore-hidden property
1554 with getter and setter. (#171612, Christian Neumair)
1556 2005-06-18 Matthias Clasen <mclasen@redhat.com>
1558 * gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Make this
1559 work for inserting before/after an existing menuitem or
1560 toolitem. (#155946, Christian Persch)
1562 * tests/testmerge.c (delayed_toggle_dynamic): Test the
1563 "insert after" functionality of gtk_ui_manager_add_ui.
1565 * gtk/gtkuimanager.c: Allow to construct menu tool buttons.
1566 (#300678, Sven Neumann)
1568 * demos/gtk-demo/appwindow.c: Demonstrate menu tool buttons
1569 constructed with GtkUIManager.
1573 * gtk/gtkimage.c (gtk_image_clear): Make this function
1574 public. (#64792, Havoc Pennington)
1576 2005-06-18 Kristian Rietveld <kris@gtk.org>
1578 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): undo merging
1579 of the separate loop setting cell data with cell drawing loop
1580 (introduced in revision 1.280), since this breaks focus handling
1583 Sat Jun 18 04:22:51 2005 Manish Singh <yosh@gimp.org>
1585 * gdk/gdkcursor.h: remove GDK_CURSOR and GDK_IS_CURSOR, instance
1586 checks don't work on boxed types.
1588 * gdk/x11/gdkcursor-x11.c:
1589 * gdk/gdkcursor.c: make return_if_fail checks != NULL instead of
1592 Sat Jun 18 04:21:58 2005 Manish Singh <yosh@gimp.org>
1594 * gtk/gtktreeview.c (do_presize_handler): remove unused variable
1597 2005-06-18 Matthias Clasen <mclasen@redhat.com>
1599 * gtk/gtkcellrenderertoggle.c:
1600 * gtk/gtktextview.c:
1601 * gtk/gtktreeview.c: Typo fixes in comments.
1603 * gtk/gtkpaned.c (gtk_paned_add): Barf if more than
1604 2 children are added. (#308111, Morten Welinder)
1606 * gtk/gtkcalendar.c (gtk_calendar_init): _NL_FIRST_WEEKDAY is
1607 1-based. (#163842, Pierre Ossman)
1609 2005-06-17 Kristian Rietveld <kris@gtk.org>
1611 Fix #160281, testcase from Peter Bloomfield.
1613 * gtk/gtktreeview.c (do_presize_handler): always size request
1614 and update adjustments in fixed height mode,
1615 (gtk_tree_view_build_tree): if a fixed height is set, set this
1616 height on newly added nodes.
1618 2005-06-17 Tor Lillqvist <tml@novell.com>
1620 * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Set the actions
1621 and suggested_action fields in the GdkDragContext to
1622 GDK_ACTION_COPY. Otherwise apps that check the suggested_action
1623 field, like eog, won't accept dropped files.
1625 2005-06-17 Matthias Clasen <mclasen@redhat.com>
1627 Support the ICCCM urgency hint. (#61858, Havoc Pennington)
1630 * gtk/gtkwindow.[hc]: Add a GtkWindow::urgency-hint property
1631 with getter and setter.
1635 * gdk/x11/gdkwindow-x11.c (gdk_window_set_urgency_hint):
1636 Add a setter for the urgency hint.
1638 * gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Store
1641 * gdk/x11/gdkwindow-x11.c (update_wm_hints): Set the urgency
1642 hint in the WM_HINTS property when appropriate.
1644 2005-06-17 Matthias Clasen <mclasen@redhat.com>
1646 * gdk/gdkcursor.h: Define GDK_IS_CURSOR() and GDK_CURSOR().
1648 * gdk/x11/gdkcursor-x11.c:
1649 * gdk/gdkcursor.c: Improve some return_if_fail checks,
1650 and add the missing non-Xcursor fallback for
1651 _gdk_x11_cursor_update_theme(), noticed by Jeroen
1654 * gtk/gtkbutton.c (gtk_button_class_init): Document
1655 several button signals as not useful.
1657 * gtk/gtkentrycompletion.c (gtk_entry_completion_complete):
1658 Resize the popup if necessary. (#308076, Vincent Noel)
1660 * gtk/gtkwindow.c (gtk_window_real_set_focus): Queue a
1661 draw on the old and new focus widgets, if their defaultness
1662 changes. (#305607, Billy Biggs)
1664 2005-06-17 Kristian Rietveld <kris@gtk.org>
1666 * gtk/gtktreeview.c (validate_visible_area): make sure the row
1667 above 'above_path' is always in a validated state, so it does
1668 not mess up scrolling. (#303319, testcase from Billy Biggs).
1670 2005-06-17 Matthias Clasen <mclasen@redhat.com>
1672 * gdk/x11/gdkprivate-x11.h:
1673 * gdk/x11/gdkcursor-x11.c: Handle cursor theme changes
1674 for cached cursors which are not associated with a window
1675 at the time of the theme change, by storing a serial
1676 number in each cursor, and updating the theme_serial
1677 counter whenever the cursor theme changes.
1679 * gdk/x11/gdkcursor-x11.c (_gdk_x11_cursor_update_theme):
1680 Private function to update a cursor to the current
1681 cursor theme if necessary.
1683 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab):
1684 * gdk/x11/gdkwindow-x11.c (gdk_window_set_cursor): Call
1685 _gdk_x11_cursor_update_theme() here.
1687 2005-06-17 Owen Taylor <otaylor@redhat.com>
1689 * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix
1690 #if G_BYTE_ORDER == GDK_LSB_FIRST.
1692 2005-06-17 Kristian Rietveld <kris@gtk.org>
1694 * gtk/gtktreeview.c (validate_visible_area): don't try to update
1695 the top_row rowref ourselves here, but just have _dy_to_top_row()
1697 (gtk_tree_view_scroll_to_cell): handle scrolling via
1698 validate_visible_area() if the treeview is not visible or needs
1699 reallocation. (#165246, Nickolay V. Shmyrev).
1701 2005-06-17 Kristian Rietveld <kris@gtk.org>
1703 Fixes #307914 (Alexander Larsson), fixing some breakage caused
1704 by my previous commit.
1706 * gtk/gtktreeview.c (validate_visible_area): force dy to be zero
1707 when it fits on a single page,
1708 (scroll_sync_handler): same here.
1710 Thu Jun 16 15:33:42 2005 Manish Singh <yosh@gimp.org>
1712 * gdk/x11/gdkcursor-x11.c (update_cursor): remove unused variable.
1714 * gdk/x11/gdkwindow-x11.c (_gdk_x11_window_get_cursor): use
1715 g_return_val_if_fail.
1717 * gtk/gtkdnd.c (gtk_drag_get_cursor): initialize hot_x and hot_y
1720 * gtk/gtkfilechooserdefault.c (button_new): gtk_button_set_image
1721 takes a GtkWidget, not a GtkImage.
1723 2005-06-16 Matthias Clasen <mclasen@redhat.com>
1725 * gtk/gtkfilechooserdefault.c (button_new): Simplify
1726 the code and respect the show-button-images setting.
1727 (#307941, Vincent Noel)
1729 * gtk/gtkdnd.c: Update the RGBA cursor if an
1730 icon is set after the cursor has been constructed.
1731 Also handle repeated setting of icons correctly.
1733 2005-06-16 Matthias Clasen <mclasen@redhat.com>
1735 * gtk/gtkbutton.c (gtk_button_set_image): Add some more
1736 docs. (#307818, Christian Persch)
1738 2005-06-15 Matthias Clasen <mclasen@redhat.com>
1740 * gdk/gdkwindow.c (gdk_window_process_updates_internal):
1741 Initialize all fields of the expose event. (#151693,
1744 2005-06-15 Matthias Clasen <mclasen@redhat.com>
1746 * gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image): Get
1747 red and blue in place.
1749 * gtk/gtkwindow.c (gtk_window_parse_geometry): Fox doc
1750 formatting, pointed out by Kjartan Maraas.
1752 * gtk/gtksettings.c: Add two new settings,
1753 gtk-cursor-theme-name and gtk-cursor-theme-size to
1754 control the cursor theme.
1756 * gdk/x11/gdkevents-x11.c: Add two new X settings,
1757 Gtk/CursorThemeName and Gtk/CursorThemeSize, and map
1758 these to the gtk settings.
1760 * tests/testgtk.c (create_cursors): Add a cursor theme
1763 * gdk/x11/gdkwindow-x11.[hc]: Keep a reference to the
1764 GdkCursor and add a private getter for it, so that we can
1765 update the cursor when the cursor theme changes.
1769 * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme):
1770 New function to change the cursor theme.
1772 * gdk/x11/gdkwindow-x11.c: Remove a lot of pointless
1773 g_return_if_fail() non-NULL checks.
1775 2005-06-15 Matthias Clasen <mclasen@redhat.com>
1777 * gdk/abicheck.sh: Use uniq to filter out duplicates.
1778 * gdk/gdk.symbols: Fix a define.
1780 2005-06-14 Matthias Clasen <mclasen@redhat.com>
1782 * gtk/gtkwindow.c (gtk_window_parse_geometry):
1783 Fix up the example. (#307699, Michal Suchanek)
1785 2005-06-14 Matthias Clasen <mclasen@redhat.com>
1787 * gtk/gtkcalendar.c: Update num_marked_dates as we
1788 used to do. (#307689, Thorsten Schoenfeld)
1790 2005-06-14 Federico Mena Quintero <federico@ximian.com>
1792 Merged from gtk-2-6:
1796 * gtk/gtkfilechooserdefault.c (list_selection_changed): Emit
1797 "selection-changed" and do the normal housekeeping even if we are
1798 in SAVE mode and there is nothing selected. We didn't emit that
1799 signal if we were in SAVE mode and unselect_all() got called.
1800 (gtk_file_chooser_default_unselect_all): Call
1801 pending_select_paths_free() so that we cancel any asynchronous
1803 (gtk_file_chooser_default_set_current_name): Likewise.
1805 2005-06-14 Federico Mena Quintero <federico@ximian.com>
1807 Merged from gtk-2-6:
1811 * gtk/gtkfilechooserdefault.c
1812 (gtk_file_chooser_default_should_respond): Oops, I broke SAVE
1813 mode. If the parent path is a folder, only create a subfolder if
1814 we are in CREATE_FOLDER mode; if we are in SAVE mode, just return
1815 and respond. Also, pick up the case where the user types
1816 "dirname/" instead of "dirname".
1817 (check_save_entry): Make the return type void. Add some return
1818 parameters so that we can do more thorough checking.
1819 (gtk_file_chooser_default_get_paths): If the file part is empty
1820 and we are in SAVE mode, return an empty selection.
1822 2005-06-15 Kristian Rietveld <kris@gtk.org>
1824 Patch for #163214 (reported by Tommi Komulainen) and fixes some
1825 other scrolling/validation related bugs along the why.
1827 * gtk/gtktreeview.c (gtk_tree_view_size_request): run
1828 do_validate_rows once and don't queue a size request there,
1829 (gtk_tree_view_size_allocate): don't update vadj value without
1830 reason, sync top_row/dy after the window sizes and adjustments
1832 (validate_visible_area): always update dy when scrolling,
1833 manually set top_row here after changing the vadj (don't depend
1834 on _adjustment_changed and top_row/dy sync to do this), since we
1835 now always set top_row here correctly, we can always free
1836 scroll_to_path at the end which avoids infinite expose loops,
1837 (do_validate_rows): add queue_resize boolean, remove top_row/dy
1838 sync here, we cannot do it safely at this place since the
1839 window sizes and adjustments are out of sync,
1840 (validate_rows), (validate_rows_handler): update call to
1843 2005-06-14 Matthias Clasen <mclasen@redhat.com>
1845 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_name): Add a
1846 stub for the no-Xcursor case. (noticed by Luis Villa)
1848 Use named cursors for the DND cursors, the names are "dnd-none",
1849 "dnd-copy", "dnd-link", "dnd-move" and "dnd-ask". Also use an RGBA
1850 cursor instead of cursor+window when possible. This saves
1851 roundtrips during the drag operation, and makes translucent icons
1854 * gtk/gtkdndcursors.h: New file, containing inlined pixbufs
1855 for the default dnd cursors.
1857 * gtk/gtkdnd.c (struct _GtkDragSourceInfo): Store the cursors
1858 used during the drag here, also store the icon pixbuf here.
1860 * gtk/gtkdnd.c (drag_cursors): Store the cursor names here. Also
1861 switch the default cursors from xbm to inlined pixbufs.
1863 * gtk/gtkdnd.c (gtk_drag_get_cursor): This function now takes the
1864 GtkDragSourceInfo as well, since it has to composite the
1865 drag-specific cursors. The cursors combined from the image of
1866 the themed cursor and the icon_pixbuf stored in the info.
1868 * gtk/gtkdnd.c (gtk_drag_begin_internal): Don't set the default
1869 icon if there is an icon_pixbuf, which will be composited into
1872 * gtk/gtkdnd.c (set_icon_stock_pixbuf): If appropriate, store
1873 the pixbuf in the info struct for later compositing into the
1874 cursor instead of creating an icon window.
1876 * gtk/gtkdnd.c (gtk_drag_drop_finished): If we used an
1877 RGBA cursor for the drag, and need to display the cancel
1878 animation, construct the icon window here.
1880 * gtk/gtkdnd.c (gtk_drag_source_info_destroy): Unref the
1881 drag-specific cursors and the icon_pixbuf when done with
1884 2005-06-14 Matthias Clasen <mclasen@redhat.com>
1886 * gtk/gtkcolorsel.c (make_picker_cursor): Use a named cursor
1887 with the name "color-picker", when available.
1891 * gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image)
1892 (gdk_cursor_new_from_name): New functions to construct named
1893 cursors and to get the image used for a cursor.
1895 2005-06-13 Matthias Clasen <mclasen@redhat.com>
1897 * gtk/gtkpathbar.[hc]: Rework the way in which rerooting of the
1898 path bar is done, implementing the following principles:
1899 (#137289, patch by Benjamin Otte)
1901 1. Re-root only if $HOME is an ancestor of the current path.
1903 2. When re-rooting, make sure the Left arrow appears in the path
1904 bar, so that you can navigate up from $HOME to /. In that case,
1905 make sure the Right arrow doesn't appear if the sub-hierarchy from
1906 $HOME to the cwd fits in the window.
1908 3. Make sure that hitting Alt-Up takes you always one folder up,
1909 even when the path bar is re-rooted.
1911 * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
1912 Try harder not to modify readonly strings. (#307541, Torsten Schoenfeld)
1914 * gtk/gtkfilechooserbutton.c (model_update_current_folder):
1915 Free the data of the row before overwriting it. (#307490,
1918 2005-06-13 Kjartan Maraas <kmaraas@gnome.org>
1920 * gtk/gtkcalendar.c: (calendar_paint_arrow): Don't
1921 leak the cairo context. Closes bug #307426.
1923 2005-06-13 Matthias Clasen <mclasen@redhat.com>
1925 Make invisible text work a bit better (#66194, patch by
1926 Jeroen Zwartepoorte)
1929 * gtk/gtktextiter.[hc]: Add function to move by
1932 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal):
1933 Skip invisible text when moving by paragraphs.
1935 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_visually):
1936 Skip invisible lines here too.
1938 2005-06-12 Matthias Clasen <mclasen@redhat.com>
1940 * gtk/gtkselection.c (gtk_target_list_add_image_targets):
1941 Don't leak the format names. (#307190, Morten Welinder)
1943 2005-06-12 Kjartan Maraas <kmaraas@gnome.org>
1945 * gdk/x11/gdkasync.c: (send_event_handler): Plug
1946 a leak. Closes bug #307281.
1948 2005-06-12 Matthias Clasen <mclasen@redhat.com>
1950 * gtk/gtkcalendar.c (calendar_paint_header):
1951 (gtk_calendar_size_request): Allow localization of the
1952 format in which the year is displayed. (#135451, Paisa
1955 * gdk/*.h: Cleanup. (#169648, Fabricio Barros Cabral)
1957 * gdk/gdkcairo.c: Small doc additions.
1959 * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row):
1960 Check start_button_mask before starting a drag. (#149058,
1963 * gtk/gtkfilesystemunix.c: Support .hidden files. (#129170,
1964 Sayamindu Dasgupta, patch by Jan Arne Petersen)
1966 2005-06-11 Matthias Clasen <mclasen@redhat.com>
1970 * gtk/gtkwidget.c (gtk_widget_set_app_paintable): More docs
1971 provided by Owen Taylor.
1974 * gtk/gtkiconview.h:
1975 * gtk/gtkiconview.c (gtk_icon_view_get_visible_range):
1976 Add a function to determine what parts of the model are
1977 visible. (#306726, Jonathan Blandford)
1979 * gtk/gtkfilesystemunix.c (create_file_info): Treat backup
1980 files the same way as hidden files, to be closer to what
1981 Nautilus does. (#136196, Sean Middleditch)
1983 2005-06-10 Matthias Clasen <mclasen@redhat.com>
1985 * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
1986 Don't modify strings returned from gettext().
1988 Fri Jun 10 19:06:03 2005 Manish Singh <yosh@gimp.org>
1990 * gtk/gtktextdisplay.c (render_para): don't use deprecated
1991 gdk_gc_unref function.
1993 2005-06-10 Matthias Clasen <mclasen@redhat.com>
1995 Allow setting paragraph background. (#81045, Gustavo
1996 Carneiro, patch by Jeroen Zwartepoorte)
1998 * gtk/gtktextlayout.c (set_para_values): Propagate
1999 pg_bg_color to the display struct.
2000 (gtk_text_layout_free_line_display): Free it here.
2002 * gtk/gtktextdisplay.c (render_para): If pg_bg_color
2003 is set, draw a rectangle in that color behind
2006 * gtk/gtktexttag.c (gtk_text_tag_class_init): Add
2007 paragraph-background, paragraph-background-gdk and
2008 paragraph-background-set properties.
2009 (set_pg_bg_color): A setter for paragraph-background.
2011 * gtk/gtktextlayout.h (struct _GtkTextLineDisplay): Add
2014 * gtk/gtktexttag.h (struct _GtkTextAttributes): Add
2016 (struct _GtkTextTag): Add pg_bg_color_set.
2018 2005-06-10 Kjartan Maraas <kmaraas@gnome.org>
2020 * gdk/gdkcairo.c: (gdk_cairo_set_source_pixbuf): Destroy the
2021 cairo surface when done with it. Plugs a fairly large leak in
2023 ==6014== 1999824 (115640 direct, 1884184 indirect) bytes in
2024 826 blocks are definitely lost in loss record 25239 of 25250
2025 Like this from nautilus.
2027 2005-06-10 Michael Natterer <mitch@imendio.com>
2030 * gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function
2031 to get an action's accel_closure (Fixes #141750 and #148106).
2033 2005-06-10 Matthias Clasen <mclasen@redhat.com>
2035 * gdk/gen-keyname-table.pl: Generate N_() calls for
2036 translatable key names.
2038 * gdk/keynames.txt: Mark some key names as translatable.
2040 * gdk/keyname-table.h: Regenerated.
2042 * gtk/gtkaccellabel.c (gtk_accel_label_class_init): Add
2043 some context to the msg ids for keyboard modifiers and
2045 (_gtk_accel_label_class_get_accelerator_label): Try to
2046 translate key names. (#300224, Christian Rose)
2048 2005-06-10 Federico Mena Quintero <federico@ximian.com>
2050 Merged from gtk-2-6:
2054 * gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't return
2055 immediately if we are in CREATE_FOLDER mode, so that we can fill
2056 the entry with the newly-selected folder.
2057 (gtk_file_chooser_default_set_property): Warn against turning on
2058 multiple selection for CREATE_FOLDER mode, or about setting that
2059 action while multiple selection is on.
2060 (update_chooser_entry): Change the entry's contents as well if we
2061 are in CREATE_FOLDER mode. If nothing is selected, clear the
2063 (trap_activate_cb): Don't trap enter/space if modifiers are
2064 pressed. This lets one use Ctrl-space to toggle rows in multiple
2066 (gtk_file_chooser_default_should_respond): Clean up the if-chain
2067 mess of special cases by using an array to determine what to do.
2068 Also, for the save-entry case in CREATE_FOLDER mode, actually fix
2069 the bug where the file chooser would switch to an existing folder
2070 rather than confirming with it, and create the folder ourselves.
2071 (error_creating_folder_over_existing_file_dialog): New function.
2073 * gtk/gtkfilechooserentry.c (check_completion_callback): Only
2074 insert the common prefix if we are in an "open" mode. Use a
2076 (append_common_prefix): New helper function; code moved over from
2077 check_completion_callback().
2078 (find_common_prefix): New helper function.
2079 (gtk_file_chooser_entry_focus): Append the common prefix if the
2080 user requests it explicitly.
2082 2005-06-10 Matthias Clasen <mclasen@redhat.com>
2084 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_expand):
2085 * gtk/gtktoolbar.c (gtk_toolbar_get_show_arrow):
2086 * gtk/gtktextview.c (gtk_text_view_get_iter_at_position):
2087 * gtk/gtkstock.c (gtk_stock_set_translate_func):
2088 * gtk/gtkspinbutton.c (gtk_spin_button_get_adjustment):
2089 * gtk/gtkscrolledwindow.h:
2090 * gtk/gtkmenushell.c (gtk_menu_shell_get_take_focus):
2092 * gtk/gtkiconview.c (gtk_icon_view_set_margin):
2093 * gtk/gtkicontheme.c (gtk_icon_info_load_icon):
2094 * gtk/gtkcalendar.c (gtk_calendar_thaw): Doc fixes.
2096 2005-06-09 Matthias Clasen <mclasen@redhat.com>
2098 * gdk/x11/gdkwindow-x11.c: Small markup fixes.
2100 * gtk/gtkwidget.c (gtk_widget_set_app_paintable): Add docs.
2101 (#306212, Steve Chaplin, docs provided by Billy Biggs)
2103 * gtk/gtktextbtree.c (_gtk_text_btree_char_is_invisible): Small
2104 cleanup. (#305539, Paolo Borelli)
2106 2005-06-09 Rodrigo Moya <rodrigo@novell.com>
2108 * configure.in: added cairo to list of $GTK_PACKAGES.
2110 2005-06-09 Matthias Clasen <mclasen@redhat.com>
2112 * gdk/x11/gdkdnd-x11.c (motif_drop_start, xdnd_drop_filter): Update
2113 the user time on the window when a drop happens. (#169364, Alexander
2114 Hunziker, patch by Elijah Newren)
2116 * gdk/x11/gdkwindow-x11.c: Small markup fixes.
2119 * gtk/gtkiconview.h:
2120 * gtk/gtkiconview.c (gtk_icon_view_scroll_to_path): New function
2121 to scroll to a path. (#306838, Jonathan Blandford)
2123 2005-06-08 Matthias Clasen <mclasen@redhat.com>
2125 * gtk/gtkiconview.c (gtk_icon_view_set_cursor): Scroll to the
2126 item. (#306839, Jonathan Blandford)
2128 * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): Check for
2129 negative before appending the index, to avoid double error
2130 message. (#306393, Morten Welinder)
2132 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
2133 Don't crash if search_window is NULL. (#304914, Victor Osadci,
2134 testcase by Olaf Vitters)
2136 * gtk/gtkimage.c: Make the file property readable.
2137 (#170674, Lorenzo Gil Sanchez)
2140 2005-06-08 Matthias Clasen <mclasen@redhat.com>
2142 * gtk/gtkfilesystem.c (gtk_file_info_get_display_key): Use
2143 g_utf8_collate_key_for_filename().
2145 2005-06-07 Kjartan Maraas <kmaraas@gnome.org>
2147 * gtk/gtkfilechooserbutton.c: (update_label_and_image):
2148 Merge leak fix from stable. Bug 306754.
2150 2005-06-05 Tor Lillqvist <tml@novell.com>
2152 * gdk/win32/gdkscreen-win32.c
2153 (_gdk_windowing_substitute_screen_number): Return NULL unless
2154 screen number is zero. We have only one screen on Win32.
2155 (gdk_screen_make_display_name): Call gdk_display_get_name() and
2158 * modules/engines/Makefile.am
2159 * modules/input/Makefile.am: Decide whether to build the
2160 ms-windows theme engine based on the GDK backend, not based on
2161 platform. (I.e., if building for Cygwin with the X11 backend, we
2162 shouldn't build the ms-windows engine, but if building for Cygwin
2163 but with the Win32 backend, we should.) Ditto for the IME
2164 (Windows) input module. (#305832)
2166 2005-06-04 Tor Lillqvist <tml@novell.com>
2168 * gdk/win32/gdkcursor-win32.c
2169 * gdk/win32/gdkwindow-win32.c
2170 * gdk/win32/gdkprivate-win32.h: Support full-colour cursors.
2171 Support cursors with alpha on XP. Use code in common with the
2172 support for alpha icons that already was present. (#306101, Tim
2175 * modules/engines/ms-windows/msw_style.c: Render insensitive icons
2176 in a way that more closely matches Windows. (#305986, Tim Evans).
2178 * modules/engines/ms-windows/Makefile.am (LDADDS): Link with
2181 2005-06-03 Dom Lachowicz <cinamod@hotmail.com>
2183 * modules/engines/ms-windows/msw_style.c: Re-sync with gtk-wimp
2184 * modules/engines/ms-windows/xp_theme.c: Ditto
2185 * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Ditto
2187 Thu May 26 16:43:27 2005 Manish Singh <yosh@gimp.org>
2189 * gtk/gtkentrycompletion.h: Add declarations for
2190 gtk_entry_completion_{get,set}_popup_single_match.
2192 2005-05-26 Matthias Clasen <mclasen@redhat.com>
2195 * gtk/gtkentrycompletion.c: Add a property to suppress the
2196 popup for single matches. (#154711)
2198 * gtk/gtkentry.c (gtk_entry_completion_timeout): Respect it here.
2200 * gtk/gtkfilechooserentry.c (_gtk_file_chooser_entry_set_action):
2203 * gtk/gtktextbtree.c (_gtk_text_btree_tag): Queue the
2204 redisplay after modifying the tag in the btree, otherwise
2205 we end up showing the old tags until the next redraw comes
2206 around. (#143537, Gary Kramlich, Peter Wainwright)
2208 * gtk/gtkcombobox.c (gtk_combo_box_list_auto_scroll): Make
2209 autoscrolling work at the bottom of the screen.
2211 2005-05-26 Maciej Katafiasz <email@mathrick.org>
2213 * docs/reference/gtk/tmpl/gtkentry.sgml:
2214 Point to GtkTextView instead of GtkText. Fixes bug #305535
2216 2005-05-26 Sven Neumann <sven@gimp.org>
2218 * gtk/gtkselection.c (gtk_selection_data_set_pixbuf): use a less
2219 aggressive PNG compression level (bug #305340).
2221 2005-05-26 Tor Lillqvist <tml@novell.com>
2223 * gdk/win32/gdkdrawable-win32.c (_gdk_win32_blit): If blitting
2224 from the root window, take the multi-monitor offset into
2227 2005-05-25 Matthias Clasen <mclasen@redhat.com>
2229 * demos/gtk-demo/appwindow.c (do_appwindow): Set the window
2232 * gtk/gtkfilesystem.c (gtk_file_folder_is_finished_loading):
2233 Remove another C99ism.
2235 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Draw the
2236 background of rows insensitive when the treeview is insensitive.
2237 (pointed out by Billy Biggs)
2239 * demos/gtk-demo/clipboard.c: Demonstrate image copy-and-paste
2240 and DND, and clipboard persistency.
2242 * gtk/gtkselection.c (gtk_target_list_add_image_targets):
2243 Make sure png comes first, otherwise dnd may use bmp by
2244 default, loosing transparency.
2246 2005-05-25 Michael Natterer <mitch@imendio.com>
2248 * gtk/gtktextview.c (blink_cb): block the text_layout's "changed"
2249 handler when changing cursor visibility because it would expose
2250 the whole paragraph where the cursor is. Instead, expose the
2251 cursors' areas manually. (#173047).
2253 (text_window_invalidate_cursors): new function which exposes the
2256 * gtk/gtkstyle.c (draw_insertion_cursor): added comment that the
2257 same cursor size calculation is in text_window_invalidate_cursors().
2259 2005-05-25 Matthias Clasen <mclasen@redhat.com>
2261 * demos/gtk-demo/editable_cells.c (create_items_model): Also
2262 demonstrate GtkCellRendererProgress.
2264 * demos/gtk-demo/Makefile.am (demos):
2265 * demos/gtk-demo/combobox.c: Add a demo showing combo box
2268 * demos/gtk-demo/Makefile.am (demos):
2269 * demos/gtk-demo/pickers.c: Add a demo showing all picker widgets.
2271 2005-05-24 Matthias Clasen <mclasen@redhat.com>
2273 * demos/gtk-demo/iconview.c (do_iconview): Fix a typo.
2275 2005-05-24 Tor Lillqvist <tml@novell.com>
2277 * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Handle
2278 gtk-alternative-button-order (setting it to TRUE).
2280 2005-05-23 Matthias Clasen <mclasen@redhat.com>
2282 * gtk/gtktreeview.c (gtk_tree_view_search_init): Remove
2283 an unused variable. (#305130, Jaap A. Haitsma)
2285 * gtk/gtkfilechooserdefault.c (filter_create): Don't grab
2286 the focus away from the file list when operating the filter
2287 combo with the pointer. (#304844, Sven Neumann)
2289 2005-05-23 Tor Lillqvist <tml@novell.com>
2291 * gdk/win32/gdkkeys-win32.c (handle_special): Map VK_APPS to
2292 GDK_Menu. (#172383, Ivan Wong)
2294 * gdk/win32/gdkkeys-win32.c (handle_dead): If the keysym isn't one
2295 of the special cases this function takes care of, use it as
2296 such. This takes care of for instance the Bengali Virama, see bug
2299 2005-05-20 Matthias Clasen <mclasen@redhat.com>
2301 * gtk/gtkimcontextsimple.c (check_table): Avoid a possible
2302 buffer overrun. (#142444, Leonard Michlmayr)
2304 * gtk/gtkfilesystem.c: Remove C99-isms (#304879,
2307 2005-05-18 Matthias Clasen <mclasen@redhat.com>
2309 * gtk/gtkfilechooser.c (gtk_file_chooser_remove_shortcut_folder_uri):
2310 Use the correct function to conver the uri to a path. (#304565,
2313 * gtk/gtkfilechooserbutton.c (dialog_response_cb): Handle the
2314 Cancel button properly. (#304234, Sven Neumann)
2316 2005-05-18 Anders Carlsson <andersca@imendio.com>
2318 * gtk/gtktextview.c: (gtk_text_view_flush_scroll),
2319 (gtk_text_view_update_adjustments), (gtk_text_view_value_changed):
2320 * gtk/gtktextview.h:
2321 If the horizontal adjustment changes because of a change in the
2322 layout width, then do a complete redraw. This is because there
2323 might be right-aligned or centered text that needs to be redrawn.
2325 2005-05-18 Matthias Clasen <mclasen@redhat.com>
2327 * gtk/gtkwidget.c (gtk_widget_add_events): Try harder to set
2328 the event masks of descendent windows. (#169821, Tommi Komulainen)
2330 * gtk/gtktreeview.c (gtk_tree_view_get_drop_column)
2331 (gtk_tree_view_set_column_drag_info): Fix some errors in the
2332 handling of drop columns. (#143355, John Finlay)
2334 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
2335 Remove the no longer needed workaround.
2337 * gtk/gtkwidget.c (widget_add_child_draw_rectangle): Only collect
2338 allocations of mapped children.
2340 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
2341 Add a bug reference.
2343 2005-05-18 Tor Lillqvist <tml@novell.com>
2345 * gdk/win32/gdkevents-win32.c
2346 * gdk/win32/gdkkeys-win32.c
2347 * gdk/win32/gdkprivate-win32.h: Check the KF_EXTENDED bit in
2348 lParam of WM_KEY* messages to distinguish between left and right
2349 Control and Alt keys. Unfortunately, the right Shift key doesnt
2350 set KF_EXTENDED, so to distinguish between left and right Shift
2351 keys, check the scan code. (#304584)
2353 2005-05-18 Matthias Clasen <mclasen@redhat.com>
2355 * gdk/x11/gdkproperty-x11.c (gdk_property_get): Warn if
2356 length overflows. (#161520, Ian Wienand)
2358 * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name): Fix
2359 parameter names to make gtk-doc happy.
2361 * gtk/gtkscale.c (gtk_scale_class_init): Fix the default
2362 values of draw-value and value-pos to be the values we
2363 actually use in _init. (#304547, Mikael Hallendal)
2365 * gtk/gtkcellrendererpixbuf.c: Support named icons in
2366 cells by adding a icon-name property. (#165777, Anders
2370 * gtk/gtktoolbutton.h:
2371 * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name)
2372 (gtk_tool_button_get_icon_name): Support named icons in
2373 tool buttons by adding a icon-name property. (#116577,
2378 * gtk/gtkdnd.c (gtk_drag_source_set_icon_name)
2379 (gtk_drag_set_icon_name): New functions to support themed
2380 drag icons. (#116577, Christian Neumair)
2382 2005-05-17 Owen Taylor <otaylor@redhat.com>
2384 * gdk/x11/gdkdrawable-x11.c (gdk_x11_ref_cairo_surface):
2385 Update to changed cairo interface.
2387 * gdk/x11/gdkdrawable-x11.[ch]:
2388 Add _gdk_x11_drawable_update_size()
2390 * gdk/x11/gdkwindow-x11.c (gdk_window_resize)
2391 (gdk_window_move_resize)
2392 * gdk/x11/gdkevents-x11.c (gdk_event_translate):
2393 Call _gdk_x11_drawable_update_size().
2395 2005-05-17 Matthias Clasen <mclasen@redhat.com>
2397 * gtk/gtktextview.c (cursor_blinks): Don't blink the cursor
2398 if the text view is not editable.
2400 * gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Keep
2401 the popup posted if the button is released over the cellview.
2402 This matches the behaviour of other combo box implementations.
2405 * gdk/gdkwindow.c (gdk_window_set_bg_pattern): Adjust offsets
2406 when recursing. (#153682, Felipe Heidrich)
2408 2005-05-16 Matthias Clasen <mclasen@redhat.com>
2410 * gtk/gtkscale.c (gtk_scale_class_init): Don't bind GDK_Page_Up
2411 and GDK_Page_Down twice. (#168333, Hazael Maldonado Torres)
2413 * gtk/gtkentry.c (cursor_blinks): Don't blink the cursor if
2414 the entry is not editable. (#304171, Nikos Kouremenos)
2416 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_constructor):
2417 Make sure the action of the button and the dialog are in sync,
2418 when the dialog is provided by the app. (#303987, David A Knight)
2420 * gdk/gdkpango.c (gdk_pango_renderer_get_default): Fix a typo
2421 in the docs. (#303940, Masao Mutoh)
2423 * configure.in (GTK_DOC_CHECK): Check for gtk-doc 1.4.
2425 * gtk/gtktoggleaction.c (connect_proxy): Be more careful when
2426 casting. (#304089, Philip Langdale)
2428 * gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Only shrink
2429 the label if we need to. (#169390, Felix Riemann)
2431 Sat May 14 00:07:46 2005 Manish Singh <yosh@gimp.org>
2434 * gdk/gdkpango.c: #include gdkcairo.h for gdk_cairo_create()
2437 * gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): actually
2438 call gdk_cairo_set_source_color() with a color.
2440 * gtk/gtkimage.c (gtk_image_expose): remove unused stock_id variable.
2442 * tests/testiconview.c (main): cast args of drag functions to the
2445 2005-05-13 Owen Taylor <otaylor@redhat.com>
2447 * gdk/x11/gdkdrawable-x11.c: Update for cairo-xlib API change.
2449 * gdk/x11/gdkpixmap-x11.[ch] gdk/gdk.symbols: Export
2450 gdk_pixmap_impl_x11_get_type(), needed in gdkdrawable-x11.c.
2452 2005-05-11 Owen Taylor <otaylor@redhat.com>
2454 * tests/testgtk.c (on_alpha_window_expose): Fix to use
2455 gdk_cairo_create(). (create_alpha_window): Hook up "response"
2456 to close the window.
2458 2005-05-11 Owen Taylor <otaylor@redhat.com>
2460 * gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea
2461 to draw the swatch in to avoid having an extraneous window.
2463 * gtk/gtkcolorsel.c (color_sample_draw_sample): Actually se tthe
2464 color when !has_opacity.
2466 2005-05-10 Owen Taylor <otaylor@redhat.com>
2468 * gdk/gdkcairo.[ch] gdk/gdkcolor.[ch] gdk/Makefile.am: Add source
2469 files for Cairo convenience functionality.
2471 * gdk/gdkcairo.h (gdk_cairo_rectangle, gdk_cairo_region): Add a
2472 convenience functions to add GdkRectangle, GdkRegion to a cairo path.
2474 * gdk/gdkwindow.c gdk/gdkgc.c gtk/gtkcolorsel.c gtk/gtkiconview.c
2475 gtk/gtkstyle.c: Use gdk_cairo_rectangle/region().
2477 * gdk/gdkcairo.[ch] gdk/gdkdrawable.h gdk/gdkdraw.c: Rename
2478 gdk_drawable_create_cairo_context() to gdk_cairo_create().
2480 * gdk/gdkcairo.c gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c:
2481 Rename gdk_pixbuf_set_as_cairo_source() to
2482 gdk_cairo_set_source_pixbuf().
2484 * gdk/gdkdraw.c gdk/gdkpango.c gtk/gtkcolorsel.c gtk/gtkhruler.c
2485 gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkstyle.c gtk/gtkvruler.c:
2488 * gdk/gdk.symbols: Update.
2490 * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): Fix
2491 coordinate system problem that was causing the wrong portions
2494 * gtk/gtkcellrenderer.c (gtk_cell_renderer_render)
2495 gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render)
2496 gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render)
2497 gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render)
2498 gtk/gtkcellview.c (gtk_cell_view_expose)
2499 gtk/gtkdnd.c (gtk_drag_highlight_expose)
2500 gtk/gtkentry.c (gtk_entry_draw_text)
2501 gtk/gtktextview.c (text_window_invalidate_rect): Some cairoization.
2503 * gtk/gtkcalendar.[ch]: Beat into something roughly resembling
2504 GTK+ style ... use instance-private data and standard names for
2505 private structure, etc. Move function docs inline.
2507 * gtk/gtkcalendar.[ch]: Switch to drawing everything in
2508 expose. Switch drawing to Cairo.
2510 * gtk/gtkcalendar.c (gtk_calendar_freeze): Deprecate
2511 gtk_calendar_freeze/thaw
2513 2005-05-10 Tor Lillqvist <tml@novell.com>
2515 * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Check
2516 that GDK_IS_SCREEN(screen) (like the X11 backend does), not screen
2517 == gdk_screen_get_default(), as that might return NULL when this
2520 2005-05-09 Matthias Clasen <mclasen@redhat.com>
2522 * gtk/gtkalignment.c (gtk_alignment_size_allocate): Flip the
2523 padding in RTL mode. (#303572, Maciej Katafiasz)
2525 2005-05-09 Owen Taylor <otaylor@redhat.com>
2527 * gdk/gdkrgb.c (gdk_rgb_convert_0888_br, gdk_rgb_convert_8880_br):
2528 Fill in unused bits so they can be used for the depth-32 target case.
2529 Rewrite so that that gives a marginal speedup rather than a
2530 marginal slowdown. (on x86)
2532 * gdk/gdkscreen.h gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkvisual-x11.c:
2533 Add gdk_screen_get_rgba_colormap/visual to get a visual for
2534 windows with an alpha channel, if one exists.
2536 * gdk/win32/gdkscreen-win32.c gdk/linux-fb/gdkscreen-fb.c:
2537 Stub out gdk_screen_get_rgba_colormap/visual.
2539 * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors): computation of
2540 "unused" wasn't right for depth == 32, since it depended on
2543 * gdk/gdkrgb.c: Fill in alpha bits with 1s. (Based on patch from
2545 http://mail.gnome.org/archives/gtk-devel-list/2004-June/msg00080.html)
2547 * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
2548 Implement again, without using Xft.
2550 * tests/testgtk.c: Add a test for windows with an alpha channel.
2552 2005-05-09 Matthias Clasen <mclasen@redhat.com>
2554 * autogen.sh: Revert accidental commit.
2556 2005-05-08 Matthias Clasen <mclasen@redhat.com>
2558 * gdk/gdkcolor.c (gdk_cairo_set_source_color):
2563 * gdk/x11/gdkcolor-x11.c: Small documentation additions.
2565 2005-05-07 Matthias Clasen <mclasen@redhat.com>
2567 * gtk/gtkscrolledwindow.h:
2568 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_hscrollbar):
2569 (gtk_scrolled_window_get_cscrollbar): Change the return
2570 type to GtkWidget*, proposed by Owen Taylor.
2572 * gdk/x11/gdkscreen-x11.c (gdk_screen_get_width_mm)
2573 (gdk_screen_get_height_mm): Fix typos in the docs. (#303389,
2576 2005-05-07 Matthias Clasen <mclasen@redhat.com>
2578 * gtk/gtkiconview.c: Fix a copy-and-paste accident, spotted
2581 2005-05-07 Owen Taylor <otaylor@redhat.com>
2583 * gdk/gdkgc.c (gc_get_foreground): Get the foreground color, not
2584 the background color.
2586 2005-05-07 Owen Taylor <otaylor@redhat.com>
2588 * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source):
2589 Change prototype to match cairo_set_source_surface().
2591 * gdk/gdkdraw.c gdk/gdkgc.c gdk/gdkpixbuf-render.c gdk/gdkwindow.c
2592 gtk/gtkhsv.c tests/testcairo.c.
2594 2005-05-06 Federico Mena Quintero <federico@ximian.com>
2596 Merged from gtk-2-6:
2598 * gtk/gtkfilesystemunix.c (fill_in_mime_type): Don't fill the mime
2599 types if this is an AFS directory.
2600 (fill_in_names): If we are in an AFS directory, set the MIME type
2601 blindly to "x-directory/normal".
2603 2005-05-06 Matthias Clasen <mclasen@redhat.com>
2605 * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Always
2606 initialize child-visible to FALSE, otherwise we may end up
2607 with the wrong page visible initially. (#302283, Patrik Fimml)
2609 * gtk/gtktreeview.c (gtk_tree_view_draw_arrow): Make expanders
2610 appear insensitive in insensitive treeviews.
2612 2005-05-05 Matthias Clasen <mclasen@redhat.com>
2614 * gtk/gtktoolbar.c: Fix a typo in the docs. (#303024,
2617 2005-05-06 Matthias Clasen <mclasen@redhat.com>
2620 * gtk/gtkiconview.[hc]: Add DND support similar to the DND
2621 support in the tree view. (#150270)
2623 2005-05-05 Matthias Clasen <mclasen@redhat.com>
2626 * gtk/gtkwidget.h: Small cleanups.
2628 * gtk/gtktreeview.c (gtk_tree_view_get_dest_row_at_pos): Fix
2631 2005-05-04 Owen Taylor <otaylor@redhat.com>
2633 * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.h: Fix a bug
2634 in focus tracking when we move between has_pointer_focus and
2635 has_focus_window directly. (#109246, Billy Biggs, Niko Tyni
2638 * gdk/x11/gdkevents-x11.c: Also fix some confusion that could
2639 happen in the case of no window manager + keyboard grabs, by
2640 moving to a more consistent model of when we pay attention to
2641 mode=NotifyGrab/NotifyUngrab events.
2643 * docs/focus_tracking.txt: Extensive writeup about how to track
2646 Wed May 4 13:21:41 2005 Søren Sandmann <sandmann@redhat.com>
2648 * tests/testcairo.c (draw): Replace cairo_show_surface() uses with
2649 cairo_set_source_surface()/cairo_paint();
2651 2005-05-04 Tor Lillqvist <tml@novell.com>
2653 * gdk/win32/gdkdrawable-win32.c (generic_draw, blit_from_pixmap)
2654 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values,
2655 _gdk_win32_gc_new, _gdk_windowing_gc_set_clip_region,
2656 gdk_win32_hdc_get): Minor fixes to make Win32 backend compile
2659 2005-05-03 Matthias Clasen <mclasen@redhat.com>
2661 * gtk/gtkfilesystem.c:
2662 * gtk/gtkcelleditable.c:
2663 * gtk/gtktreemodel.c: Avoid getting the interface struct
2664 twice in the same function. (#300513, Billy Biggs)
2666 * gtk/gtkscrolledwindow.h:
2667 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_vscrollbar):
2668 * gtk/gtk.symbols: Add getters for the scrollbars. (#167181,
2672 * gtk/gtkdialog.c (gtk_dialog_get_response_for_widget):
2673 Make this function public. (#170748, Morten Welinder)
2675 2005-05-02 Federico Mena Quintero <federico@ximian.com>
2677 Merged from gtk-2-6:
2681 * gtk/gtkfilesystemunix.c (struct _GtkFileSystemUnix): Add fields
2682 to store struct stat for /afs and /net, and boolean fields to say
2683 whether these are valid.
2684 (struct _GtkFileFolderUnix): Added a boolean is_network_dir field.
2685 (gtk_file_system_unix_get_folder): Fill in the is_network_dir
2686 field of the folder structure.
2687 (fill_in_names): If the folder is a network directory, create a
2688 fake struct stat for its entries.
2689 (fill_in_stats): Don't stat() the children of network directories.
2691 * gtk/gtkfilechooserdefault.c (list_mtime_data_func): If the mtime
2692 is 0, use "Unknown" for the cell's displayed text.
2694 2005-04-28 Owen Taylor <otaylor@redhat.com>
2696 * gtk/gtkwidget.c: Add a draw-border style property to allow
2697 themes to draw outside the widget's allocation.
2699 * gdk/gdkwindow.c gtk/gtkstyle.c: Remove some save/restore pairs
2700 that were working around the clip-leakage bug in Cairo.
2702 * gtk/gtkstyle.c: Use cairo_fill_preserve() rathe than
2705 * gdk/gdkgc.c gdk/gdkinternals.h: Add _gdk_gc_update_context()
2706 That updates a Cairo context to match a GC.
2708 * gdk/gdkdraw.c: Use _gdk_gc_update_context() to add support
2709 for tiles/stipples/clipping to gdk_draw_glyphs(),
2710 gdk_draw_trapezoids().
2712 * gdk/gdkpango.c: Use _gdk_gc_update_context() instead of internal
2713 implementation of stipples. Use one cairo_t across the entire
2714 drawing operation. Replace cairo_matrix_create() with
2715 stack-allocated matrices.
2717 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
2718 gdk/win32/gdkgc-win32.c: Save various aspects of the
2719 GC state (fill, tile, stipple, foreground, background, clip region)
2720 in instance-private-data for future use. Add getters.
2721 Get rid of _gdk_windowing_gc_get_foreground() function implemented
2724 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
2725 gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Add
2726 _gdk_gc_init() to do initial setup of the GC from values;
2727 fixes some problems from drawable redirection.
2729 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
2730 gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Move
2731 gdk_gc_copy() and gdk_gc_set_clip_{region,rectangle}() into
2732 the generic code, add _gdk_windowing_gc_copy(),
2733 _gdk_windowing_gc_set_clip_region() to do backend specific
2736 * gdk/x11/{gdkprivate-x11.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
2737 gdk/win32/{gdkprivate-win32.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
2738 gdk/linux-fb/{gdkprivate-fb.h,gdkgc-fb.c.c,gdkdrawable-fb.c}:
2739 Don't duplicate state that now is stored by the generic code.
2741 * gdk/gdk.symbols Update
2743 2005-05-02 Matthias Clasen <mclasen@redhat.com>
2745 * tests/testiconview.c: Test cell renderers.
2747 * gtk/gtk.symbols: Add new functions.
2749 * gtk/gtkiconview.[hc]: Implement GtkCellLayout and use
2750 cell renderers for drawing and editing. (#148144, #160242)
2752 2005-05-02 Matthias Clasen <mclasen@redhat.com>
2754 * gtk/gtkcellrenderertext.c (get_size): Return a sufficient
2755 width for cases where pango_layout_get_pixel_extents() returns
2756 a rectangle with nonzero x.
2758 * gtk/gtkselection.c: Small doc fixes.
2760 * gtk/gtkmenushell.c (gtk_menu_shell_set_take_focus):
2761 (gtk_menu_shell_get_take_focus): Fix up the docs a bit.
2763 2005-05-02 Michael Natterer <mitch@imendio.com>
2765 * gtk/gtkmain.c (do_post_parse_initialization): return silently if
2766 "gtk_initialized" is TRUE. Re-enables calling GTK's init functions
2767 multiple times when using gtk_get_option_group(), just as one can
2768 call gtk_init() multiple times without doing any harm.
2770 2005-05-01 Matthias Clasen <mclasen@redhat.com>
2772 * gtk/gtktextview.c (gtk_text_view_expose_event): Propagate
2773 the event to unanchored children in the text window.
2774 (#302494, Stephen Kennedy)
2776 2005-04-30 Tor Lillqvist <tml@novell.com>
2778 * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Take
2779 multi-monitor offset into account. (#302525)
2781 2005-04-29 Matthias Clasen <mclasen@redhat.com>
2783 * gtk/gtkradioaction.c: Make the docs build. (#302230,
2786 * gtk/gtkiconview.c (gtk_icon_view_map): Get rid of this
2787 function, instead show the bin_window when it is created.
2789 * gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't
2790 grab focus to unrealized widgets. (#302240, Philip Langdale)
2792 * gtk/gtktreeview.c (gtk_tree_view_state_changed): Set
2793 background upon state changes. (#301651, Billy Biggs)
2794 (gtk_tree_view_get_path_at_pos): Take RTL into account
2795 when iterating over the columns. (#302163)
2797 * configure.in: Check for nm.
2799 * gtk/Makefile.am: Use $(NM), not nm directly. (#301299,
2800 Nguyen Thai Ngoc Duy)
2802 * gtk/gtkiconview.c (gtk_icon_view_move_cursor_start_end): Use
2803 the internal unselect_all function, since we need the unselection
2804 to happen even in browse mode. (#300995, Mathias Hasselmann)
2806 * gtk/gtkuimanager.c (update_node): Use g_object_notify() instead
2807 of triggering a ::notify by re-setting the property. (#300982,
2810 * gtk/gtkaction.c (connect_proxy): Use gtk_action_sync_tooltip().
2812 * gtk/gtkiconview.c (gtk_icon_view_scroll_to_item): Also
2813 scroll horizontally when necessary, and keep the northwest
2814 corner of the item visible. (#300913, Mathias Hasselmann)
2816 * tests/testiconview.c: Add some more tests.
2818 * gtk/gtkiconview.c (gtk_icon_view_select_path): Don't crash
2819 if the path does not point to a row in the model. (#300909,
2821 (gtk_icon_view_rows_reordered): Re-layout here. (#301009,
2824 * tests/testtext.c: Add some more attribute tests.
2826 * gtk/gtktexttag.c (gtk_text_tag_class_init): Correct the documentation
2827 of the rise property. String change, but it is more important to
2828 be correct than to be translated. (#301740)
2830 2005-04-25 Tor Lillqvist <tml@novell.com>
2832 * gtk/gtkfilesystemwin32.c
2833 (gtk_file_system_win32_volume_get_display_name): Get volume name
2834 also on Win9x. (#301798, Daniel Atallah)
2835 (canonicalize_filename): Add explicit braces to silence compiler
2838 2005-04-22 Tor Lillqvist <tml@novell.com>
2840 * gtk/gtkmain.c: Initailize gettext before use. Calling
2841 bindtextdomain() and bind_textdomain_codeset() in
2842 do_post_parse_initialization() is too late. Put the calls in a new
2843 function gettext_initialization(), and call that from
2844 gtk_init_with_args() and gtk_parse_args(). Fixes #170948 for
2845 GTK+'s part, but the same problem occurs also at least in
2846 atk. Thanks to Robert Ögren, Daniel Atallah and Kevin Stange.
2848 2005-04-19 Ivan, Wong Yat Cheung <email@ivanwong.info>
2850 * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Match
2851 character height instead of cell height. Fix #301228.
2853 2005-04-18 Federico Mena Quintero <federico@ximian.com>
2855 Merged from gtk-2-6:
2857 * gtk/gtkfilechooserdefault.c (remove_selected_bookmarks): Remove
2858 obsolete assertion that the selected row can't be a volume; this
2859 is handled by the "removable" column now. Fixes #301017.
2861 2005-04-18 Owen Taylor <otaylor@redhat.com>
2863 * gtk/gtkstyle.c gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c
2864 * gdk/gdkcolor.c gdk/gdkwindow.c gdk/gdkpixbuf-render.c
2865 gdk/gdkpango.c tests/testcairo.c: Update to new Cairo API for
2866 setting color and opacity. (#301066, Vincent Noel)
2868 2005-04-15 Federico Mena Quintero <federico@ximian.com>
2870 Merged from gtk-2-6:
2872 * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
2873 Patch from Christian Neumair <chris@gnome-de.org>; only select the
2874 first row if we are in OPEN mode. The only other case we were
2875 letting pass through was SELECT_FOLDER, but selecting the first
2876 row when changing folders confuses people when folders are
2877 actually being selected. Fixes #171885.
2879 2005-04-13 Matthias Clasen <mclasen@redhat.com>
2881 * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose):
2882 Revert the fix for #169870, adjust the documentation instead.
2884 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
2885 Revert the fix for #170727.
2887 2005-04-11 Ivan, Wong Yat Cheung <email@ivanwong.info>
2891 * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
2894 * gtk/updateiconcache.c: Guard inclusion of unistd.h and
2897 2005-04-09 Matthias Clasen <mclasen@redhat.com>
2899 * gdk/x11/gdkinput-xfree.c:
2900 * gdk/x11/gdkinput-none.c:
2901 * gdk/gtk.symbols: Some more fixes necessary to
2902 make building with gcc 4 work.
2904 Add 16x16 versions of the zoom icons and of
2905 GTK_STOCK_INDEX. Some of the images were taken from
2906 the hicolor icon theme, and were originally created
2907 by Jakub Steiner and Tuomas Kuosmanen. (#167515,
2910 * gtk/stock-icons/stock_index_16.png:
2911 * gtk/stock-icons/stock_zoom_1_16.png:
2912 * gtk/stock-icons/stock_zoom_fit_16.png:
2913 * gtk/stock-icons/stock_zoom_in_16.png:
2914 * gtk/stock-icons/stock_zoom_out_16.png: New images.
2916 * gtk/stock-icons/Makefile.am: Add the new images.
2918 * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose):
2919 Don't display too many broken images. (#169870, Roman
2920 Kagan, patch by Ivan Wong)
2922 * gtk/gtkwidget.c (gtk_widget_unparent): Remove debugging
2923 output. (#300013, Tommi Komulainen)
2925 2005-04-08 Matthias Clasen <mclasen@redhat.com>
2927 * gtk/gtkimage.c (gtk_image_expose, gtk_image_calc_size):
2928 If a stock_id is unknown, display the missing image. (#169870,
2931 * gtk/gtkiconcache.c (icon_name_hash): Use the same function
2932 as in updateiconcache.c. (spotted by Morten Welinder)
2934 2005-04-08 Carl Worth <cworth@cworth.org>
2936 * gdk/gdkpango.c: (emboss_context): Simplify matrix manipulation
2937 now that cairo exposes the cairo_matrix_t structure.
2939 * gdk/gdkpixbuf-render.c: (gdk_pixbuf_set_as_cairo_source): Track
2940 cairo API change in signedness of data argument.
2942 2005-04-08 Matthias Clasen <mclasen@redhat.com>
2944 * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make this
2945 work when called from gtk_combo_box_destroy(). (#172999,
2948 2005-04-08 Matthias Clasen <mclasen@redhat.com>
2950 Fix double-click to autosize treeview columns. This was
2951 probably broken since 2.2 ! (#169675)
2953 * gtk/gtktreeview.c (gtk_tree_view_button_press): Leave the
2954 "user-resized" state of the column on a double-click to
2956 (gtk_tree_view_button_press, gtk_tree_view_motion_resize_column):
2957 Enter the "user-resized" state of the column only if a drag
2958 actually changes the column width, not on any click.
2960 2005-04-07 Matthias Clasen <mclasen@redhat.com>
2962 * gtk/gtkmenu.c (gtk_menu_paint): Allow setting background
2963 images on menus. (#169532, Benjamin Otte)
2965 * gtk/updateiconcache.c (write_card16, write_card32): Avoid
2966 unaligned access. (#172947)
2968 * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu):
2969 Consistently use the term "Bookmarks" in the UI. (#166906,
2972 Some fixes from Morten Welinder (#172947):
2974 * gtk/updateiconcache.c (icon_name_hash): Make this compiler-
2975 and platform-independent.
2976 (is_cache_up_to_date): Don't compare mtimes is a stat call failed.
2977 (build_cache): Error out if a stat fails.
2979 2005-04-07 Matthias Clasen <mclasen@redhat.com>
2981 * gtk/gtktreeview.c (gtk_tree_view_set_expander_column): Add
2982 a hint about hiding expanders.
2984 * gtk/updateiconcache.c (is_cache_up_to_date): Return
2985 TRUE if the cache is newer than the directory. (#172852,
2988 * configure.in: Replace an explicit pkg-config by
2989 $PKG_CONFIG. (#168074, Hans-Wolfgang Loidl)
2991 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region):
2992 Ignore regions which fall completely outside the line.
2993 (#165862, Felipe Heidrich)
2995 2005-04-06 Matthias Clasen <mclasen@redhat.com>
2997 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Document
2998 -1 as possible value.
2999 (gtk_tree_view_enable_model_drag_source)
3000 (gtk_tree_view_enable_model_drag_dest): Pass the target list
3001 to the underlying dnd implementation, otherwise we miss the
3002 target info in the drag-data-received signal. (#164085, Jorn
3005 2005-04-06 Matthias Clasen <mclasen@redhat.com>
3007 * gtk/gtktreeview.c (gtk_tree_view_motion_resize_column)
3008 (gtk_tree_view_bin_expose): Avoid a few unnecessary calls
3009 to gdk_window_get_pointer(). (#168015, Billy Biggs)
3011 * po/.cvsignore, po-properties/.cvsignore: Remove
3012 Makefile.in.in. (#171092, Stepan Kasal)
3014 * gtk/gtkrc.c (gtk_rc_parse_style): Don't modify
3015 scanner->value, copy it first. (#165693, Tommi Komulainen)
3017 2005-04-05 Matthias Clasen <mclasen@redhat.com>
3019 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_grab_focus):
3020 * gtk/gtkcombobox.c (gtk_combo_box_grab_focus): Implement
3021 grab_focus for GtkComboBox and GtkComboBoxEntry. (#171912,
3024 * gtk/gtkicontheme.c: Store icon caches along with the
3025 mtimes of the toplevel directories. The previous
3026 mechanism of a hashtable-per-theme caused duplicate icon
3027 caches for the same toplevel directory to be created.
3030 2005-04-05 Matthias Clasen <mclasen@redhat.com>
3032 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_build_level):
3033 Fix a typo in a warning.
3035 * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Protect
3036 the license and credits buttons from being affected by
3037 gtk_widget_show_all(). (#172724)
3039 2005-04-05 Matthias Clasen <mclasen@redhat.com>
3041 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): Keep a
3042 reference to the item. (#167920, Hazael Maldonado Torres)
3044 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Add some
3045 more docs on interactive search.
3047 2005-04-05 Tor Lillqvist <tml@novell.com>
3049 * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Handle 16 colour
3050 display mode. For some reason, in this mode GetDeviceCaps(BITSPIXEL)
3051 returns 1 (but GetDeviceCaps(NUMCOLORS) does return 16). (#143415)
3053 * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Don't force
3054 24bpp GdkVisual on 32bpp displays. (#140706)
3056 Mon Apr 4 19:13:23 2005 Jonathan Blandford <jrb@redhat.com>
3058 Fix for #172319, Tristan Van Berkom:
3060 * gtk/gtktreeview.c (gtk_tree_view_expand_all): change to use
3061 gtk_tree_view_real_expand_row() instead of doing this by hand.
3063 2005-04-04 Johan Dahlin <johan@gnome.org>
3065 * gtk/gtktextbuffer.c: (gtk_text_buffer_class_init),
3066 (gtk_text_buffer_set_property), (gtk_text_buffer_get_property),
3067 (gtk_text_buffer_set_text): Add GtkTextBuffer::text (#172631)
3069 Mon Apr 4 14:33:55 2005 Manish Singh <yosh@gimp.org>
3071 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text):
3072 cast combo->priv->entry to GTK_ENTRY()
3074 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
3075 cast completion->priv->tree_view to GTK_TREE_VIEW()
3077 2005-04-04 Matthias Clasen <mclasen@redhat.com>
3079 * gtk/gtktextbuffer.c: Some trivial doc fixes.
3081 * gtk/gtkwidget.c (gtk_widget_set_redraw_on_allocate): Improve
3082 the wording of the doc comment. (#172422, Vincent Untz)
3084 2005-04-04 Owen Taylor <otaylor@redhat.com>
3086 * gtk/gtkstyle.c (gtk_default_draw_expander): Covert expander
3087 drawing to Cairo. Also always draw the entire triangle instead
3088 of just drawing the center for prelight. (Fixes inconsistent
3089 drawing in GtkTreeView.)
3091 2005-04-04 Johan Dahlin <johan@gnome.org>
3093 * gtk/gtk.symbols: Remove symbols accidentally added.
3094 * gtk/gtkentryprivate.h: Add boolean property popup_set_width
3095 * gtk/gtktoggletoolbutton.c: (gtk_toggle_tool_button_class_init):
3096 Use object_class instead of gobject_class
3098 Mon Apr 4 12:14:35 2005 Søren Sandmann <sandmann@redhat.com>
3100 * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Translate x, y into
3101 widget coordinates instead of root coordinates. Patch from Jorn
3104 2005-04-04 Matthias Clasen <mclasen@redhat.com>
3106 * gtk/gtktoolbar.c: Add a tooltips property.
3108 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_class_init):
3109 * gtk/gtkruler.c (gtk_ruler_class_init): Add docs.
3111 * gtk/gtktoggletoolbutton.c: Add an active property.
3113 2005-04-04 Matthias Clasen <mclasen@redhat.com>
3115 Allow completion popups to be wider than the entry. (#131916,
3118 * gtk/gtkentrycompletion.[hc]: Add a boolean popup-set-width property.
3120 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
3121 Don't force the popup to have the same width as the entry if
3122 popup-set-width is FALSE.
3124 * gtk/gtk.symbols: Add new functions.
3126 2005-04-04 Matthias Clasen <mclasen@redhat.com>
3128 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
3129 Use gtk_accel_map_change_entry(), so that reusing the same
3130 action name works. (#170727, Paolo Borelli)
3132 2005-04-04 Tor Lillqvist <tml@novell.com>
3134 * gdk/win32/gdkmain.c (_gdk_win32_cf_to_string): New debugging
3135 function, to log a clipboard format name symbolically.
3136 (_gdk_win32_data_to_string): Also new, to log random data bytes.
3138 Implement delayed rendering on Win32, specifically for transfering
3139 images through the clipboard from GTK+ apps to other
3140 apps (#168173, implementation by Ivan Wong):
3142 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
3143 Handle WM_RENDERFORMAT.
3145 * gdk/win32/gdkprivate-win32.h
3146 * gdk/win32/gdkglobals-win32.c: Add _format_atom_table,
3147 _delayed_rendering_data and _image_bmp.
3149 * gdk/win32/gdkmain-win32.c: Initialize _image_bmp.
3151 * gdk/win32/gdkproperty-win32.c (gdk_property_change):
3152 Accept formats other than GDK_TARGET_STRING or _utf8_string, and
3153 assume they are handled through delayed rendering.
3155 * gdk/win32/gdkselection-win32.c (gdk_selection_convert):
3156 Return all available formats (including those registered by GTK+
3157 apps) on request_targets.
3158 (gdk_selection_property_get): We should append a zero byte like
3160 (gdk_win32_selection_add_targets): New function, for
3161 gtkselection's use. Win32 requires that the clipboard owner
3162 registers all valid formats even if the owner wants delayed
3164 (_gdk_win32_selection_convert_to_dib): New function. Convert
3165 images to DIB using gdk-pixbuf.
3167 * gdk/win32/gdkwin32.h: Declare gdk_win32_selection_add_targets().
3169 * gtk/gtkselection.c (gtk_selection_add_target,
3170 gtk_selection_add_targets): Call gdk_win32_selection_add_targets()
3171 to register target formats.
3173 * gdk/gdk.symbols: Add gdk_win32_selection_add_targets().
3175 2005-04-03 Hans Breuer <hans@breuer.org>
3177 [merged from gtk-2-6 branch]
3178 * gdk/win32/gdkdrawable-win32.c : let dash_offset shift the start of
3179 the line pattern not the start of the line. Fixes bug #171641.
3181 * gtk/makefile.msc.in : follow .symbols changes
3183 * gdk/win32/gdkwindow-win32.c : declare and resolve GetAncestor()
3184 dynamically. (It is not available in _WIN_VER <= 0x0400)
3186 * gdk/win32/makefile.msc : removed gdkpango-win32.obj
3188 * gtk/gtkhsv.c gtk/gtkstyle.c : use G_PI instead of M_PI
3190 [also applied to gtk-2-6 branch]
3191 * gdk/makefile.msc gdk-pixbuf/makefile.msc : handle gdk*alias.def
3193 * gdk/makefile.msc.in : add gtkmnemonichash.obj
3195 * test/testgtk.c(set_parent_signal) : use g_message instead of
3196 g_print to keep the 'testgtk --bench=all' output clean
3198 2005-04-03 Matthias Clasen <mclasen@redhat.com>
3200 * gtk/gtkruler.c: Add a "metric" property.
3202 * gtk/gtkradiomenuitem.c: Add a "group" property like
3203 the one found in radio buttons.
3205 * gtk/gtkradiobutton.c (gtk_radio_button_class_init): Fix
3207 (gtk_radio_button_set_group): Add change notification.
3209 2005-04-01 Matthias Clasen <mclasen@redhat.com>
3211 * gtk/gtkselection.c: Move documentation inline, document
3212 if add_target functions append or prepend. (#172350,
3215 2005-04-01 Matthias Clasen <mclasen@redhat.com>
3217 Make gtk_combo_box_get_active_text do the right thing for
3218 GtkComboBoxEntry (#171373, Robert Staudinger)
3220 * gtk/gtkcombobox.h: Add a get_active_text vfunc.
3222 * gtk/gtkcombobox.c (gtk_combo_box_real_get_active_text): And
3225 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text):
3226 Implement get_active_text by always returning the content of
3229 2005-03-31 Sven Neumann <sven@gimp.org>
3231 Merged from gtk-2-6:
3234 * gtk/gtkiconview.c: fixed gtk-doc comments.
3236 2005-03-31 Michael Natterer <mitch@gimp.org>
3238 Allow to pop up menus without grabbing the keyboard. Useful for
3239 stuff like virtual keyboards. Fixes bug #159890
3242 * gtk/gtkmenushell.[ch]: added boolean property "take-focus"
3243 and public API gtk_menu_shell_set/get_take_focus().
3245 * gtk/gtkmenu.c (gtk_menu_popup)
3246 (popup_grab_on_window): don't grab the keyboard if take_focus
3249 * gtk/gtkmenuitem.c (_gtk_menu_item_popup_submen): propagate the
3250 parent menu_shell's take_focus property to the submenu which is
3251 about to be popped up.
3253 2005-03-30 Federico Mena Quintero <federico@ximian.com>
3255 Merged from gtk-2-6:
3259 * gtk/gtktreeview.c (gtk_tree_view_row_changed): Only stop editing
3260 if the row which changed is the same as the row being edited.
3262 2005-03-30 Matthias Clasen <mclasen@redhat.com>
3264 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
3265 Make enable_search control only typeahead, not C-f. (#170435,
3267 (gtk_tree_view_start_interactive_search): Pass keybinding == TRUE.
3269 * gdk/gdkpixbuf.h: Include cairo.h
3271 * gtk/gtkclipboard.c (gtk_clipboard_set_can_store):
3272 Don't accept n_targets == -1.
3273 (clipboard_unset): unref the old_data, not the
3274 user_data which we have just cleared. (#172038, Sven
3277 * gtk/gtkcombobox.c (gtk_combo_box_popup): Don't
3278 segfault if somebody tries to popup an unrealized
3279 combo box. (#172031, Felipe Heidrich)
3281 2005-03-30 Tor Lillqvist <tml@novell.com>
3283 * gdk/win32/gdkevents-win32.c (build_pointer_event_state): The
3284 state field should represent the state before the event, like on
3286 (gdk_event_translate): Fix event filter handling. If an event
3287 filter (global, client message filter, of window-specific) returns
3288 GDK_FILTER_CONTINUE, continue as if nothing happened. If it
3289 returns GDK_FILTER_REMOVE or GDK_FILTER_TRANSLATE, return TRUE
3290 from gdk_event_translate() which means that DefWindowProc() will
3292 (gdk_event_translate): Fix client message handling. Append a
3293 GDK_CLIENT_EVENT unless there is a filter that matches and returns
3294 something other than GDK_FILTER_CONTINUE. (#135552)
3296 2005-03-29 Matthias Clasen <mclasen@redhat.com>
3298 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_visible_func):
3299 Document the need to refilter if parameters of the visibility function
3300 change. (#169516, Olivier Sessink)
3302 Mon Mar 28 15:13:42 2005 Søren Sandmann <sandmann@redhat.com>
3304 * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Don't
3305 invalidate areas that are covered by mapped input-output child
3306 windows. Bug 141380.
3308 2005-03-28 Jeroen Zwartepoorte <jeroen.zwartepoorte@gmail.com>
3310 * gtk/gtkfilechooserdefault.c: (update_preview_widget_visibility): Make
3311 the preview label ellipsize so the dialog layout stays constant.
3314 2005-03-28 Matthias Clasen <mclasen@redhat.com>
3316 * gtk/gtktreeview.c (gtk_tree_view_key_press): Don't pop up
3317 the context menu of the search entry if it is not visible.
3318 (#169534, Billy Biggs)
3320 2005-03-27 Tor Lillqvist <tml@novell.com>
3322 * configure.in: Apparently AC_LIBTOOL_WIN32_DLL isn't deprecated
3323 after all, and in fact necessary with HEAD libtool.
3325 2005-03-26 Matthias Clasen <mclasen@redhat.com>
3328 * gdk/gdkdisplaymanager.c:
3329 Use canonical names for g_object_notify() as well.
3331 2005-03-24 Tor Lillqvist <tml@novell.com>
3333 * configure.in (GTK_EXTRA_CFLAGS): Include the -mms-bitfields flag
3334 in GTK_EXTRA_CFLAGS on Win32, so that it gets included in the
3335 gtk+-2.0.pc file and automatically used by dependents. MSVC users
3336 who use pkg-config will have to manually edit it out from
3337 gtk+-2.0.pc, sorry. Maybe pkg-config should be enhanced to support
3338 some kind of conditionals in .pc files?
3340 2005-03-23 Matthias Clasen <mclasen@redhat.com>
3342 * gtk/gtkfilechooserbutton.c (update_combo_box): Remove
3343 a call whose result was unused and leaked. (#170776,
3346 Some cleanups to the GtkDialog code: (#170746,
3348 * gtk/gtkdialog.c (action_widget_activated): Simplify,
3349 use _gtk_dialog_get_response_for_widget.
3350 (gtk_dialog_add_action_widget): Use the correct signal
3352 (gtk_dialog_set_response_sensitive):
3353 (gtk_dialog_set_default_response): Use get_response_data.
3354 (gtk_dialog_run): Don't disconnect the signals if the
3355 dialog was destroyed while running.
3357 Tue Mar 22 14:16:31 2005 Manish Singh <yosh@gimp.org>
3359 * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label):
3360 Use g_return_if_fail, not g_return_val_if_fail.
3362 2005-03-22 Matthias Clasen <mclasen@redhat.com>
3364 Implement bookmark renaming (#136216, Sean Middleditch)
3366 * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Add
3367 get_bookmark_label and set_bookmark_label vfuncs.
3369 * gtk/gtkfilesystem.h:
3370 * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label):
3371 (gtk_file_system_get_bookmark_label): Wrappers for the
3374 * gtk/gtk.symbols: Add new exported symbols.
3376 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_set_bookmark_label):
3377 (gtk_file_system_unix_get_bookmark_label): Implementations
3378 for the Unix backend.
3380 * gtk/gtkfilechooserdefault.c: Add a context menu to
3381 the bookmarks pane, and allow to rename bookmarks.
3383 2005-03-22 Matthias Clasen <mclasen@redhat.com>
3385 * gtk/gtkpathbar.c (gtk_path_bar_unmap):
3386 * gtk/gtkspinbutton.c (gtk_spin_button_unmap):
3387 * gtk/gtknotebook.c (gtk_notebook_unmap):
3388 * gtk/gtkrange.c (gtk_range_unmap): Stop scrolling when
3389 the widget is unmapped. (#168791, Ryan Lortie)
3391 2005-03-21 Matthias Clasen <mclasen@redhat.com>
3393 * gtk/gtkprivate.h: Define macros GTK_PARAM_READABLE,
3394 GTK_PARAM_WRITABLE, GTK_PARAM_READWRITE which are like
3395 their G_ counterparts, but also mark the name, nick
3396 and blurb as static.
3398 * gtk/*.c: Mark param spec strings as static, using
3401 * gtk/gtkspinbutton.h: Fix a typo.
3403 2005-03-21 Matthias Clasen <mclasen@redhat.com>
3405 * gtk/gtkcellrendererprogress.c:
3406 * gtk/gtkcellrendererpixbuf.c:
3407 * gtk/gtkcellrenderercombo.c:
3408 * gtk/gtkcellrenderer.c:
3409 * gtk/gtkcalendar.c:
3413 * gtk/gtkaspectframe.c:
3415 * gtk/gtkalignment.c:
3416 * gtk/gtkactiongroup.c:
3418 * gtk/gtkaccellabel.c:
3419 * gtk/gtkaboutdialog.c: Mark param spec strings as static.
3421 * gdk/gdkpango.c (gdk_pango_renderer_class_init):
3422 * gdk/gdkdisplaymanager.c (gdk_display_manager_class_init): Mark
3423 param spec strings as static.
3425 2005-03-21 Tor Lillqvist <tml@novell.com>
3427 * modules/engines/ms-windows/*.c: Silence gcc warnings (unused
3428 variables, unhandled enum value in switch). Use g_object_unref()
3429 instead of deprecated gdk_gc_unref() and gdk_drawable_unref().
3431 * modules/engines/ms-windows/xp_theme.c (xp_theme_map_gtk_state):
3432 Add missing "case" keyword.
3434 * modules/engines/ms-windows/Makefile.am: Link with -lgdi32
3437 2005-03-20 Tor Lillqvist <tml@novell.com>
3439 * gdk/win32/gdkdisplay-win32.c (gdk_display_get_name): Return the
3440 Terminal Services session number, window station name (always
3441 "WinSta0" in interactive processes), and desktop name (typically
3442 "Default"), concatenated with backslash separators.
3443 (gdk_display_open): Accept only NULL or the string
3444 gdk_display_get_name() returns as display name.
3446 2005-03-20 Matthias Clasen <mclasen@redhat.com>
3448 Make PLT-reduction work with gcc4, and don't include
3449 everything in gdkalias.h:
3451 * gtk/grk.symbols: Group symbols by header and source file.
3452 * gtk/makegtkalias.pl: Protect definitions by the same
3453 preprocessor symbols used to guard the headers. Move
3454 the alias declarations to a separate file which is
3455 produced when calling makegtkalias.pl -def
3456 * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate
3458 * gtk/*.c: Include gtkalias.h after the other headers,
3459 include gtkaliasdef.c at the bottom.
3460 * gtk/*.h: Small cleanups.
3462 Fri Mar 18 23:59:49 2005 Soeren Sandmann <sandmann@redhat.com>
3464 * gtk/gtkmenutoolbutton.c (arrow_button_button_press_event_cb):
3465 Make right-clicks not pop up the menu.
3467 2005-03-18 Owen Taylor <otaylor@redhat.com>
3469 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_drawable_finish):
3470 Call cairo_surface_finish()
3472 * gdk/gdkinternals.c gdk/x11/gdkdrawable-x11.c: Remoev
3473 _gdk_windowing_set_surface_device_offset().
3475 2005-03-18 Tor Lillqvist <tml@novell.com>
3477 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
3478 WM_MOUSEMOVE, don't check if this process owns the active
3479 window. This makes cross-application widget embedding work better.
3480 On WM_MOVE, don't bother checking for window visibility.
3482 * gdk/win32/gdkim-win32.c: Remove bogus empty doc comment. Remove
3483 unused variables. Add some casts to silence gcc.
3485 2005-02-24 Owen Taylor <otaylor@redhat.com>
3487 * gdk/gdkwindow.c: Use cairo_set_device_offset().
3489 * gdk/win32/gdkdrawable-win32.[ch] gdk/win32/gdkwindow-win32.c
3490 gdk/win32/gdkpixmap-win32.c:
3491 Add_gdk_win32_drawable_acquire/release_dc() to get a DC for the
3492 drawable. Add _gdk_drawable_win32_finish() to clean up resources
3493 when a drawable is destroyed.
3495 * gdk/win32/gdkgc-win32.c gdk/win32/gdkdrawable-win32.c
3496 (blit_from_pixmap) gdk/win32/gdkprivate-win32.h : Use
3497 acquire/release_dc when getting a DC to use with a GC or for
3498 blitting from a pixmap.
3500 * gdk/win32/gdkdrawable-win32.[ch]: Implement ref_cairo_surface()
3502 * gdk/win32/gdkpango-win32.c gdk/win32/gdkdrawable-win32.c Makefile.am:
3503 Remove gdk_screen_get_pango_context(), draw_glyph[_transformed]
3506 * gdk/win32/gdkdrawable-win32.c: Remove
3507 gdk_draw_rectangle_alpha_libgtk_only()
3509 2005-03-17 Owen Taylor <otaylor@redhat.com>
3511 * gdk/gdkpango.c: Fix get_stipple_surface to actually work, set
3512 EXTEND_REPEAT on the stipple pattern.
3514 2005-03-17 Matthias Clasen <mclasen@redhat.com>
3516 * gtk/gtklabel.c (gtk_label_set_markup): Fix formatting
3517 in example in the docs. (#170611, Jianfei Wang)
3519 * gtk/gtkiconview.c (gtk_icon_view_size_allocate): Clamp
3520 adjustment values on resize. (#170567, Tomislav Jonjic)
3522 * gtk/gtkicontheme.c (theme_lookup_icon): Don't crash
3523 if there is no cache. (#170652, Diego Gonzalez)
3525 * gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix):
3526 Make inline completion insert the prefix at the
3527 right spot. (#170146, Doug Quale)
3529 2005-03-17 Tor Lillqvist <tml@novell.com>
3531 * gdk/gdkkeynames.c: gdk_key is a typedef, not a struct tag.
3533 2005-03-16 Matthias Clasen <mclasen@redhat.com>
3535 * gtk/gtkprogressbar.c (gtk_progress_bar_get_ellipsize):
3536 Typo fix in the docs.
3538 * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_set_arrow_tooltip):
3539 Typo fix in the docs.
3541 * gtk/gtkiconview.c (gtk_icon_view_set_columns)
3542 (gtk_icon_view_get_columns, gtk_icon_view_set_item_width)
3543 (gtk_icon_view_get_item_width, gtk_icon_view_set_spacing)
3544 (gtk_icon_view_get_spacing, gtk_icon_view_set_row_spacing)
3545 (gtk_icon_view_set_column_spacing)
3546 (gtk_icon_view_get_row_spacing, gtk_icon_view_get_margin)
3547 (gtk_icon_view_set_margin): Add docs.
3549 * gtk/gtkcellview.c (gtk_cell_view_get_displayed_row):
3552 2005-03-15 Owen Taylor <otaylor@redhat.com>
3554 * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkpixmap.c gdk/gdkwindow.c
3555 gdk/x11/gdkdrawable-x11.c gdk/x11/gdkpixmap-x11.c gdk/x11/gdkwindow-x11.c
3556 gdk/gdkinternals.h: Switch set_cairo_target() virtual function to
3559 * gdk/gdkdrawable.h gdk/gdkdraw.h: Switch set_cairo_target() virtual
3560 function to create_cairo_context()
3562 * gdk/gdkwindow.c: Clear double buffer pixmaps with Cairo.
3564 * gdk/x11/gdkwindow-x11.c: Keep all components in GdkWindowObject.bg_color,
3567 * tests/testcairo.c: Update for create_cairo_context()
3569 * gdk/gdkdraw.c (gdk_draw_trapezoids, gdk_draw_glyphs[_transformed]):
3570 Reimplement in terms of Cairo, bypass the vtable entries.
3572 * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkdisplay-x11.[ch]
3573 gdk/x11/gdkgc-x11.c gdk/x11/gdkpango-x11.c
3574 gdk/x11/gdkprivate-x11.h gdk/x11/Makefile.am: Remove
3575 implementation of draw_trapezoids / draw_glyphs[_transformed].
3577 * gdk/gdkpango.c: Switch GdkPangoRenderer to use Cairo
3579 * gdk/gdkpango.c gdk/x11/gdkpango-x11.c: Move
3580 gdk_pango_context_get_for_screen() into the backend independent code.
3582 * gdk/x11/gdkdrawable-x11.[ch]: Remove Xft use, use RENDER directly
3585 * gdk/gdkdrawable.h gdk/x11/gdkdrawable-x11.c: Remove
3586 gdk_draw_rectangle_alpha_libgtk_only.
3588 * gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c: Add
3589 gdk_pixbuf_set_as_cairo_source()
3591 * gdk/gdk.symbols: Update
3593 * gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkruler.[ch]
3594 gtk/gtk[hv]ruler.c: Convert to Cairo rendering.
3596 * gtk/gtkstyle.c (gtk_default_draw_check, gtk_default_draw_focus,
3597 gtk_default_draw_option): Switch to Cairo. Simplify the checkbutton,
3598 radio button style for now to get something more scalable.
3600 * gtk/gtksettings.c: #if 0 out the code to use PangoXft for hinting/
3601 antialiasing/dpi settings.
3603 2005-03-16 Matthias Clasen <mclasen@redhat.com>
3605 * demos/gtk-demo/editable_cells.c: Also demonstrate
3606 GtkCellRenderer::editing-started and separators.
3608 Tue Mar 15 20:34:33 2005 Manish Singh <yosh@gimp.org>
3610 * gdk/x11/gdkinput-xfree.c: #include gdkaliasdef.c here too.
3612 2005-03-15 Matthias Clasen <mclasen@redhat.com>
3614 Make PLT-reduction work with gcc4, and don't include
3615 everything in gdkalias.h:
3617 * gdk/gdk.symbols: Group symbols by header and source file.
3618 * gdk/makegdkalias.pl: Protect definitions by the same
3619 preprocessor symbols used to guard the headers. Move
3620 the alias declarations to a separate file which is
3621 produced when calling makegdkalias.pl -def
3622 * gdk/Makefile.am (gdkaliasdef.c): Add a rule to generate this
3624 * gdk/*.c, gdk/x11/*.c: Include gdkalias.h after the other
3625 headers, include gdkaliasdef.c at the bottom.
3627 2005-03-16 Tor Lillqvist <tml@novell.com>
3629 * gdk/win32/gdkdisplay-win32.c (_win32_on_clipboard_change): Print
3630 debugging output only if asked for, not always.
3632 * gdk/win32/*.c: Use the %+d%+d format for coordinate pairs in
3633 debugging printout instead of +%d+%d. Misc other additions and
3634 cosmetic improvements to debugging printouts. Use API_CALL() and
3635 GDI_CALL() macros in more places.
3637 * gdk/win32/gdkwindow-win32.c (gdk_window_move, gdk_window_resize,
3638 gdk_window_move_resize): To detect child windows, check whether
3639 the real parent is not the desktop window, instead of relying on
3640 the GDK window type being GDK_WINDOW_CHILD. Foreign GtkPlug
3641 windows have a GDK window type GDK_WINDOW_FOREIGN, but are still
3642 de facto child windows.
3644 * gdk/win32/gdkprivate-win32.h
3645 * gdk/win32/*.c: Drop global variable _gdk_root_window, just call
3646 GetDesktopWindow(). Rename the GdkWindow* _gdk_parent_root to
3649 * gdk/win32/gdkwindow-win32.h (GdkWindowImplWin32): Add
3650 toplevel_window_type field.
3652 * gdk/win32/gdkwindow-win32.c: As there is only one root window in
3653 GDK on Win32, we can compare directly to _gdk_root instead of
3654 checking the window type.
3655 (gdk_window_reparent): When reparenting a child of the desktop
3656 clear out the window decorations. Correspondingly, when
3657 reparenting to the desktop, add decorations. As in the X11
3658 backend, save the window type of a toplevel window when
3659 reparenting, in case it is reparented back to toplevel.
3661 2005-03-15 Matthias Clasen <mclasen@redhat.com>
3663 * gtk/gtkradioaction.c (gtk_radio_action_get_group): Add an
3664 example for manually setting up a group of actions.
3666 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
3667 Document that inline completion requires text-column to be set.
3668 (gtk_entry_completion_compute_prefix): Return NULL if text-column
3671 * gtk/gtkentry.c (check_completion_callback): Call
3672 gtk_entry_completion_complete() before inserting the prefix,
3673 otherwise the prefix may depend on (random) state of the
3676 2005-03-15 Anders Carlsson <andersca@imendio.com>
3678 * docs/iconcache.txt:
3681 * gtk/gtkiconcache.c: (find_image_offset),
3682 (_gtk_icon_cache_get_icon_flags), (_gtk_icon_cache_add_icons),
3683 (_gtk_icon_cache_get_icon), (_gtk_icon_cache_get_icon_data):
3684 * gtk/gtkiconcache.h:
3685 Update to be able to fetch pixbuf data and icon metadata.
3687 * gtk/gtkicontheme.c: (theme_lookup_icon), (gtk_icon_info_free),
3688 (icon_info_ensure_scale_and_pixbuf):
3689 Use new cache functions.
3691 * gtk/updateiconcache.c: (foreach_remove_func), (load_icon_data),
3692 (maybe_cache_image_data), (scan_directory), (write_pixdata),
3693 (get_image_meta_data_size), (get_image_pixel_data_size),
3694 (get_image_data_size), (get_single_node_size), (get_bucket_size),
3695 (write_bucket), (main):
3696 Update to write pixbuf data as well as information from .icon
3699 2005-03-15 Tor Lillqvist <tml@novell.com>
3701 * gdk/win32/gdkmain-win32.c (_gdk_win32_key_to_string): New
3702 debugging function. As GetKeyNameText() returns a localized key
3703 name we need to convert it to UTF-8.
3705 * gdk/win32/gdkprivate-win32.h: Declare it.
3707 * gdk/win32/gdkevents-win32.c: Use it.
3709 * gdk/win32/gdkwindow-win32.c (gdk_window_new_internal): Fix
3710 handling of children of foreign windows. They should be child
3711 windows from Windows's perspective, even if they are toplevel GDK
3714 2005-03-13 Ivan, Wong Yat Cheung <email@ivanwong.info>
3716 * gdk/win32/gdkgeometry-win32.c (gdk_window_scroll): A further fix
3717 for big window support. Now also the test in testgtk works.
3719 2005-03-11 Matthias Clasen <mclasen@redhat.com>
3721 * gtk/gtkaboutdialog.c (add_credits_page): Don't crash on
3722 style changes. (#169334, Yury Puzis)
3724 * gtk/gtkicontheme.c (gtk_icon_theme_set_custom_theme): Fix
3725 the doc comments. (#169967, Masao Mutoh)
3727 2005-03-12 Ivan, Wong Yat Cheung <email@ivanwong.info>
3729 Big window fix for Win32. Big windows are still emulated within
3730 16-bit coordinate limits, though. Big windows now work on NT-based
3733 * gdk/win32/gdkgc-win32.c (_gdk_win32_gdkregion_to_hrgn): Use
3736 * gdk/win32/gdkgeometry-win32.c: Largely rewrite.
3738 * gdk/win32/gdkwindow-win32.c: Minor related changes.
3740 2005-03-10 Matthias Clasen <mclasen@redhat.com>
3742 * gtk/gtkliststore.c (gtk_list_store_insert_with_valuesv):
3743 Fix a doc typo. (#169873, Johan Dahlin)
3745 * gtk/gtkdialog.c (gtk_dialog_map): Don't
3746 try to focus the default_widget if there is
3747 none. (#169881, Thomas Leonard)
3749 Wed Mar 9 19:20:44 2005 Manish Singh <yosh@gimp.org>
3751 * configure.in: Remove inadvertent gail references, require
3754 2005-03-09 Matthias Clasen <mclasen@redhat.com>
3756 * configure.in: Require GLib 2.7.0
3758 2005-03-09 Matthias Clasen <mclasen@redhat.com>
3760 * gtk/gtkwidget.h (struct _GtkWidget): Typo fixes in comments.
3761 (#169728, Morten Welinder, Owen Taylor)
3763 * gtk/gtkwidget.c (gtk_widget_add_mnemonic_label): Fix a typo
3764 in the docs. (#169729, Morten Welinder)
3766 * gtk/gtkimage.c (gtk_image_class_init): Fix a typo.
3768 * gtk/gtkiconview.c (gtk_icon_view_set_model): Queue a resize
3769 when the model is unset. (#169528, Tomislav Jonjic)
3771 2005-03-09 Matthias Clasen <mclasen@redhat.com>
3773 * gtk/gtkviewport.c (gtk_viewport_class_init):
3774 * gtk/gtkuimanager.c (gtk_ui_manager_class_init):
3775 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_class_init):
3776 * gtk/gtktipsquery.c (gtk_tips_query_class_init):
3777 * gtk/gtktext.c (gtk_text_class_init):
3778 * gtk/gtkstatusbar.c (gtk_statusbar_class_init):
3779 * gtk/gtkspinbutton.c (gtk_spin_button_class_init):
3780 * gtk/gtktoggleaction.c (gtk_toggle_action_class_init):
3781 * gtk/gtkoptionmenu.c (gtk_option_menu_class_init):
3782 * gtk/gtkoldeditable.c (gtk_old_editable_class_init):
3783 * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init):
3784 * gtk/gtktoolbutton.c (gtk_tool_button_class_init):
3785 * gtk/gtktoolitem.c (gtk_tool_item_class_init):
3786 * gtk/gtkimage.c (gtk_image_class_init):
3787 * gtk/gtkruler.c (gtk_ruler_class_init):
3788 * gtk/gtkiconview.c (gtk_icon_view_class_init):
3789 * gtk/gtkprogressbar.c (gtk_progress_bar_class_init):
3790 * gtk/gtkprogress.c (gtk_progress_class_init):
3791 * gtk/gtkmenu.c (gtk_menu_class_init):
3792 * gtk/gtkscale.c (gtk_scale_class_init):
3793 * gtk/gtkpaned.c (gtk_paned_class_init):
3794 * gtk/gtkhandlebox.c (gtk_handle_box_class_init):
3795 * gtk/gtkfontbutton.c (gtk_font_button_class_init):
3796 * gtk/gtkfontsel.c (gtk_font_selection_class_init):
3797 * gtk/gtkfilesel.c (gtk_file_selection_class_init):
3798 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
3799 * gtk/gtkcurve.c (gtk_curve_class_init):
3800 * gtk/gtkcombo.c (gtk_combo_class_init):
3801 * gtk/gtkcombobox.c (gtk_combo_box_class_init):
3802 * gtk/gtkcolorbutton.c (gtk_color_button_class_init):
3803 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init):
3804 * gtk/gtkmenuitem.c (gtk_menu_item_class_init):
3805 * gtk/gtkcheckbutton.c (gtk_check_button_class_init):
3806 * gtk/gtktogglebutton.c (gtk_toggle_button_class_init):
3807 * gtk/gtkcellview.c (gtk_cell_view_class_init):
3808 * gtk/gtktoolbar.c (gtk_toolbar_class_init):
3809 * gtk/gtkmenubar.c (gtk_menu_bar_class_init):
3810 * gtk/gtkclist.c (gtk_clist_class_init):
3811 * gtk/gtkctree.c (gtk_ctree_class_init):
3812 * gtk/gtkcolorsel.c (gtk_color_selection_class_init):
3813 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init):
3814 * gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init):
3815 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_class_init):
3816 * gtk/gtkcalendar.c (gtk_calendar_class_init):
3817 * gtk/gtkbbox.c (gtk_button_box_class_init):
3818 * gtk/gtktable.c (gtk_table_class_init):
3819 * gtk/gtkaspectframe.c (gtk_aspect_frame_class_init):
3820 * gtk/gtkframe.c (gtk_frame_class_init):
3821 * gtk/gtkaction.c (gtk_action_class_init):
3822 * gtk/gtkaccellabel.c (gtk_accel_label_class_init):
3823 * gtk/gtkaboutdialog.c (gtk_about_dialog_class_init):
3824 * gtk/gtkdialog.c (gtk_dialog_class_init): More of the same.
3826 2005-03-08 Matthias Clasen <mclasen@redhat.com>
3828 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init):
3829 * gtk/gtkrange.c (gtk_range_class_init):
3830 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init):
3831 * gtk/gtktexttag.c (gtk_text_tag_class_init):
3832 * gtk/gtktextview.c (gtk_text_view_class_init):
3833 * gtk/gtkscrollbar.c (gtk_scrollbar_class_init):
3834 * gtk/gtknotebook.c (gtk_notebook_class_init):
3835 * gtk/gtkentry.c (gtk_entry_class_init):
3836 * gtk/gtkexpander.c (gtk_expander_class_init):
3837 * gtk/gtkarrow.c (gtk_arrow_class_init):
3838 * gtk/gtkalignment.c (gtk_alignment_class_init):
3839 * gtk/gtkbutton.c (gtk_button_class_init):
3840 * gtk/gtklabel.c (gtk_label_class_init):
3841 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init):
3842 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
3843 * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init):
3844 * gtk/gtktreeview.c (gtk_tree_view_class_init):
3845 * gtk/gtkbox.c (gtk_box_class_init):
3846 * gtk/gtkwindow.c (gtk_window_class_init, gtk_window_class_init):
3847 * gtk/gtkcontainer.c (gtk_container_class_init):
3848 * gtk/gtkwidget.c (gtk_widget_class_init):
3849 * gtk/gtkobject.c (gtk_object_class_init): Use canonical names
3850 when registering param specs.
3852 * demos/gtk-demo/editable_cells.c: Use GtkCellRendererCombo
3853 (#169607, Mark McLoughlin)
3855 * gtk/gtk.symbols: Add the new attributes here, too.
3858 * gtk/gtktreeview.h:
3859 * gtk/gtktreeviewcolumn.h:
3860 * gtk/gtktextbuffer.h:
3862 * gtk/gtkfilechooserdialog.h:
3864 * gtk/gtkcontainer.h:
3865 * gtk/gtkcelllayout.h:
3866 * gtk/gtkaboutdialog.h: Use G_GNUC_NULL_TERMINATED where
3867 appropriate. (#165682, Marc Meissner)
3869 2005-03-07 Matthias Clasen <mclasen@redhat.com>
3871 Convert the gdk keyval-keyname tables to a big string
3872 + offsets. (#168901)
3874 * gdk/gen-keyname-table.pl: Perl script inspired by
3875 pango/tools/gen-color-table.pl to create the
3876 gdk_keys_by_keyval and gdk_keys_by_name tables as lists
3877 of offsets pointing into a big const string.
3879 * gdk/keynames.txt: List of keyval-keyname pairs.
3880 * gdk/keyname-table.h: Generated tables.
3882 * gdk/gdkkeynames.c: Include keyname-table.h and don't
3883 generate the inverse table at runtime.
3885 2005-03-07 Matthias Clasen <mclasen@redhat.com>
3887 * gtk/gtkstyle.c: Document which parameters may be NULL.
3888 (#166855, Frank Naumann)
3890 2005-03-07 Matthias Clasen <mclasen@redhat.com>
3892 * AUTHORS: Add original authors of incorporated software.
3894 Thu Mar 3 16:59:44 2005 Manish Singh <yosh@gimp.org>
3896 * configure.in: URL escape the '+' in gtk+ in the bugzilla URL.
3898 2005-03-03 Matthias Clasen <mclasen@redhat.com>
3900 * gtk/gtksettings.c (gtk_settings_get_property):
3901 * gtk/gtkrc.c (gtk_rc_parse_assignment): Don't leak
3902 the values here. (#169047, Philip Langdale)
3904 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
3905 Don't warn if a stock icon cannot be found. (#168830,
3908 2005-03-03 Matthias Clasen <mclasen@redhat.com>
3910 * gtk/gtkwidget.c (gtk_widget_reparent_subwindows):
3911 Avoid warnings if gtk_widget_reparent() is called at
3912 unusual times. (#168966, Christian Persch)
3914 Tue Mar 1 14:04:08 2005 Manish Singh <yosh@gimp.org>
3916 * gdk/x11/gdkproperty-x11.c (virtual_atom_check_init): Cast to avoid
3917 const warnings on data structure seeding.
3919 Tue Mar 1 13:53:56 2005 Manish Singh <yosh@gimp.org>
3921 * gtk/xdgmime/xdgmime.[ch]: revert previous change, maintain ABI.
3923 2005-03-01 Matthias Clasen <mclasen@redhat.com>
3925 * gtk/gtkmenutoolbutton.c (button_state_changed_cb):
3926 Fix prelighting. (#157392, Vincent Noel, patch by
3929 * gtk/gtkicontheme.c (theme_lookup_icon): Make
3930 icon data caching work again. (#168851, Alexander Larsson)
3932 * gdk-pixbuf/gdk-pixbuf.c:
3933 * gdk-pixbuf/gdk-pixbuf-features.h.in:
3934 Revert the previous change, since it breaks
3937 2005-03-01 Matthias Clasen <mclasen@redhat.com>
3940 * gdk/gdkpixbuf-drawable.c
3942 * gdk/x11/gdkdnd-x11.c
3943 * gdk/x11/gdkevents-x11.c
3944 * gdk/x11/gdkproperty-x11.c
3945 * gdk/x11/gdkvisual-x11.c
3946 * gdk-pixbuf/gdk-pixbuf.c
3947 * gdk-pixbuf/gdk-pixbuf-features.h.in
3950 * gtk/gtkcolorbutton.c
3952 * gtk/gtkcontainer.c
3953 * gtk/gtkfilechooserdefault.c
3957 * gtk/gtkinputdialog.c
3958 * gtk/gtkitemfactory.c
3962 * gtk/gtktreedatalist.c
3963 * gtk/gtkuimanager.c
3964 * gtk/tree_minus.xpm
3966 * gtk/xdgmime/xdgmime.c
3967 * gtk/xdgmime/xdgmime.h:
3968 Move constant data to .rodata.
3970 2005-02-27 Matthias Clasen <mclasen@redhat.com>
3972 * gtk/gtkaction.c (connect_proxy): Improve the handling
3973 of buttons as action proxys. (#165534, Milosz Derezynski)
3975 * gtk/gtklabel.c (gtk_label_size_request): Fix a typo.
3976 (#168646, Vincent Untz)
3978 * gtk/gtkfilechooserdefault.c (save_folder_combo_create):
3979 Unset "focus-on-click" for the save folder combo. (#168688,
3982 2005-02-25 Matthias Clasen <mclasen@redhat.com>
3984 * demos/testpixbuf.c (main): Remove a C++ comment. (#168531,
3987 * gtk/gtkcombobox.c (gtk_combo_box_menu_fill_level): Don't leak a
3988 path here. (#168443, Morten Welinder)
3990 2005-02-24 Robert Ögren <gtk@roboros.com>
3992 Implement better handling of Wintab tablet context overlap on
3995 * gdk/win32/gdkinput-win32.c (_gdk_input_set_tablet_active): New
3996 function that brings any tablet contexts to the top of the overlap
3998 * gdk/win32/gdkinput-win32.h: Declare _gdk_input_set_tablet_active ()
3999 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
4000 Call _gdk_input_set_tablet_active when a window is activated (on
4003 2005-02-24 Matthias Clasen <mclasen@redhat.com>
4005 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_select_path):
4006 Don't leak parent_path. (#168435, Morten Welinder)
4008 Thu Feb 24 14:20:16 2005 Søren Sandmann <sandmann@redhat.com>
4010 * gtk/gtkstyle.c: Add
4012 g_return_if_fail (style->depth == gdk_drawable_get_depth(window));
4016 2005-02-24 Matthias Clasen <mclasen@redhat.com>
4018 * gtk/gtkcombobox.c: Consistently use gtk_tree_row_reference_valid().
4019 (gtk_combo_box_model_row_deleted): Update the displayed row in
4020 the cell_view. (#167842, Gustavo Carneiro)
4022 2005-02-24 Matthias Clasen <mclasen@redhat.com>
4024 Fix #167259, reported by Christian Persch:
4026 * gtk/gtkwidget.c (gtk_widget_unparent): Unmap the reparented
4027 widget, even if we avoid the unrealizing.
4028 (gtk_widget_reparent_subwindows): Make reparenting work for
4029 !NO_WINDOW widgets which have other windows which are siblings
4030 of widget->window (as e.g. GtkSpinButton).
4032 2005-02-24 Matthias Clasen <mclasen@redhat.com>
4034 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed):
4035 Don't emit a warning if a parent node is filtered out. (#164726,
4038 2005-02-23 Matthias Clasen <mclasen@redhat.com>
4040 * gtk/gtklabel.c (gtk_label_style_set): Revert the last
4041 change, since gtk_widget_set_style_internal() already
4044 2005-02-23 Matthias Clasen <mclasen@redhat.com>
4046 * gtk/gtklabel.c (gtk_label_style_set): Queue a resize, since
4047 fonts may have changed. (#164128, Phil Blundell)
4049 * gtk/gtkaboutdialog.c (gtk_about_dialog_init)
4050 (gtk_about_dialog_new): Move initialization code from _new to
4051 _init. (#168249, Murray Cumming)
4053 Wed Feb 23 17:34:01 2005 Jonathan Blandford <jrb@redhat.com>
4055 * gtk/gtktreeview.c (gtk_tree_view_node_queue_redraw): Patch from
4056 jorn@nl.linux.org (Jorn Baayen) to notice changes to fixed-height
4059 2005-02-23 Tor Lillqvist <tml@novell.com>
4061 * gdk/win32/gdkkeys-win32.c (update_keymap): Workaround for bug in
4062 MapVirtualKey(VK_DIVIDE, 0) in some Windows versions. (#142998)
4064 Tue Feb 22 13:49:09 2005 Manish Singh <yosh@gimp.org>
4066 * gtk/updateiconcache.c: #include <config.h>
4068 2005-02-22 Federico Mena Quintero <federico@ximian.com>
4070 Merged from gtk-2-6:
4072 Fix #164940, patch by Ben Maurer and Tommi Komulainen.
4074 * gdk/gdkrgb.c (gdk_rgb_convert_565_d): Constify the "dmp" variable.
4075 (gdk_rgb_convert_565_d): Likewise.
4076 (DM_565): Made a static const precomputed array to avoid
4077 allocating it at runtime.
4078 (gdk_rgb_preprocess_dm_565): #ifdef out.
4080 2005-02-20 Matthias Clasen <mclasen@redhat.com>
4083 * gtk/gtkclipboard.c: Fix links to freedesktop.org specs
4084 in the documentation.
4086 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
4087 Set have_render_with_trapezoids to GDK_YES when we have
4088 a new enough Render extension. (#167965,Billy Biggs)
4090 * gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
4091 the last user interaction when focusing the window. (#166379,
4094 Thu Feb 17 14:58:16 2005 Manish Singh <yosh@gimp.org>
4096 * gtk/gtkuimanager.c (start_element_handler): make sure expand
4097 is initialized, cast to GTK_SEPARATOR_TOOL_ITEM.
4099 Thu Feb 17 14:52:57 2005 Manish Singh <yosh@gimp.org>
4101 * gtk/gtkcombobox.c: Pass gtk_widget_get_toplevel() a GTK_WIDGET.
4103 2005-02-16 Matthias Clasen <mclasen@redhat.com>
4105 * docs/iconcache.txt: Add some information about the
4106 icon cache format (since I can't locate it at freedesktop.org)
4108 Fixes for #143829, Tommi Komulainen, Christian Persch:
4110 * gtk/gtktreeview.c (gtk_tree_view_destroy): Remove the
4111 typeselect_flush_timeout when destroying the widgets
4113 (gtk_tree_view_ensure_interactive_directory): Add the
4114 popup to the window group of the toplevel it belongs to.
4116 * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget)
4117 (gtk_combo_box_popup): Do the same here.
4119 2005-02-14 Matthias Clasen <mclasen@redhat.com>
4121 * configure.in: Kill --enable-ansi (#164394)
4123 2005-02-11 Matthias Clasen <mclasen@redhat.com>
4125 * gtk/gtkpathbar.c (gtk_path_bar_finalize): Stop scrolling
4126 when the pathbar goes away. (#167094, Rodney Dawes)
4127 (change_icon_theme): Use GTK_ICON_SIZE_MENU here as
4130 2005-02-11 Matthias Clasen <mclasen@redhat.com>
4132 Support vertical menubars (#166632):
4134 * gtk/gtkenums.h (GtkPackDirection): New enumeration for pack
4135 directions, with values for left-to-right, right-to-left,
4136 top-to-bottom and bottom-to-top.
4140 * gtk/gtkmenubar.c: Add two properties, pack-direction and
4141 child-pack-direction, which specify how children and
4142 grandchildren of a menubar are packed, with getters and setters.
4144 * gtk/gtkmenubar.c (gtk_menu_bar_set_property):
4145 (gtk_menu_bar_get_property): Implement set_property and get_property.
4147 * gtk/gtkmenubar.c (gtk_menu_bar_size_request):
4148 (gtk_menu_bar_size_allocate): Take pack direction into account.
4150 * gtk/gtkmenubar.c (gtk_menu_bar_move_current): Implement
4151 move_current here move all the menubar-specific direction
4152 tweaking from the generic menushell implementation here.
4154 * gtk/gtkmenu.c (gtk_menu_move_current): Move menu-specific
4155 direction tweaking from the generic menushell implementation here.
4157 * gtk/gtkmenuitem.c (gtk_menu_item_size_request):
4158 (gtk_menu_bar_size_allocate): Take pack direction into account.
4160 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_size_request)
4161 (gtk_image_menu_item_size_allocate):
4162 (gtk_image_menu_item_toggle_size_request): Take child pack
4163 direction into account and pack the image vertically if
4166 * gtk/gtkmenushell.c (gtk_menu_shell_real_select_item):
4167 Set the submenu direction to left-right for menuitems in
4169 (gtk_real_menu_shell_move_current): Simplify by moving
4170 direction tweaking to menu- and menubar-specific
4171 implementations. Take pack direction into account when
4174 * tests/testmenubars.c: Test menubars in various packing
4175 direction combinations.
4177 * tests/Makefile.am (noinst_PROGRAMS): Add testmenubars.
4179 2005-02-11 Matthias Clasen <mclasen@redhat.com>
4181 Complete the fix for #165770, Vincent Noel:
4183 * gtk/gtkfilechooserbutton.c (FALLBACK_ICON_SIZE): Make the
4184 fallback size be 16, to be equal to the default for
4185 GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
4186 (gtk_file_chooser_button_init):
4187 (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
4188 GTK_ICON_SIZE_SMALL_TOOLBAR.
4190 2005-02-09 Matthias Clasen <mclasen@redhat.com>
4192 * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): Fix RTL
4193 keynav for going from menubar to menu.
4195 2005-02-08 Christian Rose <menthos@menthos.com>
4197 * configure.in: Added "xh" to ALL_LINGUAS.
4199 2005-02-08 Matthias Clasen <mclasen@redhat.com>
4201 * gtk/gtkuimanager.c (start_element_handler): Accept
4202 the "expand" attribute and set a flag in the node if it
4204 (update_node): If the expand flag is set, make separator
4205 toolitems non-drawn and expanding. (#166489, Christian Persch)
4207 2005-02-05 Hans Breuer <hans@breuer.org>
4209 * gdk/makefile.msc gdk/win32/makefile.msc gtk/makefile.msc.in :
4210 build with Cairo dependency. The patch to acually use Cairo
4211 on win32 will be on gtk-devel-list soon.
4212 * tests/makefile.msc : add testcairo building
4214 * gtk/stock-icons/makefile.msc : split command line into two to
4215 work with the shells default
4217 Fri Feb 4 14:16:31 2005 Manish Singh <yosh@gimp.org>
4219 * gtk/gtkaccelgroup.c (substitute_underscores): remove unused
4222 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
4223 Add some extra parens for bitop order of operations disambiguiation.
4225 * gtk/gtkstock.c: Fix const confusion, make our own copy of the
4226 domain when setting a translate function.
4228 * tests/testcombo.c: removed unused variable.
4230 2005-02-04 Matthias Clasen <mclasen@redhat.com>
4232 * gtk/gtkstock.c (gtk_stock_lookup): Handle item->translation_domain
4233 being NULL. (#166179, Diego Gonzalez)
4235 2005-02-04 Owen Taylor <otaylor@redhat.com>
4237 * configure.in: Revert gtk_binary_version to 2.4.0. Fix
4238 up comment to talk only about backwards compat, not
4239 forward/backwards compat. (#166293, reported by Vincent Noel)
4241 2005-02-04 Matthias Clasen <mclasen@redhat.com>
4243 * gtk/gtkpaned.c (gtk_paned_compute_position): Work better
4244 when there is not enough space. This avoids a nasty size
4245 allocation loop in the file chooser. (#154007, reported
4246 by Milosz Derezynski, patch by Robert Ögren)
4248 2005-02-04 Matthias Clasen <mclasen@redhat.com>
4250 * gtk/gtkentry.c (gtk_entry_create_layout): Avoid spurious
4251 selection of RTL direction if the widget does not have
4252 focus. (#164125, Frederic Crozat)
4254 Thu Feb 3 19:15:55 2005 Manish Singh <yosh@gimp.org>
4256 * gdk/x11/gdkdrawable-x11.c: #include cairo-xlib.h
4258 2005-02-03 Owen Taylor <otaylor@redhat.com>
4260 * gdk/gdkdrawable.[ch] gdkpixmap.c gdkwindow.c: Add
4261 gdk_drawable_set_cairo_target().
4263 * tests/testtreeflow.c (enum): Use grand not rand as a variable
4264 name because one of the cairo headers is pulling in stdlib.h.
4266 * tests/testcairo.c tests/Makefile.am: Add a simple cairo based
4269 * configure.in: Bump release to 2.7.0, gtk_binary_version to 2.7.0.
4271 * Require libpangocairo for all backends.
4273 2005-02-03 Tor Lillqvist <tml@novell.com>
4275 * modules/input/gtkimcontextime.c (get_pango_attr_list): Use the
4276 wide character version of ImmGetCompositionString() here,
4277 too. (#165278, Takuro Ashie)
4279 2005-02-03 Matthias Clasen <mclasen@redhat.com>
4281 * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Don't do
4282 one roundtrip per motion event. (#166173, pointed out
4283 by Chris Lee, patch by Søren Sandmann)
4287 * gtk/gtkstock.c (gtk_stock_set_translate_func):
4288 New function which allows to change the function used for
4289 translation stock labels, on a per-domain basis. Use this
4290 functionality to switch the GTK+ stock items to use Q_()
4291 prefixed msgids. (#166179, Funda Wang)
4293 * gdk/gdkkeynames.c: Make the gdk_key array const (#166075,
4296 2005-02-02 Federico Mena Quintero <federico@ximian.com>
4298 Merged from gtk-2-6:
4300 * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
4301 Don't select the first row if the chooser is not mapped. This
4302 happens when it's acting on behalf of GtkFileChooserButton. Also,
4303 don't select the first row if we are in SAVE or CREATE_FOLDER
4304 modes --- I had missed that (see the ChangeLog entry from
4305 2005-01-18). Fixes #165264.
4307 2005-02-02 Tor Lillqvist <tml@novell.com>
4309 Implement lazy extended input initialization on Win32, by Robert
4310 Ögren. Fixes #163163, possibly #162334. Lazy initialization would
4311 be a good idea in any case even if it didn't fix any visible
4314 The Wacom tablet driver seems to get confused if Wintab is
4315 initialized but no window is shown before the process exits. This
4316 is the case for some GIMP plug-ins, for instance.
4318 * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Made
4319 non-static (and renamed).
4320 (_gdk_input_init): Don't call _gdk_input_wintab_init_check().
4322 * gdk/win32/gdkinput-win32.h: Declare _gdk_input_wintab_init_check().
4324 * gdk/win32/gdkinput.c (gdk_devices_list,
4325 gdk_display_list_devices, gdk_input_set_extension_events): Call
4326 _gdk_input_wintab_init_check() here instead.
4328 2005-02-02 Ivan, Wong Yat Cheung <email@ivanwong.info>
4330 * gdk/win32/gdkselection.c: Use a FIFO list for storing GdkSelProp
4331 of a single window so that gtk_clipboard_request_contents() can be
4332 called inside a GtkClipboardReceivedFunc(). (#163844)
4334 2005-02-01 Matthias Clasen <mclasen@redhat.com>
4336 * gtk/gtkicontheme.c (gtk_icon_theme_init): Look for icons
4337 in XDG_DATA_DIRS/pixmaps. (#165950, Thomas Zajic)
4339 * gtk/gtkwindow.c (gtk_window_set_icon_name): Set info->icon_list
4340 to NULL after freeing it. (#165800, Damon Chaplin)
4342 2005-02-01 Michael Natterer <mitch@gimp.org>
4344 * configure.in: depend on stable pango-1.8, not unstable 1.7
4346 2005-02-01 Federico Mena Quintero <federico@ximian.com>
4348 Merged from gtk-2-6:
4350 * gtk/gtkfilechooserdefault.c
4351 (browse_files_model_finished_loading_cb): Don't
4352 g_assert_not_reached() if we are in any other state. Another code
4353 path may have triggered a folder reload. Fixes #165556.
4355 2005-02-01 Federico Mena Quintero <federico@ximian.com>
4357 Merged from gtk-2-6:
4361 * gtk/gtkfilechooserdefault.c (FALLBACK_ICON_SIZE): Make the
4362 fallback size be 16, to be equal to the default for
4363 GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
4364 (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
4365 GTK_ICON_SIZE_SMALL_TOOLBAR.
4367 2005-02-01 Matthias Clasen <mclasen@redhat.com>
4369 * */*.c: Fix many instances of "the the" in docs and
4370 comments. (#165815, Masao Mutoh)
4372 * gtk/updateiconcache.c (main): Add a --quiet option.
4374 2005-02-01 Tor Lillqvist <tml@novell.com>
4376 * gdk/win32/gdkkeys-win32.c (handle_special, set_shift_vks,
4377 reset_after_dead, handle_dead): New functions, code blocks
4378 refactored out of update_keymap(). No functionality change.
4380 (update_keymap): Use ToUnicodeEx() when available (on NT-based
4381 Windows) instead of ToAsciiEx(). Makes keyboard input work in
4382 Unicode-only input locales that don't have any ANSI codepage, for
4383 instance Hindi and Bengali. Use _gdk_input_codepage only on
4386 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
4387 WM_INPUTLANGCHANGE, use GetLocaleInfo() instead of
4388 TranslateCharsetInfo() to get the input locale's corresponding
4391 2005-01-31 Matthias Clasen <mclasen@redhat.com>
4393 * modules/input/gtkimcontextxim.c: Use NULL, not 0 to terminate
4394 NULL-terminated va lists. (#165683)
4396 2005-01-29 Matthias Clasen <mclasen@redhat.com>
4398 * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_set_draw):
4399 Typo fix. (#165581, Masao Mutoh)
4401 Thu Jan 27 14:25:45 2005 Manish Singh <yosh@gimp.org>
4403 * README.cvs-commits: update ancient IRC info.
4405 2005-01-27 Federico Mena Quintero <federico@ximian.com>
4407 Merged from gtk-2-6:
4409 * gtk/gtkfilechooserdefault.c
4410 (gtk_file_chooser_default_select_path): Oops, don't assert that we
4411 can't reach the end of the function; this happens if we are still
4412 loading but don't need a path change. Fixes #165213.
4414 2005-01-27 Matthias Clasen <mclasen@redhat.com>
4416 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
4417 Make wrapping work in RTL mode.
4419 * gtk/gtkaboutdialog.c: Some visual tweaks to the about dialog,
4420 obey HIG spacing a bit more, add a hand cursor when over the
4421 link button. (#163979, Jorn Baayen)
4423 2005-01-26 Matthias Clasen <mclasen@redhat.com>
4425 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
4426 Don't allow -1 as minimum-key-length.
4427 (gtk_entry_completion_set_model): Add missing notification.
4428 (gtk_entry_completion_set_minimum_key_length): Add missing
4429 notification, allow setting minimum-key-length to 0. (#165194,
4432 2005-01-26 Matthias Clasen <mclasen@redhat.com>
4434 * gtk/gtkaboutdialog.c (display_license_dialog): Make sure
4435 the license dialog is initially displayed without a horizontal
4437 (gtk_about_dialog_class_init): Document the fact that the
4438 license text is not wrapped. (#165012, Christian Rose)
4440 2005-01-25 Matthias Clasen <mclasen@redhat.com>
4442 * gtk/gtkbutton.c (gtk_button_set_image): Fix docs. (#165180,
4445 * gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): Fix
4446 docs. (#165163, Jeff Franks)
4448 * gtk/gtkimage.c (gtk_image_get_property): Use the correct setter
4449 for a string GValue. (#165203, Damon Chaplin)
4451 2005-01-24 Matthias Clasen <mclasen@redhat.com>
4453 * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display):
4454 Initialize user_time from DESKTOP_STARTUP_ID. (#165131,
4457 2005-01-24 Federico Mena Quintero <federico@ximian.com>
4459 * gtk/gtkfilechooserdefault.c: Removed leftover comments.
4461 2005-01-24 Federico Mena Quintero <federico@ximian.com>
4463 Merged from gtk-2-6:
4465 Fix #147785 and clean up the loading code:
4467 * gtk/gtkfilechooserdefault.c (LoadState): Make the set of states
4468 be EMPTY, PRELOAD, LOADING, FINISHED.
4469 (gtk_file_chooser_default_init): Start in the LOAD_EMPTY state.
4470 (struct _GtkFileChooserDefault): Added a pending_select_paths
4472 (load_remove_timer): Add the new states.
4473 (load_setup_timer): Likewise.
4474 (load_timeout_cb): Likewise. Switch to the LOAD_LOADING state.
4475 (browse_files_model_finished_loading_cb): Switch to the
4476 LOAD_FINISHED state.
4477 (enum PendingOp): Removed.
4478 (struct _GtkFileChooserDefault): Removed the pending_op and
4479 pending_select_path fields.
4480 (pending_select_paths_free): New utility function.
4481 (pending_select_paths_add): New utility function.
4482 (gtk_file_chooser_default_finalize): Call
4483 pending_select_paths_free().
4484 (pending_op_queue): Removed.
4485 (pending_op_process): Removed.
4486 (pending_select_paths_process): New function.
4487 (browse_files_model_finished_loading_cb): Call
4488 pending_select_paths_process().
4489 (center_selected_row_foreach_cb): Handle multiple selection by
4490 only centering the first row.
4491 (get_is_file_filtered): Constify.
4492 (gtk_file_chooser_default_select_path): Queue into a list of paths
4493 to select if we are not finished loading.
4494 (show_and_select_paths): New utility function.
4495 (up_folder_handler): Use pending_select_paths_add().
4496 (gtk_file_chooser_default_should_respond): Do not call
4497 pending_op_queue(); free the pending_selected_paths instead.
4498 (gtk_file_chooser_default_initial_focus): Don't queue a pending
4499 operation, and don't select the first row unconditionally --- this
4500 will happen when the folder is done loading.
4501 (shortcuts_row_activated_cb): Free the pending_select_paths.
4502 (pending_select_paths_store_selection): New utility function.
4503 (gtk_file_chooser_default_map): Call
4504 pending_select_paths_store_selection() to save the selection
4505 before reloading the folder.
4506 (select_func): Umm? Call gtk_tree_selection_select_iter(). Don't
4507 move the cursor here; it will be done when processing the pending paths.
4509 * tests/testfilechooser.c (main): Add a button to the command
4510 window to unmap and remap the file chooser.
4512 2005-01-24 Matthias Clasen <mclasen@redhat.com>
4514 * docs/tutorial/gtk-tut.sgml:
4515 * docs/tutorial/gtk_tut.sgml:
4516 * docs/reference/gtk/tmpl/gtkliststore.sgml:
4517 * gtk/gtkactiongroup.c:
4518 * gtk/gtksizegroup.c:
4519 * gtk/gtksizegroup.h:
4520 * gtk/gtktogglebutton.c: Replace "effect" by "affect" where
4521 appropriate. (#165108, Dan Winship)
4523 2005-01-24 Matthias Clasen <mclasen@redhat.com>
4525 * gtk/gtkwidget.c (gtk_widget_class_init): Document
4526 GtkWidget::style-set. (#164222, Alex Graveley)
4528 2005-01-22 Matthias Clasen <mclasen@redhat.com>
4530 * gdk/gdkdisplay.h (gdk_display_add_client_message_filter_full):
4531 Remove the accidentally added prototype for this unimplemented
4532 function. (#164893, Jeff Franks)
4534 * gtk/gtktreeview.c (gtk_tree_view_leave_notify): Avoid spurious
4537 2005-01-23 Tor Lillqvist <tml@novell.com>
4539 * gdk/win32/gdkkeys-win32.c (update_keymap): Handle Greek tonos
4540 dead accent key. (#164859, reported and fix verified by Daniel
4543 * gtk/gtkimcontextsimple.c (gtk_compose_seqs): Handle
4544 GDK_Greek_accentdieresis (tonos and dialytika) combining with iota
4547 * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_volume_get_display_name):
4548 Don't call GetVolumeInformation() for network drives. They might
4549 be disconnected, and calling GetVolumeInformation() will then
4550 cause long delays. (#164448, reported by Dave Neary.) It seems to
4551 be very hard to reliably find out whether a network drive is
4552 connected or not, so it's easier to just not try getting the
4553 volume name for them. See the bug report for discussion.
4555 Make volume name display formats translatable.
4557 Fix for #163702, from Ivan Wong:
4559 * gdk/win32/gdkprivate-win32.h
4560 * gdk/win32/gdkglobals-win32.c: New flag _ignore_destroy_clipboard.
4562 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle
4563 WM_DESTROYCLIPBOARD. Unless _ignore_destroy_clipboard, generate a
4564 GDK_SELECTION_CLEAR event.
4566 * gdk/win32/gdkselection-win32.c
4567 (gdk_selection_owner_set_for_display): Set _ignore_destroy_clipboard
4568 when emptying the clipboard ourselves.
4570 (gdk_selection_send_notify_for_display): Remove the artifical
4571 GDK_SELECTION_CLEAR event generation.
4573 2005-01-21 Matthias Clasen <mclasen@redhat.com>
4575 * gtk/gtkwidget.c (gtk_widget_get_accessible): More details
4576 provided by Bill Haneman.
4578 2005-01-20 Matthias Clasen <mclasen@redhat.com>
4580 * gtk/gtkwidget.c (gtk_widget_get_accessible): Add docs. (#164725,
4583 * gtk/gtkdialog.c (gtk_dialog_map): Don't loop forever
4584 here, even if the only focusable widgets are labels.
4586 2005-01-20 Matthias Clasen <mclasen@redhat.com>
4588 Support tinting in GtkCellRendererPixbuf (#162903, Jorn Baayen):
4590 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init)
4591 Add a follow-state property which when TRUE causes the pixbuf
4592 to be tinted according to state.
4594 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
4595 Use follow-state and colorize the pixbuf when appropriate.
4597 2005-01-20 Matthias Clasen <mclasen@redhat.com>
4599 Support wrapping in GtkCellRendererText (#163608):
4601 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
4602 Add wrap-mode and wrap-width properties which cause a
4603 text cell to break to a specified width when set.
4605 * gtk/gtkcellrenderertext.c (get_layout): Use wrap-mode
4606 and wrap-width when they are set.
4608 2005-01-20 Matthias Clasen <mclasen@redhat.com>
4610 * gtk/gtkmodules.c (load_module): Don't reverse the order
4611 of modules when putting them in gtk_modules. (#162676, Dennis
4612 Cranston, patch by Remus Draica)
4614 * gtk/gtktreeview.c (gtk_tree_view_search_move): Don't crash
4615 if the tree is empty. (#164669, Priit Laes)
4617 Wed Jan 19 18:57:02 2005 Manish Singh <yosh@gimp.org>
4619 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call
4620 GDK_DISPLAY_XDISPLAY with a display, not a window. Clean up the
4623 Wed Jan 19 17:17:31 2005 Manish Singh <yosh@gimp.org>
4625 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Squash
4626 strict aliasing warning in _NET_VIRTUAL_ROOTS code.
4628 2005-01-19 Tor Lillqvist <tml@novell.com>
4630 * gdk/win32/gdkkeys-win32.c (update_keymap,
4631 gdk_keymap_translate_keyboard_state): Handle keyboards with
4632 ShiftLock (and not CapsLock) correctly. (#161814)
4634 2005-01-19 Matthias Clasen <mclasen@redhat.com>
4636 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
4637 In save mode, don't return paths containing nonexisting
4638 directories. (#162443, Jean Marie Favreau)
4640 * gtk/gtkobject.c (gtk_object_add_arg_type): Use GLib limit
4641 macros to avoid sparse warnings. Pointed out by Kjartan Maraas.
4643 * gdk/x11/gdkdisplay-x11.c: Precache the _NET_VIRTUAL_ROOTS
4646 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents):
4647 Support _NET_VIRTUAL_ROOTS. (#163910, Carsten Haitzler)
4651 * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_get_user_time):
4652 Add a function to obtain the last user interaction
4653 time. (#163119, Elijah Newren)
4655 Tue Jan 18 13:56:09 2005 Manish Singh <yosh@gimp.org>
4657 * gtk/gtkfilechooserdefault.c (pending_op_queue): Actually assign
4660 Tue Jan 18 13:46:46 2005 Manish Singh <yosh@gimp.org>
4662 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
4663 disambiguate nested if/else.
4665 2005-01-18 Federico Mena Quintero <federico@ximian.com>
4667 Merged from gtk-2-6:
4669 * gtk/gtkfilechooserdefault.c (pending_op_queue): Don't queue an
4670 operation to select the first file if we are in SAVE or
4671 CREATE_FOLDER modes. Executing that operation would overwrite the
4672 contents of the save-name entry.
4674 2005-01-18 Matthias Clasen <mclasen@redhat.com>
4677 * gdk/x11/gdkwindow-x11.c (gdk_display_warp_pointer):
4678 * gdk/win32/gdkwindow-win32.c (gdk_display_warp_pointer): Add
4679 pointer warping to GDK. (#160437)
4681 * gtk/gtkcolorsel.c (key_press): Use gdk_display_warp_pointer.
4683 2005-01-18 Matthias Clasen <mclasen@redhat.com>
4685 * gtk/gtkstyle.c (gtk_default_draw_check)
4686 (gtk_default_draw_option, gtk_default_draw_handle): Add some
4687 more NULL checks, patch by Michael Natterer.
4689 Tue Jan 18 10:55:47 2005 Søren Sandmann <sandmann@redhat.com>
4691 * gtk/gtkstyle.c (gtk_default_draw_handle): Check for NULL detail
4694 * gtk/gtkstyle.c (gtk_default_draw_box): Check for NULL detail and
4695 NULL widget. (#164477, Michael Natterer)
4697 2005-01-18 Matthias Clasen <mclasen@redhat.com>
4699 Avoid X errors when running against servers which
4700 implement XRender < 0.4. (#164427, Albert Chin)
4702 * gdk/x11/gdkprivate-x11.h:
4703 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
4704 New function to check for trapezoid support in XRender.
4705 (gdk_x11_draw_trapezoids, _gdk_x11_drawable_draw_xtrapezoids):
4708 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a
4709 separate have_render_with_trapezoids field.
4711 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize it.
4713 2005-01-17 Matthias Clasen <mclasen@redhat.com>
4715 * gtk/gtkiconview.c: Remove debug output. (#164376, Jens Finke)
4717 Mon Jan 17 16:44:36 2005 Jonathan Blandford <jrb@redhat.com>
4719 * docs/Makefile.am (EXTRA_DIST): add tree-column-sizing.png to
4722 2005-01-17 Matthias Clasen <mclasen@redhat.com>
4724 * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmarks): Save
4725 and restore the selected row in the bookmark list and the
4726 save folder combo. (#164290)
4728 2005-01-16 Matthias Clasen <mclasen@redhat.com>
4730 * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new_with_backend):
4731 Fix argument order in docs.
4733 2005-01-15 Matthias Clasen <mclasen@redhat.com>
4735 * gtk/gtktextview.c (gtk_text_view_check_keymap_direction):
4736 * gtk/gtkentry.c (gtk_entry_create_layout): Prefer LTR over RTL
4737 if the keymap is neutral. (#164125, Phil Blundell)
4739 2005-01-14 Matthias Clasen <mclasen@redhat.com>
4741 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Allow to
4742 reset the property to its default value -1.
4743 (gtk_tree_view_get_search_column): Return the default value in
4744 the g_return_val_if_fail() check. (#163864, Richard Hult)
4746 * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_set_value):
4747 Add a translator hint. (#163889)
4749 * configure.in: Check for _NL_TIME_FIRST_WEEKDAY too, since it
4750 is an enum value, not a define. Pointed out by Tommi Komulainen.
4751 * gtk/gtkcalendar.c (gtk_calendar_init): Adapt.
4753 2005-01-13 Matthias Clasen <mclasen@redhat.com>
4755 * configure.in: Check for nl_langinfo()
4756 * gtk/gtkcalendar.c (gtk_calendar_init): Use nl_langinfo() when it's
4757 available to determine first day of week (#163842, Vincent Untz)
4759 * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Add hints about
4760 the lifecycle of widgets. (#159503, Christian Persch)
4762 * demos/gtk-demo/main.c (create_text): Use monospace for the
4763 source code view. (#163526, Theerud Lawtrakul)
4765 * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Use R as mnemonic
4766 for the Credits button to avoid duplicate. (#163465, Tim-Philipp
4769 * configure.in: Add an OS_LINUX conditional.
4771 * gdk/Makefile.am (TESTS):
4772 * gdk-pixbuf/Makefile.am (TESTS):
4773 * gtk/Makefile.am (TESTS): Only run abicheck on Linux. (#163917,
4776 2005-01-13 Matthias Clasen <mclasen@redhat.com>
4778 * gtk/gtktreeview.c: (gtk_tree_view_class_init),
4779 (gtk_tree_view_set_headers_clickable): Make the headers-visible
4780 property readwrite instead of just writable, and remove the
4781 g_return_if_fail check that there is a model when setting this
4782 property. Also improve the blurb. (#163851, Richard Hult)
4784 2005-01-12 Owen Taylor <otaylor@redhat.com>
4786 * configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on
4787 initialization of gdktarget, that was causing it to be
4788 evaluated before host was set. Simplify --with-gdktarget help
4791 * gtk/Makefile.am: Use grep | head -n 1 instead of grep -m 1
4792 which doesn't work with slightly older versions of GNU grep
4793 in install-libtool-import-lib rule.
4795 2005-01-12 Tor Lillqvist <tlillqvist@novell.com>
4797 Fix for #162790, by Iwan Wong:
4799 * gdk/win32/gdkdrawable-win32.c: Implement dashed lines
4800 correctly. Simplify the interface to render_line_horizontal() and
4801 render_line_vertical(). Need to draw lines "manually" also on
4802 NT-based Windowses if we have a dash offset or are drawing
4803 double-dashed lines.
4805 * gdk/win32/gdkprivate-win32.h: Keep also the dash offset,
4806 double-dash flag, and a brush for the background colour (used by
4807 the odd dashes in the double-dash line style) in the GdkGCWin32
4810 * gdk/win32/gdkgc-win32.c: Set up above new fields.
4812 2005-01-10 Federico Mena Quintero <federico@ximian.com>
4816 * gtk/gtkfilesystemunix.c (STAT_NEEDED_MASK): Take out
4817 GTK_FILE_INFO_IS_HIDDEN; we don't need to stat() to know this.
4818 (gtk_file_system_unix_get_folder): Make error reporting more
4819 accurate. Don't bail out if we can't read the directory.
4820 (fill_in_stats): Don't return an error; just assume we don't have
4821 stat info for this folder's files.
4822 (fill_in_names): Don't create the hash table for the names if we
4823 can't open the directory.
4824 (gtk_file_folder_unix_list_children): Don't emit the
4825 "finished-loading" signal --- we don't do asynchronous loads, so
4826 we are always finished loading.
4827 (gtk_file_folder_unix_get_info): Use helper functions; handle the
4828 case where we can't stat '/'.
4829 (get_icon_type_from_path): Don't call fill_in_stats() here; only
4830 use the info we have.
4831 (fill_in_mime_type): Don't return an error. Don't do anything if
4832 we don't have the stat info.
4834 2005-01-10 Owen Taylor <otaylor@redhat.com>
4836 * Makefile.am (EXTRA_DIST): Adding missing ChangeLog.pre*
4839 2005-01-10 Matthias Clasen <mclasen@redhat.com>
4841 * gtk/gtkaccelgroup.c (gtk_accel_group_class_init): Document
4842 signals. (#163319, Murray Cumming)
4844 2005-01-09 Tor Lillqvist <tlillqvist@novell.com>
4846 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Set current
4847 cursor also when changing the cursor of a window that is the first
4848 ancestor of the window containing the pointer that has a cursor
4849 defined. (#163035, Ivan Wong)
4851 2005-01-09 Anders Carlsson <andersca@gnome.org>
4853 * gtk/gtkcellrenderertext.c: (get_size):
4854 * gtk/gtklabel.c: (gtk_label_size_request):
4855 * gtk/gtkprogressbar.c: (gtk_progress_bar_size_request):
4856 Don't pass NULL to pango_context_get_metrics. Use
4857 pango_context_get_language instead, which is way faster.
4859 2005-01-08 Matthias Clasen <mclasen@redhat.com>
4861 * configure.in: Bump version
4863 * === Released 2.6.1 ===
4865 * gdk-pixbuf-2.0.pc.in: Require gmodule-no-export-2.0
4867 2005-01-07 Tor Lillqvist <tml@iki.fi>
4869 * gdk/win32/gdkselection-win32.c (_gdk_selection_property_store):
4870 Fix braino. (#163232, Arnaud Charlet)
4872 2005-01-06 Matthias Clasen <mclasen@redhat.com>
4874 * gtk/gtkiconview.c: Make markup_column work, and fix some
4875 layout issues when either icon or text is missing. (#163065)
4877 2005-01-06 Federico Mena Quintero <federico@ximian.com>
4879 * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu): Add an
4880 "Open _Location" item. Fixes #148839.
4882 2005-01-06 Matthias Clasen <mclasen@redhat.com>
4884 * README.in: Fix a typo. (#163128, kentaro fukuchi)
4886 2005-01-06 James M. Cape <jcape@ignore-your.tv>
4888 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new)
4889 (gtk_file_chooser_button_new_with_backend): Use default title if
4892 * docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Make examples
4895 2005-01-05 Federico Mena Quintero <federico@ximian.com>
4899 * gtk/gtkfilechooserdefault.c (shortcuts_row_activated_cb): Queue
4900 a pending operation to select the first row.
4902 2005-01-05 Federico Mena Quintero <federico@ximian.com>
4904 * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Don't call
4905 button_data_free() explicitly; the button is weak-reffed and the
4906 callback will free the button data. Fixes #163010.
4907 (_gtk_path_bar_set_path): Don't ref/sink the button. And for the
4908 failure case, call gtk_widget_destroy() on it.
4910 * gtk/gtkfilechooserdefault.c (check_is_folder): Use
4911 gtk_file_system_get_folder() again (see the ChangeLog entry from
4912 2004-08-25). We can't first get the parent folder and then
4913 request the info for the path in question, as the parent folder
4914 may not be readable. See bug #162617.
4915 (gtk_file_chooser_default_set_current_folder): Assert that the
4916 passed-in path is not null.
4917 (shortcuts_find_current_folder): Likewise.
4918 (shortcuts_add_current_folder): Likewise.
4919 (set_list_model): Likewise.
4920 (gtk_file_chooser_default_map): Only reload the current folder if
4922 (bookmarks_check_add_sensitivity): Check for the current folder
4924 (browse_files_select_first_row): Don't set the cursor if there is
4927 2005-01-05 Matthias Clasen <mclasen@redhat.com>
4929 * gtk/gtkfilechooserdefault.c: Don't construct errors from
4930 the GTK_FILE_SYSTEM_ERROR domain. Partial fix for #162911.
4931 (get_file_info, check_is_folder): Translate errors from
4932 the filesystem into the GTK_FILE_CHOOSER_ERROR domain. Rest
4933 of the fix for #162911, noticed by Murray Cumming.
4935 Wed Jan 5 11:42:49 2005 Søren Sandmann <sandmann@redhat.com>
4937 * gtk/gtkviewport.c (gtk_viewport_realize):
4938 * gtk/gtktextview.c ((text_window_realize): Set the background of
4939 the windows to None instead of adding EXPOSURE_MASK, as suggested
4942 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Update
4943 the user time when receiving a WM_DELETE message. (#162980,
4946 Tue Jan 4 16:52:14 2005 Jonathan Blandford <jrb@redhat.com>
4948 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
4949 only reorder on button 1, part of #141937
4951 Tue Jan 4 11:36:43 2005 Søren Sandmann <sandmann@redhat.com>
4955 * gtk/gtktextview.c (text_window_realize): Add GDK_EXPOSURE_MASK
4956 to win->window's event_mask
4958 * gtk/gtkviewport.c (gtk_viewport_realize): Add GDK_EXPOSURE_MASK
4959 to viewport->view_window.
4961 2005-01-04 Matthias Clasen <mclasen@redhat.com>
4963 * demos/testpixbuf.c (main): Remove the size_prepared callback,
4964 to test incremental display.
4965 (new_testrgb_window): Return the drawing area, not the window,
4966 since we want to queue draws on the drawing area.
4968 2005-01-03 Matthias Clasen <mclasen@redhat.com>
4970 * examples/*: Re-extract.
4972 * docs/tutorial/gtk-tut.sgml: Small corrections.
4974 * docs/tutorial/gtk-tut.sgml: Some updates for the drawing
4975 section. (#161414, Robert Ancell)
4977 * docs/tutorial/gtk-tut.sgml: Make it build.
4979 * gtk/gtkdialog.c (gtk_dialog_run): Some clarification
4980 regarding modality. (#112903, Dave Bordoley)
4982 * gtk/gtkfixed.c (gtk_fixed_set_has_window):
4983 Add a little motivation. (#145556, Tommi Komulainen)
4985 * docs/tutorial/gtk-tut.sgml: Clarify section on
4986 g_signal_connect_swapped. (#120543, David Bourguignon)
4988 Make gtk_icon_theme_load_icon() work independent of
4989 icon factory initialization. (#162791, Tristan Van Berkom)
4991 * gtk/gtkiconfactory.[hc]: Rename ensure_default_icons to
4992 _gtk_icon_factory_ensure_default_icons, and make it non-static.
4994 * gtk/gtkicontheme.c (find_builtin_icon): ..and call it here.
4996 2005-01-02 Matthias Clasen <mclasen@redhat.com>
4998 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_remove_shortcut_folder):
4999 Don't add a shortcut here. (#162752, Tor Lillqvist)
5001 2005-01-02 Tor Lillqvist <tml@iki.fi>
5003 * gtk/Makefile.am (libgtk_target_ldflags): Add -lole32, needed for
5004 CoTaskMemFree in get_special_folder() below.
5006 * gtk/gtkfilesystem.h: Implement case-insensitive path compare on
5007 Win32 using _gtk_file_system_win32_path_compare().
5009 * gtk/gtk.symbols: Add _gtk_file_system_win32_path_compare.
5011 * gtk/gtkfilechooserbutton.c (model_add_special)
5012 * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Use
5013 _gtk_file_system_win32_get_desktop() to get correct Desktop folder
5016 * gtk/gtkfilesystemwin32.c: Remove unnecessary includes. Do
5017 consider all drives "mounted", including floppies. Trying to
5018 inspect the contents of a nonexistent floppy will cause errors
5019 later that are handled normally, no need to avoid them
5020 completely. Keep the drive type in the GtkFileSystemVolume.
5021 Support UNC paths. (#161797, #137874) Fix error message
5022 capitalizations as in gtkfilesystemunix.c.
5024 (gtk_file_system_win32_init): Start one timeout per
5027 (gtk_file_system_win32_finalize): Remove the timeout.
5029 (get_special_folder): Copied from GLib.
5031 (_gtk_file_system_win32_get_desktop): New function, uses
5032 get_special_folder().
5034 (gtk_file_system_win32_list_volumes): Don't start a timeout at
5035 each call to this function. Don't assume A: and B: are floppies.
5037 (gtk_file_system_win32_get_volume_for_path): Don't assume all
5038 volumes are drive roots, i.e. support share roots of UNC paths
5041 (gtk_file_system_win32_get_folder): Don't assume errno is set
5042 after g_file_test() returns FALSE. It isn't on Win32 (and even on
5043 Unix I don't think one should assume anything about errno after
5046 (gtk_file_system_win32_volume_get_is_mounted): Always return TRUE.
5048 (gtk_file_system_win32_volume_get_display_name): Don't call
5049 GetVolumeInformation() on drives A: or B: if they are removable,
5050 as they might then be floppies, causing an unnecessary
5053 (gtk_file_system_win32_volume_render_icon): Use network icon for
5054 unrecognized drive types.
5056 (canonicalize_filename, gtk_file_system_win32_parse): Don't get
5057 confused by UNC paths.
5059 (bookmarks_serialize): Use _gtk_file_system_win32_path_compare()
5060 for case-insensitive UTF-8 path comparison.
5062 (extract_icon): Use SHGetFileInfo() which is faster than
5063 ExtractAssociatedIcon(). Icon extraction is still slow, though,
5066 (win32_pseudo_mime_lookup): Don't use the same icon for all
5067 shortcuts or executables. Cache only other file type icons.
5069 (gtk_file_system_win32_render_icon): Use network stock icon for
5070 remote drives and UNC server share roots. Compare home directory
5071 case-insensitively. Do lookup icons also for executable files,
5072 after all, it's these files that can have individual icons in the
5073 first place. Yes, it can be slow. Needs work.
5075 (filename_is_drive_root): Require also the slash after the colon.
5077 (filename_is_server_share): New function.
5079 (_gtk_file_system_win32_path_compare): New function, does
5080 case-folded UTF-8 comparison.
5082 * gtk/gtkfilesystemwin32.h: Declare
5083 _gtk_file_system_win32_path_compare().
5085 2005-01-01 Matthias Clasen <mclasen@redhat.com>
5087 * gtk/gtkbutton.c (gtk_button_set_image): Allow unsetting the
5088 custom image by passing NULL.
5089 (gtk_button_init): Initialize image_is_stock to TRUE, fixing
5090 a problem with changing stock labels. (#162273, Marcin
5093 2005-01-01 Tor Lillqvist <tml@iki.fi>
5095 * gtk/gtkmodules.c (get_module_path)
5096 * gtk/gtkrc.c (gtk_rc_make_default_dir, gtk_rc_get_im_module_file,
5097 gtk_rc_get_theme_dir, gtk_rc_add_initial_default_files): With
5098 g_getenv() now returning UTF-8 on Win32, no need to call
5101 2004-12-31 Matthias Clasen <mclasen@redhat.com>
5103 * gtk/gtkkeyhash.c (_gtk_key_hash_lookup_keyval)
5104 (_gtk_key_hash_lookup): Don't sort a list of values as if
5105 it was a list of entries. This fixes crashes during mnemonic
5106 activation in the presence of multiple keymaps. (#162488,
5109 2004-12-30 Matthias Clasen <mclasen@redhat.com>
5111 * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Fix
5112 state propagation when making an insensitive combo box sensitive
5113 again. (#162524, Carlos Garnacho Parro)
5115 * gtk/gtkfilechooserdefault.c: Use secondary text for error
5118 * gtk/gtkfilesystemunix.c: Clean up some cases of errno handling
5119 (#162496, noted by Tor Lillqvist), and use g_filename_display_name()
5120 for error messages. Also mark some error messages for translation,
5121 fix capitalization of error messages.
5123 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
5124 Use g_value_get_boolean() for ellipsize_set. (#162447,
5127 2004-12-30 Tor Lillqvist <tml@iki.fi>
5129 * gtk/gtkicontheme.c (gtk_icon_theme_init): Use /usr/share/pixmaps
5132 2004-12-28 Matthias Clasen <mclasen@redhat.com>
5134 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Inherit
5135 submenu direction from the parent menu.
5137 * gtk/gtkmenushell.c (gtk_menu_shell_select_submenu_first):
5138 Return a boolean indicating whether an item in the submenu
5140 (gtk_real_menu_shell_move_current): When going in child
5141 direction, don't get stuck at completely insensitive
5142 submenus. (#162055, Billy Biggs)
5144 2004-12-27 Matthias Clasen <mclasen@redhat.com>
5146 Make the clipboard image API more robust (#162357,
5147 Torsten Schoenfeld):
5149 * gtk/gtkclipboard.c (clipboard_image_received_func): Don't
5150 ref the pixbuf if it is NULL.
5152 * gtk/gtkselection.c (gtk_selection_data_set_pixbuf):
5153 NULL-terminate the varargs in the call to
5154 gdk_pixbuf_save_to_buffer().
5155 (gtk_selection_data_get_pixbuf): Only use a pixbuf loader
5156 if there is data to load.
5158 2004-12-27 Matthias Clasen <mclasen@redhat.com>
5160 * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
5161 Set x_root and y_root in button and motion events from
5162 extended input devices. (#148715, Robert Ögren)
5164 * gtk/gtktreeview.c (gtk_tree_view_class_init): Fix a
5165 typo. (#162339, Alessio Dessi)
5167 * gtk/gtkadjustment.c (gtk_adjustment_class_init): Document
5168 properties as new since 2.4. (#156101, Billy Biggs)
5170 * configure.in: Add a warning about the linux-fb
5171 target. (#155488, Zeeshan Ali)
5173 * gtk/gtkmain.c (gtk_init_with_args): Typo fix. (#162278,
5176 2004-12-26 Matthias Clasen <mclasen@redhat.com>
5178 * gtk/gtkfilechooser.c (gtk_file_chooser_set_action):
5179 Typo fix. (#162219, Masao Mutoh)
5180 (gtk_file_chooser_set_preview_widget_active):
5181 Another typo. (#162218, Masao Mutoh)
5183 2004-12-23 Matthias Clasen <mclasen@redhat.com>
5185 * gtk/gtkliststore.c (gtk_list_store_iter_children):
5186 Return TRUE if there are children. (#162134, Iñigo Serna,
5187 patch by John Finlay)
5189 * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed):
5190 Transfer state from the button to the cell view to get
5191 prelighting right. (#156327, Ricardo Veguilla)
5193 Wed Dec 22 14:22:19 2004 Søren Sandmann <sandmann@redhat.com>
5195 * tests/testtoolbar.c (timeout_cb): Add sensitivity-changing
5196 timeout. Written by Christian Persch.
5198 Wed Dec 22 14:14:02 2004 Søren Sandmann <sandmann@redhat.com>
5202 * gdk/x11/gdkwindow-x11.c (tmp_{re,un}set_bg): Only set/reset the
5203 background for windows that get expose events.
5205 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Remove
5206 hack to repaint !expose windows.
5208 Wed Dec 22 11:35:41 2004 Søren Sandmann <sandmann@redhat.com>
5210 Bug #147497, make menu items activate immediately when you release
5213 * gtk/gtkmenu.c (gtk_menu_enter_notify, menu_motion_notify): Make
5214 items activate immediately.
5216 * gtk/gtkmenu.c (definitely_within_item): New function
5217 * gtk/gtkmenu.c (check_threshold): New function
5219 2004-12-22 Matthias Clasen <mclasen@redhat.com>
5221 * gtk/gtklabel.c (gtk_label_setup_mnemonic): Don't forget to
5222 null the mnemonic_menu when unsetting a mnemonic, reported
5225 2004-12-21 Matthias Clasen <mclasen@redhat.com>
5227 * gtk/gtkliststore.c (generate_order): Generate the order the
5228 way it is supposed to be, order[new_pos] == old_pos.
5229 (gtk_list_store_reorder): Invert the order before using it.
5231 2004-12-22 Matthias Clasen <mclasen@redhat.com>
5233 Fix sorting of list stores. (#161886, Marcin Krzyzanowski)
5235 * gtk/gtkliststore.c (generate_order): Generate the order the
5236 way it is supposed to be, order[new_pos] == old_pos.
5237 (gtk_list_store_reorder): Invert the order before using it.
5239 * gtk/gtkiconview.c (gtk_icon_view_rows_reordered): Adapt to the
5242 Wed Dec 22 01:24:01 2004 Jonathan Blandford <jrb@redhat.com>
5244 * gtk/queryimmodules.c (main): print out the version and binary
5245 name in the header comment. Problem reported by Seth Nickell.
5247 2004-12-20 Matthias Clasen <mclasen@redhat.com>
5249 * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): Pass a
5250 root path to gtk_tree_model_rows_reordered(). (#161720,
5251 Marcin Krzyzanowski)
5253 * gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't
5254 translate NULL messages. (#161789, Morten Welinder)
5256 * gtk/gtkmessagedialog.c (setup_primary_label_font): Don't show
5257 the secondary label on show_all(). (#161707, Christian Persch)
5259 2004-12-19 Tor Lillqvist <tml@iki.fi>
5261 * gdk/win32/gdkdnd-win32.c (resolve_link, gdk_dropfiles_filter):
5262 Use wide character API when available. Use UTF-8 for filenames.
5264 * gdk/win32/gdkselection-win32.c (_gdk_dropfiles_store): Include
5265 the string's trailing zero byte in the property's length, just for
5268 2004-12-18 Matthias Clasen <mclasen@redhat.com>
5270 * gtk/gtkfilechooserentry.c (check_completion_callback)
5271 (load_directory_callback): Add missing GDK_THREADS_ENTER/LEAVE.
5273 * gtk/gtkfilechooserdefault.c (edited_idle_cb)
5274 (shortcuts_drag_outside_idle_cb): Add missing
5275 GDK_THREADS_ENTER/LEAVE. (#161604)
5277 * gtk/gtkfilechooserdefault.c (selection_check_foreach_cb):
5278 (list_select_func): Don't call gtk_file_info_get_is_folder()
5281 * gtk/gtkaboutdialog.c (gtk_about_dialog_get_logo_icon_name):
5282 (gtk_about_dialog_init): Add missing initializations. (#161646,