1 2005-08-15 Matthias Clasen <mclasen@redhat.com>
3 * gtk/gtksizegroup.c: Use object data to mark widgets and
4 groups as visited, so that we avoid constant extra list
5 traversals. Also allocate quarks in class_init. (#311618,
8 * gtk/gtkicontheme.c (gtk_icon_theme_lookup_icon): Correct the
9 download location for the hicolor icon theme. (#313475, Olexiy
12 * gtk/gtkicontheme.c: Remove debug spew.
14 2005-08-15 Owen Taylor <otaylor@redhat.com>
16 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_back_pixmap):
17 * gdk/win32/gdkwindow-win32.c (gdk_window_set_back_pixmap):
18 * gdk/x11/gdkwindow-x11.c (gdk_window_set_back_pixmap):
19 Handle pixmap == NULL when checking for a colormap.
22 2005-08-14 Matthias Clasen <mclasen@redhat.com>
24 * gtk/updateiconcache.c: Store only one copy of the pixel data
25 for symlinked icons. To achieve this, maintain a hashtable
26 mapping pathnames to pixel data, and share the pixel data for
27 all symlinks resolving to the same pathname. When writing out
28 the image data, write out the pixel data only the first time
29 it is met, and store the offset pointing to the first copy
30 for use in all later cases.
31 This reduces the size of the Bluecurve icon cache from 40
34 2005-08-13 Matthias Clasen <mclasen@redhat.com>
36 * configure.in: Bump version
38 * === Released 2.8.0 ===
42 * configure.in: Require cairo 0.9.2
44 2005-08-12 Matthias Clasen <mclasen@redhat.com>
46 * gtk/gtkcheckmenuitem.c (gtk_real_check_menu_item_draw_indicator):
47 Remove a line without effect.
49 * gtk/gtkicontheme.c: When changing the icon theme, defer
50 the resetting of rc styles to an idle, so that it does
51 not happen e.g during expose handling (which is problematic,
52 since some widgets, like the toolbar, are changing the
53 hierarchy in response to style changes). (#300539, reported
54 by many people, analyzed by Owen Taylor)
56 2005-08-12 Owen Taylor <otaylor@redhat.com>
58 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_back_pixmap)
59 * gdk/win32/gdkwindow-win32.c (gdk_window_set_back_pixmap)
60 * gdk/x11/gdkwindow-x11.c (gdk_window_set_back_pixmap): Warn if
61 gdk_drawable_get_colormap (pixmap) is NULL and return.
63 2005-08-12 Matthias Clasen <mclasen@redhat.com>
65 * configure.in: Bump version to 2.8.0
67 2005-08-11 Matthias Clasen <mclasen@redhat.com>
69 * gtk/gtkfilechooserdefault.c: Work around some problems
70 with the gnome-vfs backends which could lead to crashes
71 in the bookmark handling. (#310270, Diego Gonzalez, patch
74 2005-08-11 Kristian Rietveld <kris@gtk.org>
76 Fix for #312924, by John Finlay.
78 * gtk/gtkliststore.c (gtk_list_store_increment_stamp),
79 (gtk_list_store_clear): increment stamp on store clearance.
81 * gtk/gtktreestore.c (gtk_tree_store_increment_stamp),
82 (gtk_tree_store_clear): ditto.
84 2005-08-11 Kristian Rietveld <kris@gtk.org>
86 * gtk/gtktreeview.c (gtk_tree_view_size_allocate_columns): queue
87 a draw for the entire widget if any column changes width. (Fixes
88 #311026, reported by Frederic Crozat).
90 2005-08-10 J. Ali Harlow <ali@juiblex.co.uk>
92 * configure.in: Revert to linking against pangowin32 under win32
93 platform (Owen Taylor).
95 2005-08-10 J. Ali Harlow <ali@juiblex.co.uk>
97 * gdk/win32/gdkfont-win32.c (gdk_font_from_description_for_display): Make
98 the last change compile.
100 2005-08-10 Matthias Clasen <mclasen@redhat.com>
102 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_deleted)
103 (gtk_tree_model_filter_remove_node): Remove ambiguities pointed
106 2005-08-10 James Henstridge <james@jamesh.id.au>
108 * configure.in: fix definition of GDK_DEP_CFLAGS so that it
109 doesn't cause build failures if $X_PACKAGES is not empty.
111 2005-08-09 Owen Taylor <otaylor@redhat.com>
113 * gdk/gdkwindow.c (gdk_window_ref_cairo_surface): Remove superfluous
114 call to gdk_window_get_offsets (). (#313051, Bertram Felgenhauer)
116 2005-08-09 Owen Taylor <otaylor@redhat.com>
118 * configure.in: Strip out all Xft, FreeType, and pangoxft checking.
119 Rewrite X checks to use pkg-config as much as possible.
121 * gdk/win32/gdkfont-win32.c (gdk_font_from_description_for_display): Make
122 this return Arial always to avoid using PangoWin32FontMap. (X11 backend
123 has always been returned "fixed" for a long time)
125 * gdk/linux-fb/gdkdrawable-fb2.c: Remove draw_glyphs() implementations,
126 fall through to the default implementation in terms of Cairo.
128 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_text): Use gdk_draw_glyphs()
129 on the wrapper rather than gdk_fb_draw_glyphs().
131 2005-08-09 Mark McLoughlin <mark@skynet.ie>
133 Fixes "notification area leaks space" (bug #312687)
135 * gtk/gtksocket-x11.c: (_gtk_socket_windowing_filter_func):
136 gtk/gtkplug.c: (_gtk_plug_add_to_socket): don't pass a
137 detail to g_signal_emit_by_name()
139 2005-08-09 Matthias Clasen <mclasen@redhat.com>
143 2005-08-09 Matthias Clasen <mclasen@redhat.com>
145 * gtk/gtksizegroup.c (get_size_groups, set_size_groups): Use
146 g_quark_from_static_string here.
148 2005-08-08 Christian Persch <chpe@cvs.gnome.org>
150 * gtk/gtkmenutoolbutton.c: (gtk_menu_tool_button_state_changed),
151 (gtk_menu_tool_button_class_init), (popup_menu_under_arrow),
152 (gtk_menu_tool_button_init):
154 Deactivate the menu when the button becomes insensitive, and remove
155 dead code. Fixes bug #312920.
157 2005-08-08 Matthias Clasen <mclasen@redhat.com>
159 * gdk/gdk.symbols: Make the last change compile.
161 2005-08-08 Christian Persch <chpe@cvs.gnome.org>
163 * gtk/gtkmenutoolbutton.c:
164 (gtk_menu_tool_button_construct_contents),
165 (button_state_changed_cb), (menu_position_func),
166 (arrow_button_toggled_cb):
168 Use ->priv instead of GTK_MENU_TOOL_BUTTON_GET_PRIVATE.
169 Surviving part of bug #310589.
171 2005-08-07 Matthias Clasen <mclasen@redhat.com>
173 * gdk/gdk.symbols: Add the gdk_display variable.
176 * gtk/abicheck.sh: Also check exported variables.
178 Fri Aug 5 16:54:19 2005 Søren Sandmann <sandmann@redhat.com>
180 * gtk/gtkmenutoolbutton.c
181 (gtk_menu_tool_button_construct_contents): Set the relief of the
182 arrow button to the value returned by
183 gtk_tool_item_get_relief_style(). Patch from Benjamin Berg.
186 2005-08-04 Sunil Mohan Adapa <sunil@atc.tcs.co.in>
188 * configure.in: Re-added "te" to ALL_LINGUAS after
189 correcting the problem.
191 2005-08-04 Matthias Clasen <mclasen@redhat.com>
193 * configure.in: Require cairo 0.6
195 2005-08-04 Christian Persch <chpe@cvs.gnome.org>
197 * configure.in: Remove "te" since it breaks the build.
199 2005-08-04 Sunil Mohan Adapa <sunil@atc.tcs.co.in>
201 * configure.in: Added "te" to ALL_LINGUAS.
203 2005-08-04 Tor Lillqvist <tml@novell.com>
205 * gtk-zip.sh.in: Reflect the change of the default theme's name to
206 "Raleigh". Include the MS-Windows theme's gtkrc file. Include the
209 2005-08-02 Matthias Clasen <mclasen@redhat.com>
211 * configure.in: Bump version
213 * === Released 2.7.5 ===
215 * configure.in: Bump version
219 2005-08-01 Matthias Clasen <mclasen@redhat.com>
221 * gtk/gtkfixed.c (gtk_fixed_put): Fix a typo, spotted by
224 * gtk/Makefile.am (install-data-local):
225 * gtk/gtksettings.c (gtk_settings_class_init): Rename the
226 default theme to "Raleigh". (#312254, Thomas Wood)
228 * gtk/gtkdnd.c (set_icon_stock_pixbuf): Create the icon window
229 with the correct dimensions. (#312256, Mike Morrison)
231 * gtk/gtktextbuffer.h:
232 * gtk/gtk.symbols: Remove G_GNUC_NULL_TERMINATED here
235 * gtk/gtkuimanager.c (update_node): Update tooltips when
236 reconnecting toolitems. (#312173, Alex Graveley)
238 * gdk/x11/gdkxftdefaults.c: Define the hint styles to make
239 building against fc < 2.2.92 work. (#311839, Damien Carbery)
241 * gdk/x11/gdkevents-x11.c (gdk_check_wm_desktop_changed): Make
242 tracking the on_all_desktops state work better.
244 * gdk/x11/gdkwindow-x11.c (gdk_x11_window_move_to_current_desktop):
245 Don't do anything if the window is on all desktops. (#311803,
248 2005-08-01 Dom Lachowicz <cinamod@hotmail.com>
250 * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Part of #168326
252 2005-08-01 Matthias Clasen <mclasen@redhat.com>
254 * gtk/gtkclipboard.c (gtk_clipboard_set_image)
255 (gtk_clipboard_set_text): Don't leak atom names. (#311933,
258 * gtk/gtkmain.c (do_post_parse_initialization): Call
259 gettext_initialization() here as well. (#311612, Dan Winship)
261 2005-08-01 Tor Lillqvist <tml@novell.com>
263 * gdk/win32/gdkwindow-win32.c (gdk_window_set_urgency_hint):
264 Implement using FlashWindowEx(). (#309423)
266 2005-07-30 Hans Breuer <hans@breuer.org>
268 * gtk/makefile.msc.in tests/makefile.msc : updated
270 2005-07-30 Johan Dahlin <jdahlin@async.com.br>
272 * gtk/gtkctree.c (gtk_ctree_class_init): Do not use |
273 G_PARAM_STATIC_NAME in the type field, makes subclassing possible.
275 2005-07-29 Claudio Saavedra <csaavedra@alumnos.utalca.cl>
277 * docs/reference/gtk/migrating-GtkAction.sgml: Declaring the
278 GtkActionEntry arrays static const. Fixes #301612.
280 2005-07-29 J. Ali Harlow <ali@juiblex.co.uk>
282 * gtk/Makefile.am: Include gtkwin32embed.h in EXTRA_DIST
283 unconditionally. Fixes #311972.
285 2005-07-28 Federico Mena Quintero <federico@ximian.com>
287 * perf/README: Update for the new API of the profiler.
289 * perf/gtkwidgetprofiler.[ch]: New files with a widget profiler
290 object. This is the old content of timers.[ch] turned into a nice
291 object, with signals for creation and reporting. The profiler
292 needs to maintain some state when reusing the widget, so it's
293 useful to turn it into a real object.
295 Break down timing show_all into GTK_WIDGET_PROFILER_REPORT_MAP and
296 GTK_WIDGET_PROFILER_REPORT_EXPOSE.
298 * perf/main.c: Refactor to use GtkWidgetProfiler.
300 * perf/appwindow.c (content_area_new): Make this just create a
301 notebook, instead of a complex arrangement of panes.
303 * perf/widgets.h: New header file for all the "create a widget"
306 * perf/treeview.c: New file. Moved the tree view part from
307 appwindow.c over to here; GtkTreeView really needs its own tests.
308 (tree_view_new): Set the shadow type to IN.
310 * perf/textview.c: Likewise moved over from appwindow.c, but for
312 (text_view_new): Set the shadow type to IN.
314 * perf/Makefile.am (testperf_SOURCES): Add the new source files;
315 remove appwindow.h and timers.[ch].
317 * perf/timers.[ch]: Removed.
319 * perf/appwindow.h: Removed.
321 2005-07-29 Tor Lillqvist <tml@novell.com>
323 * gdk/win32/gdkevents-win32.c: Remove ifdeffed out code relating
324 to the gdk-ping message. Use the global _gdk_display instead of
325 calling gdk_display_get_default() or gdk_drawable_get_display()
326 which would return _gdk_display anyway.
327 (append_event, apply_filters, gdk_event_translate): Drop any
328 GdkDisplay parameter as we only have one display anyway. Use
329 _gdk_display where needed.
330 (gdk_event_apply_filters): Delete, move the code into its only
331 caller, apply_filters().
332 (generate_button_event): Factor out code from two places in
333 gdk_event_translate().
334 (gdk_event_translate): Call generate_button_event() in place of
337 * gdk/win32/gdkevents-win32.c (generate_grab_broken_event): New
338 static function to generate and append the GDK_GRAB_BROKEN events.
339 (gdk_pointer_grab, gdk_keyboard_grab): Generate grab broken events
340 when overriding a grab inside the application, like in the X11
341 backend. Final bits of the fix for #107320, hopefully.
342 (print_event): Handle also GDK_SETTING, GDK_OWNER_CHANGE and
343 GDK_GRAB_BROKEN events.
344 (gdk_event_translate): Call generate_grab_broken_event() in place
347 * gdk/win32/gdkdrawable-win32.c (blit_inside_drawable): Rename
348 from blit_inside_window(), as it now does blitting inside a
349 bitmap, too. No code change, still just call BitBlt().
350 (_gdk_win32_blit): Check for source equalling destination
351 first. (#169508, #131977)
352 Do away with the superfluous local draw_impl variable, the
353 parameter to this function is already a GdkDrawableImplWin32*, no
354 need to copy and cast it.
356 2005-07-28 Robert Ögren <gtk@roboros.com>
358 Avoid spurious core pointer events when the tablet pen is lifted.
361 * gdk/win32/gdkinput-win32.c (set_ignore_core): New static function,
362 handles delayed unsetting of _gdk_input_ignore_core.
363 (_gdk_input_other_event): Call set_ignore_core instead of setting
364 _gdk_input_ignore_core directly.
366 2005-07-28 Dom Lachowicz <cinamod@hotmail.com>
368 * modules/engines/ms-windows/*: Re-sync with gtk-wimp CVS. Notable
369 changes include: menu/toolbars have a gradient applied to them; better
370 handling of menu/toolbar shadows, tracking theme settings;
371 sliders/scales now use XP theming; status bar grippies drawn properly;
372 convincing toolbar grippies are drawn for the Win2k theme; notebook
373 tabs now have that orange stripe across their top; a host of scrollbar
376 2005-07-27 Tor Lillqvist <tml@novell.com>
378 * gdk/win32/gdkmain-win32.c (_gdk_win32_psstyle_to_string): Handle
381 * gdk/win32/gdkmain-win32.c (gdk_screen_get_height_mm): Fix for
382 multi-monitor cases. (#311677, Tim Evans)
384 2005-07-26 Owen Taylor <otaylor@redhat.com>
386 * gtk/gtknotebook.c (gtk_notebook_page_allocate): Fix to be
387 monotonic in the original size (#308145, Morten Welinder)
389 2005-07-26 Elijah Newren <newren@gmail.com>
391 Revert part of patch from #166379; don't have gtk_window_present()
392 change a window's desktop, but rather leave it up to the WM.
395 * gtk/gtkwindow.c (gtk_window_present_with_time): Don't change a
398 2005-07-26 Tor Lillqvist <tml@novell.com>
400 * gtk/gtkplug-win32.c: Declare GetAncestor() and define GA_PARENT
401 if missing (MSVC6). (#311633)
403 2005-07-26 Federico Mena Quintero <federico@ximian.com>
405 * perf/: New directory with the start of a framework for testing
408 * Makefile.am (SRC_SUBDIRS): Added the perf directory.
410 * configure.in (AC_OUTPUT): Generate perf/Makefile.
412 2005-07-26 Matthias Clasen <mclasen@redhat.com>
414 * gtk/gtkfilechooserdefault.c: Fix up includes on Win32.
415 (#311630, Kazuki Iwamoto)
417 * gtk/gtkimcontextsimple.c: Add ISO_Level3_Shift to
418 the list of keysyms to ignore for composition, since
419 AltGr keys produce it in some keyboard layouts. (#307283)
422 * gtk/gtk.symbols: Remove G_GNUC_NULL_TERMINATED from
423 gtk_widget_new as well, pointed out by Kjartan Maraas.
425 2005-07-25 Matthias Clasen <mclasen@redhat.com>
427 * gtk/gtkhsv.c (paint_triangle): Pad out the full width, in
428 an attempt to work around bug #311225.
430 * gtk/gtktreemodelsort.c: Trivial doc fixes.
432 * gtk/gtktreesortable.c: Talk about comparison functions, not
433 sort functions in some places. (#311398, Fabrice Bauzac)
436 * gtk/gtkobject.[hc]:
437 * gtk/gtkfilechooserdialog.[hc]
438 * gtk/gtkdialog.[hc]: Remove the G_GNUC_NULL_TERMINATED marker
439 from a number of varargs functions where we allow to omit the
440 varargs completely. (#311465, Callum McKenzie)
442 2005-07-22 Matthias Clasen <mclasen@redhat.com>
444 * === Released 2.7.4 ===
448 * gtk/gtkmessagedialog.c (gtk_message_dialog_format_secondary_markup):
449 Point out escaping oversight. (#311260, Owen Taylor)
451 2005-07-21 Matthias Clasen <mclasen@redhat.com>
453 * gtk/gtkcombobox.c (gtk_combo_box_list_destroy): Cleanup
454 a possible resize idle. (#311141, Robert Ögren)
456 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_changed):
457 (gtk_tree_model_sort_sort_level): Ref the level while using it,
458 otherwise it may get nuked by gtk_tree_model_sort_increment_stamp.
459 (gtk_tree_model_sort_row_deleted): Don't leak the root level
460 here. (#300089, James Bramford, Markku Vire)
462 2005-07-21 Federico Mena Quintero <federico@ximian.com>
464 * gtk/gtkfilechooser.c (gtk_file_chooser_set_filename): Clarify
465 the usage of this function.
466 (gtk_file_chooser_set_uri): Likewise.
467 (gtk_file_chooser_set_current_name): Likewise.
469 * gtk/gtkfilechooserdefault.c (set_file_system_backend):
470 Instrument this function for profiling as well.
471 (gtk_file_chooser_default_init): Likewise; just to have a marker
472 of where instance initialization begins.
474 2005-07-21 Owen Taylor <otaylor@redhat.com>
476 * gtk/gtkwidget.c (update_pango_context): Fix a couple of leaks.
478 2005-07-21 Christian Rose <menthos@menthos.com>
480 * configure.in: Added "hy" to ALL_LINGUAS.
482 2005-07-21 Matthias Clasen <mclasen@redhat.com>
486 * gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Be
487 a bit more careful to not shrink the label to a negative
488 width. (#311175, Thomas Vander Stichele)
490 * gtk/gtk.symbols: mark gtk_socket_steal as deprecated.
492 * configure.in: Bump the cairo requirement.
494 2005-07-19 Owen Taylor <otaylor@redhat.com>
496 * gtk/gtksettings.c gtk/gtkwidget.c: Change machinery for
497 following font rendering xsettings to set cairo font
498 options on PangoContext
500 * gdk/x11/gdkxftdefaults.c gdk/x11/gdkevents-x11.c gdkscreen-x11.h
501 gdkprivate-x11.h: Get default values for rendering options
502 (such as antialiasing, dpi) from the Xft resources for the
503 display, borrowing a bit of code from Xft.
505 * gtk/gtksettings.c (gtk_settings_class_init): Fix docs for
506 values of gtk-xft-hintstyle.
508 2005-07-21 Tor Lillqvist <tml@novell.com>
510 Make GtkPlug/Socket cross-platform: Add Win32 implementation,
511 splice out X11 implementation to separate files. (#58541)
513 * gtk/gtk.symbols: Make GtkPlug/Socket API available with all
516 * gtk/Makefile.am: Changes to build GtkPlug/Socket with all
520 * gtk/gtkplug.c: Splice out backend-dependend parts to separate
523 * gtk/gtksocketprivate.h
524 * gtk/gtkplugprivate.h: New files. Declare the backend-specific
525 functions, and the private backend-independent functions they call
528 * gtk/gtksocket-stub.c
530 * gtk/gtksocket-x11.c
532 * gtk/gtksocket-win32.c
533 * gtk/gtkplug-win32.c
534 * gtk/gtkwin32embed.h
535 * gtk/gtkwin32embed.c: New files, containing the backend-specific
536 parts of GtkPlug/Socket.
539 * gtk/gtkxembed.c (_gtk_xembed_message_name): New function, used
540 in error messages and debugging output.
542 * gtk/gtkwindow.c (gtk_window_show): No need for ifdef, can now
543 use GTK_IS_PLUG() with all backends.
545 * tests/testsocket_common.c: Make it work on Win32, too.
547 2005-07-21 Tor Lillqvist <tml@novell.com>
549 * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Use
550 wide-char API when available. (#311079, Peter Zelezny)
552 2005-07-21 Matthias Clasen <mclasen@redhat.com>
554 * gtk/gtkwidget.c (gtk_widget_modify_bg, gtk_widget_modify_base):
555 Add hints on how to handle "no window" widgets. (#136347)
557 2005-07-20 Keith Packard <keithp@keithp.com>
559 * gdk/x11/gdkdrawable-x11.c: (gdk_x11_ref_cairo_surface):
561 Follow change in cairo API to add Screen* to
562 cairo_xlib_create_surface_for_bitmap
564 2005-07-20 Matthias Clasen <mclasen@redhat.com>
566 * gtk/gtkicontheme.c (load_svg_at_size): Explicitly use the
567 svg loader, if available. This should help with the fact that
568 svg is not reliably sniffable with the current gdk-pixbuf sniffing
571 * gtk/gtkstyle.c (gtk_default_draw_expander): Make sure expanded
572 expanders are not fuzzy. (#310172, reported by Alexander Larsson,
573 patch by Owen Taylor)
575 * gtk/gtkdnd.c (gtk_drag_begin_internal): Don't fail if we
576 can't get a keyboard grab. (#168351)
578 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_[sg]et_property):
579 Add GTK_FILE_CHOOSER_PROP_DO_OVERWRITE_CONFIRMATION.
581 2005-07-19 Federico Mena Quintero <federico@ximian.com>
583 * gtk/gtkfilechooserdefault.c: Added a few utility functions for
584 profiling; instrument the code, make it conditional.
586 2005-07-19 Kristian Rietveld <kris@gtk.org>
588 * gtk/gtkentry.c (gtk_entry_move_forward_word): don't iterate
589 past the end of the string, so pango_layout_get_cursor_pos() won't
590 complain. (#309211, Tommi Komulainen).
592 2005-07-19 Tor Lillqvist <tml@novell.com>
594 * gtk/gtkmain.c (check_sizeof_GtkWindow, check_sizeof_GtkBox):
595 Don't bother mentioning the -fnative-struct (used by GCC 2) switch
596 in the error message any longer.
598 2005-07-18 Matthias Clasen <mclasen@redhat.com>
600 * gdk/gdkpixbuf-render.c: Small formatting fixes in doc comments.
602 * gtk/gtkcombobox.c (gtk_combo_box_model_row_deleted)
603 (gtk_combo_box_model_row_inserted): Remove useless calls
604 to gtk_tree_row_reference_inserted/deleted, since we
605 don't use manual row references here.
607 * gtk/gtkmain.c (gtk_parse_args, gtk_init_with_args): Call
608 gettext_initialization before checking gtk_initialized, otherwise
609 there are scenarios where it is not called at all. For an
610 example, see tests/testfilechooserbutton.c. (#310323,
613 2005-07-18 Tor Lillqvist <tml@novell.com>
615 * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get): Be sure to remove
616 any possible leftover clipping region in the DC if we don't want
617 any clipping. Thanks to Robert Ögren. (#309823)
619 * configure.in (GDK_EXTRA_LIBS): [Win32] Bypass libtool, use
620 -Wl,-luuid. This avoids a libtool warning as libuuid is static.
622 2005-07-18 Matthias Clasen <mclasen@redhat.com>
624 * gtk/gtkcombobox.c (gtk_combo_box_set_focus_on_click): Propagate
625 the focus-on-click value to the button. (#310543, Christian Persch)
627 * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a note
628 about the need to handle expose events. We really need a chapter
629 on the GTK+ drawing model that we can refer to here... (#310765,
632 2005-07-16 Tor Lillqvist <tml@novell.com>
634 * configure.in (GDK_EXTRA_LIBS): [Win32] Put -luuid back, it is
635 needed in case one builds without the ie55 stuff. (#310582)
637 2005-07-15 Matthias Clasen <mclasen@redhat.com>
639 * configure.in: Bump version
641 * === Released 2.7.3 ===
643 * gdk/gdkdraw.c (gdk_draw_drawable): Add better docs.
644 (#310192, Owen Taylor)
646 2005-07-15 Matthias Clasen <mclasen@redhat.com>
650 * gtk/gtkentry.c (gtk_entry_move_forward_word):
651 (gtk_entry_move_backward_word): Don't treat whitespace as
652 words for keynav, pointed out by Owen Taylor.
654 2005-07-15 Federico Mena Quintero <federico@ximian.com>
656 * gtk/gtkfilechooserdefault.c
657 (should_respond_after_confirm_overwrite): Take the parent folder
658 path instead of the display name, to avoid doing duplicated work
659 in gtk_file_chooser_default_should_respond().
661 2005-07-15 Federico Mena Quintero <federico@ximian.com>
663 * gtk/gtkfilechooserdefault.c
664 (confirm_dialog_should_accept_filename): Take the display name of
665 the folder as well so that we can present a better message. Use a
666 stock cancel button, "_Replace", and GTK_STOCK_SAVE_AS.
667 (gtk_file_chooser_default_should_respond): Pass the file part and
668 folder display name directly to the function above. Oops, only do
669 the confirmation dialog if the file exists.
671 2005-07-15 Federico Mena Quintero <federico@ximian.com>
673 * gtk/gtkfilechooserdefault.c
674 (confirm_dialog_should_accept_filename): Use header capitalization
675 for the buttons, per the HIG.
677 * gtk/gtk.symbols: Add the new functions.
679 * tests/testfilechooser.c (confirm_overwrite_cb): Add a test for
680 the confirm-overwrite signal.
682 * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Remove the
683 stub documentation for the "confirm-overwrite" signal.
684 (gtk_file_chooser_set_do_overwrite_confirmation): Add "Since: 2.8"
686 (gtk_file_chooser_get_do_overwrite_confirmation): Likewise.
688 2005-07-14 Federico Mena Quintero <federico@ximian.com>
690 Add overwrite confirmation for SAVE mode. Fixes bug #152850:
692 * gtk/gtkfilechooser.h: Add prototypes for
693 gtk_file_chooser_set/get_do_overwrite_confirmation().
694 (GtkFileChooserConfirmation): New enum for the result of the
695 "confirm-overwrite" signal.
697 * gtk/gtkmarshalers.list: Add ENUM:VOID.
699 * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Add a
700 "do-overwrite-confirmation" boolean property.
701 (gtk_file_chooser_set_do_overwrite_confirmation): Implement.
702 (gtk_file_chooser_get_do_overwrite_confirmation): Implement.
703 (confirm_overwrite_accumulator): New accumulator for the signal.
705 * gtk/gtkfilechooserutils.h (GtkFileChooserProp): Add
706 GTK_FILE_CHOOSER_PROP_DO_OVERWRITE_CONFIRMATION.
708 * gtk/gtkfilechooserutils.c
709 (_gtk_file_chooser_install_properties): Override the
710 do-overwrite-confirmation property.
712 * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserIface): Add a
713 confirm_overwrite signal to the vtable.
715 * gtk/gtkfilechooserdefault.c
716 (gtk_file_chooser_default_set_property): Handle the new property.
717 (gtk_file_chooser_default_get_property): Likewise.
718 (get_selected_file_info_from_file_list): New helper function; code
719 taken from list_selection_changed().
720 (list_selection_changed): Use get_selected_file_info_from_file_list().
721 (should_respond_after_confirm_overwrite): New function.
722 (gtk_file_chooser_default_should_respond): Confirm when necessary.
724 2005-07-14 Matthias Clasen <mclasen@redhat.com>
726 * gtk/gtk.symbols: Add new exported symbols.
728 2005-07-14 Tor Lillqvist <tml@novell.com>
730 * gtk/gtkfilesystemwin32.c (filename_get_info): Implement getting
731 the MIME type of a file. Look it up in the Registry. Bug reported
734 2005-07-14 Tor Lillqvist <tml@novell.com>
736 * configure.in (GDK_EXTRA_LIBS): Don't need -luuid on Win32. It
737 was some leftover, and in fact occasionally caused issues with
738 libtool as it made its way into the libgdk-win32-2.0.la file and
739 that way into the .la files of all libraries that depend on
740 GDK. (This happened only when building from CVS and not using a
741 full "make install" which would run the sanitize-la.sh script.)
743 2005-07-14 Matthias Clasen <mclasen@redhat.com>
745 * gdk/x11/gdkevents-x11.c (set_screen_from_root): Don't assert if
746 the xrootwin is invalid. (#309997, Barbie LeVille)
747 (gdk_event_translate): Ignore events with an invalid root field.
749 * configure.in: Set interface age to 0.
751 * gtk/gtkimmodule.h: Move G_BEGIN_DECLS to the right spot, noticed
754 2005-07-14 Kristian Rietveld <kris@gtk.org>
756 * gtk/gtktreeviewcolumn.[ch] (gtk_tree_view_column_queue_resize): new
757 function (fixes #169961, reported by Morten Welinder).
759 2005-07-14 Kristian Rietveld <kris@gtk.org>
761 * gtk/gtktreeview.[ch] (gtk_tree_view_get_visible_range): new
762 function. (fixes #105252, suggestion from Mikael Hallendal).
764 2005-07-13 Manish Singh <yosh@gimp.org>
766 * demos/gtk-demo/iconview_edit.c: remove unused variable.
768 2005-07-13 Kristian Rietveld <kris@gtk.org>
770 * gtk/gtktreemodel.[ch] (gtk_tree_row_reference_get_model): new
771 function. (#160879, Stefan Kost).
773 2005-07-13 Kristian Rietveld <kris@gtk.org>
775 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): paint a flat box
776 on the area the treeview got allocated extra vertically (fixes
777 #142063, reported by Brian Bober).
779 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
780 make this function calculate real_cell_area and real_background_area
781 correctly. (fixes #309249, reported by Bernd Demian).
783 2005-07-13 Matthias Clasen <mclasen@redhat.com>
785 * gtk/gtkcalendar.c (calendar_realize_arrows): Fix an
786 unintentional case of width-for-height... (#310133, Luis Villa)
788 2005-07-13 Kristian Rietveld <kris@gtk.org>
790 * gtk/gtktreeview.c (gtk_tree_view_new_column_width): let's take
791 the MIN of width and max_width here, not width and max_width != -1.
792 (fixes #144480, reported by Mikael Magnusson).
794 2005-07-13 Matthias Clasen <mclasen@redhat.com>
796 * gtk/gtkicontheme.c (load_themes): Don't keep the caches
797 for unthemed directories in a separate list, instead append
798 them at the end of the dir_mtimes list, so that we can check
799 them for staleness like the other caches. (#310221, Mark
802 * configure.in: Check that we have a new enough Cairo.
804 2005-07-13 Robert Ögren <gtk@roboros.com>
806 Fix handling of Aiptek and Aiptek-like graphical tablets such as Trust
807 on Windows. (#167004, thanks to "pnohant" for testing)
809 Code cleanup: Remove the unused and unmaintained code for using a
810 non-system tablet context (USE_SYSCONTEXT ifdef:s), suggested
813 * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Handle
814 tablet drivers that don't support WTI_DDCTXS/WTI_DSCTXS gracefully.
815 Sligthly reorganize and simplify the code to support this.
816 (_gdk_input_wintab_init_check, _gdk_input_other_event): Remove
817 USE_SYSCONTEXT ifdef:s and the code for the case it was not defined.
818 (gdk_input_window_find_within): Removed.
820 2005-07-13 Matthias Clasen <mclasen@redhat.com>
822 * gdk/win32/bdfcursor.c: Add Copyright/License information.
824 2005-07-13 Kristian Rietveld <kris@gtk.org>
826 * gtk/gtktreeview.c (validate_row): when !separator, don't add
827 the focus_line_width to width/height (happens in
828 _column_cell_get_size), but do add the vertical-separator to height,
829 we weren't taking this into account before.
831 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
832 take vertical-separator into account. (#309137, Ross Burton).
834 2005-07-13 Matthias Clasen <mclasen@redhat.com>
836 * tests/treestoretest.c:
837 * tests/testxinerama.c:
838 * tests/testtreeview.c:
839 * tests/testtreefocus.c:
840 * tests/testtreeflow.c:
841 * tests/testtreeedit.c:
842 * tests/testtreecolumns.c:
844 * tests/testtextbuffer.c:
845 * tests/testspinbutton.c:
846 * tests/testsocket_common.c:
847 * tests/testsocket_child.c:
848 * tests/testsocket.c:
849 * tests/testmultiscreen.c:
850 * tests/testmultidisplay.c:
853 * tests/testmenubars.c:
854 * tests/testicontheme.c:
855 * tests/testfilechooser.c:
856 * tests/testentrycompletion.c:
858 * tests/testcombochange.c:
859 * tests/testactions.c:
863 * gtk/gtktexttypes.h:
864 * gtk/gtktexttypes.c:
865 * gtk/gtktexttagprivate.h:
866 * gtk/gtktextsegment.h:
867 * gtk/gtktextiterprivate.h:
868 * gtk/gtktextchildprivate.h:
869 * gtk/gtktextbtree.h: Add Copyright/License information.
871 * gtk/gtkicontheme.c (gtk_icon_theme_get_default)
872 (gtk_icon_theme_get_for_screen): Add a warning about
873 unreffing icon themes. (#310163, Rodney Dawes)
875 2005-07-13 Kristian Rietveld <kris@gtk.org>
877 * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): quit
878 maintaining the iter on every iteration, only get the iter when
879 we are about to call the foreach_func. Gives us a 10x speedup,
880 since maintaining iters is a lot more expensive than maintaining
881 paths. We lose a bit of sanity checking though. Thanks go to
882 Billy Biggs for pointing this out.
884 2005-07-12 Matthias Clasen <mclasen@redhat.com>
886 * tests/testcairo.c (draw): Fix the same confusion here, too.
888 * gdk/gdkgc.c (make_stipple_tile_surface): Fix
889 cairo_content_t <-> cairo_format_t confusion. (#310086,
890 Carlos Garnacho Parro)
892 * gtk/gtkfilesystemunix.c
893 (gtk_file_system_unix_volume_get_display_name): Follow
894 the Nautilus change and rename "Filesystem" to "File System",
895 string change. (#310047, Vincent Noel)
897 2005-07-12 Matthias Clasen <mclasen@redhat.com>
899 * demos/gtk-demo/iconview.c: Rename this demo.
901 * demos/gtk-demo/iconview_edit.c: Add a demo for icon view
902 editing and drag-and-drop.
904 * demos/gtk-demo/geninclude.pl.in: Accept dashes in demo titles.
906 2005-07-12 Matthias Clasen <mclasen@redhat.com>
908 * gtk/theme-bits/decompose-bits.c:
909 * gtk/gtkfilechooserembed.c:
910 * gtk/gtktextmarkprivate.h:
911 * gtk/gtktexttagtable.h:
912 * gtk/gtktexttagtable.c:
913 * gtk/gtkrc.key.emacs: Add Copyright/License information.
915 * gdk/linux-fb/gdkrender-fb.c:
916 * gdk/linux-fb/gdkpango-fb.c:
917 * gdk/linux-fb/gdkdrawable-fb2.c:
918 * gdk/linux-fb/gdkgc-fb.c:
919 * gdk/linux-fb/gdkfbswitch.c: Add Copyright/License information.
923 * gdk/gdkselection.h:
924 * gdk/gdkselection.c:
938 * gdk/gdkcolor.h: Add Copyright/License information.
940 2005-07-11 Matthias Clasen <mclasen@redhat.com>
942 * modules/input/imm-extra.h: Add Copyright/License information.
944 2005-07-11 Matthias Clasen <mclasen@redhat.com>
946 * gtk/gtktexttag.c (gtk_text_tag_class_init)
947 (gtk_text_tag_set_property): Remove the runtime warning about
948 the invisible property, add a warning about possible remaining
949 problems to the documentation of the property. (#66194)
951 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Don't
952 ever go unconditionally to the buffer ends; that doesn't work
953 if the initial or final portion of the buffer are invisible.
955 2005-07-11 Kristian Rietveld <kris@gtk.org>
957 * gtk/gtktreeview.c (gtk_tree_view_class_init): add binding entry
958 for ctrl + backspace (move focus to parent without affecting
960 (gtk_tree_view_real_select_cursor_parent): implement ctrl+backspace
961 and simplify the function a bit. (#309296, Kathy Fernandes).
963 2005-07-11 Matthias Clasen <mclasen@redhat.com>
965 Make gtk_window_present() move the window to the current
966 desktop, instead of letting the WM change the current
967 desktop to where the window is. (#166379, Elijah Newren)
971 * gdk/x11/gdkwindow-x11.c (gdk_x11_window_move_to_current_desktop):
972 New function to move a window to the current desktop.
974 * gtk/gtkwindow.c (gtk_window_present_with_time): Move the
975 window to the current desktop before giving it focus.
977 2005-07-11 Matthias Clasen <mclasen@redhat.com>
979 When dragging text, use a drag icon showing the (ellipsized)
980 text that is being dragged: (#161132, Kevin Duffus, patch
981 by Carlos Garnacho Parro)
984 * gtk/gtktextutil.c (_gtk_text_util_create_drag_icon): Add
985 a function to create a pixmap for use when dragging text.
987 * gtk/gtktextview.c (gtk_text_view_start_selection_dnd):
988 * gtk/gtklabel.c (gtk_label_motion):
989 * gtk/gtkentry.c (gtk_entry_motion_notify): Use a drag icon
990 showing the text being dragged.
992 2005-07-11 Matthias Clasen <mclasen@redhat.com>
994 * gtk/gtkentry.c (gtk_entry_move_forward_word)
995 (gtk_entry_move_backward_word): Match the text view change
996 to allow selecting whitespace with double-click.
998 * gtk/gtktextview.c (extend_selection): Make double-clicking
999 between words select whitespace. (#309860, Mike Miller, patch
1002 * gtk/gtkiconview.c: Documentation improvements. (#309946,
1005 2005-07-10 Kristian Rietveld <kris@gtk.org>
1007 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): remove
1008 unneeded check for negative window_y.
1010 2005-07-10 Kristian Rietveld <kris@gtk.org>
1012 * gtk/gtktreeview.c (gtk_tree_view_search_key_press_event): also move
1013 to the next match when ctrl+g is pressed. (#156657, Matt T. Proud).
1015 2005-07-10 Kristian Rietveld <kris@gtk.org>
1017 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): rework
1018 function to make page up/down behave the same as in GtkTextView.
1019 (Fixes #101220, Owen Taylor).
1021 2005-07-09 Kristian Rietveld <kris@gtk.org>
1023 Fix #305737, patch from Tomislav Jonjic. This makes the
1024 gtk_tree_store_insert* family of functions emit row_has_child_toggled
1025 when needed (they didn't do that before).
1027 * gtk/gtktreestore.c (gtk_tree_store_insert): emit
1028 row_has_child_toggled when needed,
1029 (gtk_tree_store_insert_before): fix a possible memleak,
1030 emit row_has_child_toggled when needed,
1031 (gtk_tree_store_insert_after): ditto.
1033 2005-07-09 Kristian Rietveld <kris@gtk.org>
1035 * gtk/gtktreeview.c (gtk_tree_view_real_expand_row): when
1036 open_all is TRUE, traverse the newly built tree to emit
1037 row_expanded for the subitems. (rev 1.444, patch in #172319
1038 broke this). Fixes #305582, reported by Billy Biggs.
1040 2005-07-09 Tor Lillqvist <tml@novell.com>
1042 * configure.in: Look for windres on Win32. Drop build/* from
1045 * Makefile.am: Drop build from SUBDIRS.
1047 * gdk/win32/rc/Makefile.am
1049 * gtk/Makefile.am: Don't use the scripts in build/win32 to compile
1050 the rc files into resource object files. (This means we lose the
1051 build number increment magic, but I doubt it was that useful
1052 anyway.) Instead use windres directly. To pass a normal .o file
1053 produced by windres through libtool, which would want a .lo file,
1054 pass it directly to the linker using a -Wl option.
1056 * gdk/win32/rc/gdk.rc.in
1057 * gtk/gtk-win32.rc.in: Replace BUILDNUMBER with 0.
1059 2005-07-08 Kristian Rietveld <kris@gtk.org>
1061 Fixes #165034, reported by Jorn Baayen.
1063 * gtk/gtkrbtree.[ch] (_gtk_rbtree_set_fixed_height): add a
1064 mark_valid parameter (so we can mark all nodes as valid when we
1065 are setting them to the fixed height).
1067 * gtk/gtktreeview.c (initialized_fixed_height_mode): mark all
1068 nodes as valid when setting the fixed height,
1069 (do_validate_rows): update call to _set_fixed_height,
1070 (gtk_tree_view_row_inserted): mark node as valid when fixed
1071 height mode is enabled and a height has been set,
1072 (gtk_tree_view_build_tree): if fixed height mode is enabled,
1073 mark new nodes as valid in addition to setting the height.
1075 2005-07-08 Matthias Clasen <mclasen@redhat.com>
1077 * configure.in: Bump version
1079 * === Released 2.7.2 ===
1083 * gtk/gtkcelllayout.c (gtk_cell_layout_pack_start):
1084 (gtk_cell_layout_pack_end): Add a note about reusing cell
1087 * gtk/gtkdnd.c (gtk_drag_update_cursor): Pass a GdkDragAction to
1088 gtk_drag_get_cursor. (#309784, Sebastien Bacher)
1090 2005-07-08 Tor Lillqvist <tml@novell.com>
1092 * gtk/gtkfilesel.c: Use g_get_host_name().
1094 2005-07-07 Matthias Clasen <mclasen@redhat.com>
1096 * configure.in: Add -DHPPEX -DSHMLINK to CFLAGS for HP-UX.
1097 (#162979, Paul Cornett)
1099 * gtk/gtkhscale.c (gtk_hscale_new_with_range):
1100 (gtk_vscale_new_with_range): Add some additional docs on
1101 precision here too. (#309238, Steve Chaplin)
1103 * gdk/x11/gdkmain-x11.c (generate_grab_broken_event): Don't
1104 generate events on destroyed windows.
1106 Implement Drag-and-Drop to the file list. (#145121, Sven Neumann)
1108 * gtk/gtkfilechooserdefault.c (file_list_drag_data_received_cb)
1109 (file_list_drag_drop_cb, file_list_drag_motion_cb): New functions
1110 to handle drag-and-drop on the file list.
1111 (create_file_list): Set up drag-and-drop handlers on the file list.
1113 2005-07-07 Matthias Clasen <mclasen@redhat.com>
1115 Fix #157787, reported by Jonathan Blandford:
1117 * gtk/gtkfilechooserdefault.c
1118 (gtk_file_chooser_default_set_current_folder): Don't leave a
1119 "trail" behind when set_current_folder is called explicitly.
1120 (gtk_file_chooser_default_update_current_folder): New function
1121 that is called to update the current folder in response to
1124 * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Add a boolean
1125 keep_trail argument, and don't leave a "trail" behind unless
1128 2005-07-06 Manish Singh <yosh@gimp.org>
1130 * demos/gtk-demo/menus.c: change_orientation() should return void,
1131 remove unused variable in do_menus().
1133 2005-07-06 Tor Lillqvist <tml@novell.com>
1135 * gdk/win32/gdkcursor-win32.c
1136 (gdk_win32_icon_to_pixbuf_libgtk_only): Don't create the GdkPixbuf
1137 until we know that we have something to put in it.
1139 2005-07-05 Matthias Clasen <mclasen@redhat.com>
1141 * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range): Add some
1142 additional docs on precision. (#309238, Steve Chaplin)
1144 * modules/input/imime.c: Fix includes. (#309462, Kazuki IWAMOTO)
1146 2005-07-05 Matthias Clasen <mclasen@redhat.com>
1148 * doc/tools/widgets.c: Actually generate a file-button
1151 2005-07-06 Tor Lillqvist <tml@novell.com>
1153 * gdk/win32/gdkcursor-win32.c: Add comment about the current named
1154 cursor implementation, and what it maybe really should do.
1155 (gdk_win32_icon_to_pixbuf_libgtk_only): New function, code moved
1156 here from gtk/gtkfilesystemwin32.c:extract_icon().
1157 (gdk_cursor_get_image): Use
1158 gdk_win32_icon_to_pixbuf_libgtk_only().
1161 * gdk/win32/gdkwin32.h: Declare gdk_win32_icon_to_pixbuf_libgtk_only().
1163 * gtk/gtkfilesystemwin32.c (extract_icon): Use
1164 gdk_win32_icon_to_pixbuf_libgtk_only().
1166 2005-07-05 Matthias Clasen <mclasen@redhat.com>
1168 * gtk/gtkmenu.c (gtk_menu_grab_notify): Take window
1169 groups into account. (#309473, Diego Gonzalez)
1171 * gtk/gtkwindow.[hc]: Add a non-exported function to
1172 get the grab widget of a window group.
1174 2005-07-05 Kristian Rietveld <kris@gtk.org>
1176 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): in the
1177 'main' expose loop, add back the calls to _set_cell_data
1178 removed earlier. (#309221, Matthias Clasen).
1180 2005-07-05 Matthias Clasen <mclasen@redhat.com>
1182 * demos/gtk-demo/menus.c: Demonstrate vertical menubars.
1185 * gtk/gtkaboutdialog.[hc]: Add a wrap-license property
1186 with getter and setter. (#165012, Christian Rose,
1187 based on a patch by Christian Persch)
1189 2005-07-05 Matthias Clasen <mclasen@redhat.com>
1191 * gdk/Makefile.am: Distribute the keyname-table.h header
1192 and the files that are used to construct it. (#309421,
1195 2005-07-04 Matthias Clasen <mclasen@redhat.com>
1197 * gtk/gtkmenubar.c (gtk_menu_bar_set_pack_direction)
1198 (gtk_menu_bar_set_child_pack_direction): Queue a resize
1199 on the contained menuitems as well.
1201 * demos/gtk-demo/appwindow.c: Break some overlong lines.
1203 2005-07-03 Hans Breuer <hans@breuer.org>
1205 * **/makefile.msc[.in] : updated
1206 * gtk/gtkiconcache.c : <io.h> for open()
1207 * gtk/gtkstyle.c : use G_PI instead of M_PI
1209 * gdk/win32/gdkcursor-win32.c : implement gdk_cursor_new_from_name()
1210 by mapping the lower case win32 api name to the respective cursor.
1211 E.g. pass "wait" to get the IDC_WAIT cursor. Also allows to load
1212 cursors from named resources in the executable.
1213 (gdk_cursor_get_image) : just return NULL for now.
1215 * gdk/win32/gdkgeometry-win32.c : implement gdk_window_move_region()
1216 by delegation to ScollWindowEx(), untested.
1218 * gdk/win32/gdkwindow-win32.c : stub for gdk_window_set_urgency_hint()
1220 2005-07-03 Matthias Clasen <mclasen@redhat.com>
1222 * gtk/gtkimagemenuitem.c: Hmm, when committing my vertical
1223 menubar patch, I forgot the GtkImageMenuItem changes. And I
1224 managed to do 2 releases without noticing that...
1226 * gtk/gtksettings.c (gtk_settings_class_init): Correct the
1227 blurb for the icon-sizes setting. String change.
1228 (#309355, Benjamin Berg)
1230 2005-07-01 Matthias Clasen <mclasen@redhat.com>
1232 * configure.in: Bump version.
1234 * === Released 2.7.1 ===
1238 2005-07-01 Matthias Clasen <mclasen@redhat.com>
1240 * gtk/gtkfilesel.c (cmpl_init_state): Prevent an infinite
1241 loop when G_FILENAME_ENCODING is invalid. (#309280, Padraig Brady)
1243 Thu Jun 30 14:17:24 2005 Manish Singh <yosh@gimp.org>
1245 * gdk/x11/gdkprivate-x11.h: declare _gdk_xgrab_check_button_event.
1247 * gtk/gtkbutton.c: fix signature of gtk_button_grab_broken.
1249 2005-06-30 Matthias Clasen <mclasen@redhat.com>
1251 * gdk/x11/gdkvisual-x11.c (gdk_visual_decompose_mask): Avoid
1252 infinite loop if a mask is zero. (#309222, David Saxton)
1254 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_fetch_child):
1255 Clarify the code, gcc 4 complains about predecrement in MAX().
1257 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize): Don't
1258 prematurely unregister callbacks.
1262 2005-06-29 Matthias Clasen <mclasen@redhat.com>
1264 * gtk/gtkbutton.c (gtk_button_grab_broken): Handle broken
1267 * gtk/gtkrange.c (gtk_range_grab_broken): Handle broken
1270 * gdk/gdkevents.h: Add a boolean to specify wether the broken
1273 * gdk/x11/gdkdisplay-x11.c (gdk_display_pointer_is_grabbed):
1274 As the documentation states, don't return TRUE for
1277 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
1278 a boolean field to store wether a pointer grab is implicit.
1280 * gdk/x11/gdkmain-x11.c (_gdk_xgrab_check_button_event):
1281 Track implicit grabs.
1283 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Call
1284 _gdk_xgrab_check_button_event for button events.
1286 2005-06-28 Matthias Clasen <mclasen@redhat.com>
1288 * gtk/gtkiconview.c (gtk_icon_view_calculate_item_size2):
1289 Make sure that cell boxes are always completely inside
1292 2005-06-27 Matthias Clasen <mclasen@redhat.com>
1294 * demos/gtk-demo/main.c (create_tree): Make the list of
1297 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end):
1298 Fix positioning at the end of the line for lines ending
1299 in invisible characters.
1300 (gtk_text_layout_get_line_display): Set display->layout
1301 to a PangoLayout, even for totally invisible lines.
1303 * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Ignore
1304 GrabBroken events which are caused by overgrabbing inside
1305 the application; menus rely on these for their operation.
1307 * gdk/gdkevents.h (struct _GdkEventGrabBroken): Add a
1310 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Set
1311 grab_window to NULL when generating GrabBroken events for
1312 WM_KILLFOCUS messages.
1314 * gdk/x11/gdkmain-x11.c (_gdk_xgrab_check_unmap)
1315 (_gdk_xgrab_check_destroy): Set grab_window to NULL when
1316 generating GrabBroken events when the grab window becomes
1317 unviewable or is destroyed.
1319 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab, gdk_keyboard_grab):
1320 Generate GrabBroken events when overriding a grab inside
1321 the application. In this case, set grab_window to the new
1324 2005-06-27 Matthias Clasen <mclasen@redhat.com>
1326 * gtk/gtkbutton.c (gtk_real_button_activate): Continue
1327 to activate even if we can't grab the keyboard.
1328 (gtk_button_finish_activate): Only ungrab when we have
1329 a keyboard grab. (#172998, William Jon McCann)
1331 2005-06-27 Matthias Clasen <mclasen@redhat.com>
1333 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
1334 Avoid a segfault. (#309054)
1336 2005-06-27 Matthias Clasen <mclasen@redhat.com>
1338 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
1339 fields for grab timestamps.
1341 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab, gdk_keyboard_grab):
1342 Store grab timestamps when grabbing.
1344 * gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard_ungrab)
1345 (gdk_display_pointer_ungrab): Don't unset the grab_window
1346 if the timestamps indicate that the ungrab will fails.
1348 * gtk/gtkmenu.c (gtk_menu_grab_notify): Cancel menus when
1349 they are grab-shadowed by something thats not a
1350 submenu. (#145416, Euan MacGregor)
1352 2005-06-27 Owen Taylor <otaylor@redhat.com>
1354 * gtk/gtk[hv]ruler.c (gtk_[hv]ruler_draw_ticks):
1357 2005-06-27 Kjartan Maraas <kmaraas@gnome.org>
1359 * gtk/gtkhruler.c: (gtk_hruler_draw_ticks): Fix leaks
1360 * gtk/gtkvruler.c: (gtk_vruler_draw_ticks): Same
1363 2005-06-27 Matthias Clasen <mclasen@redhat.com>
1365 * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Use
1368 * configure.in: Require GLib 2.7.1
1370 2005-06-26 Matthias Clasen <mclasen@redhat.com>
1372 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
1373 Unregister XIM callbacks here. (#309054)
1375 * modules/input/gtkimcontextxim.h: Small cleanup.
1377 * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
1378 scroll offset when drawing the box. (#308834, Tom von
1381 2005-06-26 Tor Lillqvist <tml@novell.com>
1384 * gtk/Makefile.am: Current GNU tools do understand the PRIVATE
1385 keyword, so no need to remove those entries from the import
1386 library. libtool installs the .dll.a import library itself, so no
1387 need to do it here. Install the .def file.
1389 Sun Jun 26 00:04:36 2005 Manish Singh <yosh@gimp.org>
1391 * gdk/gdkevents.c (gdk_event_get_time, gdk_event_get_state): add
1392 GDK_GRAB_BROKEN to the switch cases.
1394 * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): remove unused
1397 * gtk/gtkpaned.c (gtk_paned_grab_broken): return TRUE.
1399 2005-06-26 Matthias Clasen <mclasen@redhat.com>
1401 * gtk/gtktreeview.c (gtk_tree_view_grab_broken): Stop column
1402 header drag operations if the grab is broken.
1404 * gtk/gtkhsv.c (gtk_hsv_grab_broken): Stop the drag if
1407 * gtk/gtkcombobox.c (gtk_combo_box_popdown): Don't do
1408 explicitly ungrab pointer and keyboard. We're unmapping
1409 the grab window anyway.
1410 (gtk_combo_box_popup): Handle grab failures.
1412 2005-06-25 Matthias Clasen <mclasen@redhat.com>
1414 * gdk/x11/gdkmain-x11.c (gdk_keyboard_grab, gdk_pointer_grab):
1415 Don't emit grab-broken for overgrabbing, until we figure
1416 out how to do that without breaking the menu code.
1418 2005-06-25 Matthias Clasen <mclasen@redhat.com>
1420 Add a GrabBroken event to GDK, and a grab-broken-event
1421 signal to GtkWidget. (#107320, Simon Cooke, initial patch
1424 * gdk/gdkevents.h: Add a GDK_GRAB_BROKEN event type,
1425 define a GdkEventGrabBroken event struct.
1427 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
1428 Generate GrabBroken events in response to WM_KILLFOCUS.
1430 * gdk/x11/gdkmain-x11.c: Generate GrabBroken events
1431 when a grab is broken by the window becoming unviewable,
1432 or by another grab from the same client.
1434 * gtk/gtkwidget.h (GtkWidgetClass): Add grab_broken_event.
1436 * gtk/gtkwidget.c (gtk_widget_event_internal): Translate
1437 GrabBroken events into grab_broken_event signals.
1439 * gtk/gtkmain.c (gtk_main_do_event): Propagate GrabBroken
1442 * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Deactivate
1443 the menu when the grab is broken.
1445 * gtk/gtkcolorsel.c (gtk_color_selection_grab_broken): Stop
1446 the color picker if the grab is broken.
1448 * gtk/gtkpaned.c (gtk_paned_grab_broken): Stop the drag if
1451 2005-06-25 Matthias Clasen <mclasen@redhat.com>
1453 Add some new stock items. (#166480, Kristof Vansant)
1455 * gtk/stock-icons/stock_fullscreen_16.png:
1456 * gtk/stock-icons/stock_fullscreen_24.png:
1457 * gtk/stock-icons/stock_leave_fullscreen_16.png:
1458 * gtk/stock-icons/stock_leave_fullscreen_24.png:
1459 * gtk/stock-icons/stock_info_16.png:
1460 * gtk/stock-icons/stock_info_24.png: New icons.
1462 * gtk/stock-icons/Makefile.am: Add new icons.
1464 * gtk/gtkstock.h: Define names for the new icons.
1466 * gtk/gtkstock.c (builtin_items): Register new stock items.
1468 * gtk/gtkiconfactory.c (get_default_icons): Register new
1471 2005-06-24 Owen Taylor <otaylor@redhat.com>
1473 * gdk/gdkrgb.c (gdk_rgb_select_conv): Fix up selection of
1474 conversion functions for MSB machines: convert_0888[_br]
1475 now work on bytes so are endian independent.
1476 (Reported by David Zeuthen)
1478 2005-06-24 Matthias Clasen <mclasen@redhat.com>
1480 * gtk/gtktextview.c (gtk_text_view_scroll_hpages): Don't
1481 jump to the next line if we are at the end of the line.
1482 (gtk_text_view_move_cursor_internal): Make movement by
1483 paragraphs up/down symmetric. (#307055, Behnam Esfahbod)
1485 2005-06-23 Tor Lillqvist <tml@novell.com>
1487 Improve and simplify line segment rendering on Win32, especially
1488 the implementation of GDK_CAP_NOT_LAST, and dashed lines. Fixes
1489 bugs #306396 and #308413.
1491 * gdk/win32/gdkprivate-win32.h (GdkGCWin32): Save the GdkGC's
1492 line_style, cap_style and join_style as such in the
1493 GdkGCWin32. Don't need to keep the pen_double_dash flag, we can
1494 check the line_style.
1496 * gdk/win32/gdkgc-win32.c (fixup_pen): New internal function. Sets
1497 up the GDI pen type, style, end cap and join attributes to use
1498 based on the pen width, GDK line style, end cap style, and join
1501 For a narrow (zero-width) GDK pen with the GDK_CAP_NOT_LAST end
1502 cap style, which typically are used for XOR drawing where it is
1503 essential that the last pixel is not drawn, use a GDI cosmetic
1504 pen. Only for a cosmetic pen does GDI not draw the last pixel. I
1505 deduced this by experimetation, the documentation is rather vague.
1507 For other GDK pens use a geometric GDI pen. If the width is 0 or 1
1508 and the GDK end cap style is GDK_CAP_BUTT, and the line style is
1509 GDK_LINE_SOLID, use PS_ENDCAP_ROUND. This ensures that also
1510 single-pixel length lines are drawn. (For sngle-pixel width lines
1511 roundness as such is of course irrelevant.) For dashed lines, use
1514 For wide lines use PS_ENDCAP_FLAT, _ROUND or _SQUARE,
1515 respectively, for GDK_CAP_BUTT, GDK_CAP_ROUND and GDK_CAP_PROJECTING.
1517 For one pixel on-off dashed lines, use PS_ALTERNATE, it seems to
1518 work better than PS_USERSTYLE. For other dashed lines, use
1519 PS_USERSTYLE and the dashes as set by the user (or the default
1520 four-pixel on-off style).
1522 (gdk_win32_gc_values_to_win32values, gdk_win32_gc_set_dashes):
1523 Call fixup_pen() to do the pen settings after modifying some of
1524 the GDK GC attributes that affect pens.
1526 * gdk/win32/gdkdrawable-win32.c (render_line_horizontal,
1527 render_line_vertical, draw_segments): Check GdkGCWin32::line_style
1528 instead of the the removed pen_double_dash member. Don't use
1529 PATCOPY unconditionally in the PatBlt() call, use a raster op
1530 code that depends on the GC function in use.
1532 (draw_rectangle, draw_segments, draw_lines): Be more careful in
1533 deciding when to do the manual dash rendering.
1535 (draw_segments): Don't do any manual "last point" drawing at
1536 all. The above changes takes care of narrow line segments being
1537 drawn correctly in most cases, at least on NT-based Windows.
1539 2005-06-23 Matthias Clasen <mclasen@redhat.com>
1541 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder):
1542 Fix an error in the cache timeout logic. (#166601, Morten
1545 * gtk/gtktreeview.c (gtk_tree_view_key_press): Change the
1546 keynav for header reordering and resizing to Alt-arrows and
1547 Shift-Alt-arrows, following a proposal by the keynav
1548 authority. (#308666, Calum Benson)
1550 * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Remove
1551 a leftover debugging envvar.
1553 2005-06-23 Owen Taylor <otaylor@redhat.com>
1555 * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix the
1556 big endian case for 3-channel source. (Reported by
1559 2005-06-23 Matthias Clasen <mclasen@redhat.com>
1561 * gtk/gtkbutton.c (gtk_button_construct_child): Don't
1562 trigger warnings if there are extra references to the
1563 hbox. (#308677, Dan Winship)
1565 * gtk/gtkfilesystemunix.c (bookmark_list_write): Use
1566 g_file_set_contents(). (#308722, Morten Welinder)
1568 2005-06-22 Matthias Clasen <mclasen@redhat.com>
1570 * gdk/x11/gdkdnd-x11.c (xdnd_finished_filter): Set the
1571 time field in the event. (#308573, Morten Welinder)
1573 * gtk/gtkfilesystemunix.c: Remove gratitious differences
1574 between the stable branch and HEAD, which sneaked in with
1575 the bookmark renaming.
1577 2005-06-22 Kjartan Maraas <kmaraas@gnome.org>
1579 * gtk/gtkhsv.c: (gtk_hsv_expose): Don't leak the cairo context
1582 2005-06-21 Matthias Clasen <mclasen@redhat.com>
1587 * gtk/gtkpixmap.c: Modify all of the GtkMisc widgets to round down
1588 on centering calculations to match the behaviour of other parts
1589 of GTK+. (#307419, Ryan Lortie)
1591 2005-06-21 Matthias Clasen <mclasen@redhat.com>
1593 * gtk/gtkdnd.c (gtk_drag_source_set): Connect to
1594 button-release-event as well, to handle touchscreen
1595 scenarios better. (#171490, Markku Vire)
1597 * gtk/*.h: Trivial cleanups. (#169647, #303455,
1598 Fabricio Barros Cabral, Benoit Carpentier)
1602 * gdk/x11/gdkgeometry-x11.c (gdk_window_move_region): New
1603 function which can be used to implement scrolling in
1604 non-window widgets. (#135165, Søren Sandmann)
1606 2005-06-20 Matthias Clasen <mclasen@redhat.com>
1608 * gtk/gtkiconcache.c: Handle MAP_FAILED. (#308449, Georg
1611 2005-06-20 Matthias Clasen <mclasen@redhat.com>
1613 * configure.in: Bump version number.
1615 * === Released 2.7.0 ===
1617 2005-06-20 Matthias Clasen <mclasen@redhat.com>
1621 * gtk/gtkwindow.c (gtk_window_present_with_time): Variant of
1622 gtk_window_present which takes a timestamp. (#166379, Elijah Newren)
1624 2005-06-19 Matthias Clasen <mclasen@redhat.com>
1626 * gtk/gtk.symbols: Add a forgotten symbol
1630 2005-06-19 Kristian Rietveld <kris@gtk.org>
1632 * gtk/gtktreeview.c (gtk_tree_view_clamp_node_visible): added a
1633 check which avoids processing updates on bin_window and scrolling
1634 if the node is already visible. (#170600, Billy Biggs).
1636 2005-06-19 Kristian Rietveld <kris@gtk.org>
1638 * gtk/gtktreeview.c (validate_visible_area): only keep the
1639 row at the same position if the full row is visible. (#304623,
1642 2005-06-19 Kristian Rietveld <kris@gtk.org>
1644 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set dy to zero
1645 if treeview's height is smaller than the current page_size (just
1646 like we do elsewhere).
1648 2005-06-19 Kristian Rietveld <kris@gtk.org>
1650 Make mousewheel scrolling possible in typeahead mode, suggestion
1651 from Reinout van Schouwen (#307898).
1653 * gtk/gtktreeview.c (gtk_tree_view_ensure_interactive_directory):
1654 connect treeview search window to scroll_event signal,
1655 (gtk_tree_view_search_scroll_event): implement.
1657 2005-06-19 Kristian Rietveld <kris@gtk.org>
1659 * gtk/gtktreeview.c (gtk_tree_view_search_button_press_event): pass
1660 the event on to treeview, so it has a change of selecting a row, etc.
1661 (#169677, Kirk Bridger).
1663 2005-06-19 Kristian Rietveld <kris@gtk.org>
1665 This commit includes a fix for #169463, Stefan Kost.
1667 * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_get_size):
1668 when cell_area is set, return cell_area width/height as width/height,
1669 so the focus rectangle will be drawn correctly.
1671 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): drop unneeded get
1672 of focus-line-width property,
1673 (validate_row): take focus_line_width into account.
1675 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
1676 also take focus_line_width into account when calculating the cell_area
1677 y and height (before, we only took it into account when calculating
1680 2005-06-19 Matthias Clasen <mclasen@redhat.com>
1683 * gtk/gtksizegroup.[hc]: Add an ignore-hidden property
1684 with getter and setter. (#171612, Christian Neumair)
1686 2005-06-18 Matthias Clasen <mclasen@redhat.com>
1688 * gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Make this
1689 work for inserting before/after an existing menuitem or
1690 toolitem. (#155946, Christian Persch)
1692 * tests/testmerge.c (delayed_toggle_dynamic): Test the
1693 "insert after" functionality of gtk_ui_manager_add_ui.
1695 * gtk/gtkuimanager.c: Allow to construct menu tool buttons.
1696 (#300678, Sven Neumann)
1698 * demos/gtk-demo/appwindow.c: Demonstrate menu tool buttons
1699 constructed with GtkUIManager.
1703 * gtk/gtkimage.c (gtk_image_clear): Make this function
1704 public. (#64792, Havoc Pennington)
1706 2005-06-18 Kristian Rietveld <kris@gtk.org>
1708 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): undo merging
1709 of the separate loop setting cell data with cell drawing loop
1710 (introduced in revision 1.280), since this breaks focus handling
1713 Sat Jun 18 04:22:51 2005 Manish Singh <yosh@gimp.org>
1715 * gdk/gdkcursor.h: remove GDK_CURSOR and GDK_IS_CURSOR, instance
1716 checks don't work on boxed types.
1718 * gdk/x11/gdkcursor-x11.c:
1719 * gdk/gdkcursor.c: make return_if_fail checks != NULL instead of
1722 Sat Jun 18 04:21:58 2005 Manish Singh <yosh@gimp.org>
1724 * gtk/gtktreeview.c (do_presize_handler): remove unused variable
1727 2005-06-18 Matthias Clasen <mclasen@redhat.com>
1729 * gtk/gtkcellrenderertoggle.c:
1730 * gtk/gtktextview.c:
1731 * gtk/gtktreeview.c: Typo fixes in comments.
1733 * gtk/gtkpaned.c (gtk_paned_add): Barf if more than
1734 2 children are added. (#308111, Morten Welinder)
1736 * gtk/gtkcalendar.c (gtk_calendar_init): _NL_FIRST_WEEKDAY is
1737 1-based. (#163842, Pierre Ossman)
1739 2005-06-17 Kristian Rietveld <kris@gtk.org>
1741 Fix #160281, testcase from Peter Bloomfield.
1743 * gtk/gtktreeview.c (do_presize_handler): always size request
1744 and update adjustments in fixed height mode,
1745 (gtk_tree_view_build_tree): if a fixed height is set, set this
1746 height on newly added nodes.
1748 2005-06-17 Tor Lillqvist <tml@novell.com>
1750 * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Set the actions
1751 and suggested_action fields in the GdkDragContext to
1752 GDK_ACTION_COPY. Otherwise apps that check the suggested_action
1753 field, like eog, won't accept dropped files.
1755 2005-06-17 Matthias Clasen <mclasen@redhat.com>
1757 Support the ICCCM urgency hint. (#61858, Havoc Pennington)
1760 * gtk/gtkwindow.[hc]: Add a GtkWindow::urgency-hint property
1761 with getter and setter.
1765 * gdk/x11/gdkwindow-x11.c (gdk_window_set_urgency_hint):
1766 Add a setter for the urgency hint.
1768 * gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Store
1771 * gdk/x11/gdkwindow-x11.c (update_wm_hints): Set the urgency
1772 hint in the WM_HINTS property when appropriate.
1774 2005-06-17 Matthias Clasen <mclasen@redhat.com>
1776 * gdk/gdkcursor.h: Define GDK_IS_CURSOR() and GDK_CURSOR().
1778 * gdk/x11/gdkcursor-x11.c:
1779 * gdk/gdkcursor.c: Improve some return_if_fail checks,
1780 and add the missing non-Xcursor fallback for
1781 _gdk_x11_cursor_update_theme(), noticed by Jeroen
1784 * gtk/gtkbutton.c (gtk_button_class_init): Document
1785 several button signals as not useful.
1787 * gtk/gtkentrycompletion.c (gtk_entry_completion_complete):
1788 Resize the popup if necessary. (#308076, Vincent Noel)
1790 * gtk/gtkwindow.c (gtk_window_real_set_focus): Queue a
1791 draw on the old and new focus widgets, if their defaultness
1792 changes. (#305607, Billy Biggs)
1794 2005-06-17 Kristian Rietveld <kris@gtk.org>
1796 * gtk/gtktreeview.c (validate_visible_area): make sure the row
1797 above 'above_path' is always in a validated state, so it does
1798 not mess up scrolling. (#303319, testcase from Billy Biggs).
1800 2005-06-17 Matthias Clasen <mclasen@redhat.com>
1802 * gdk/x11/gdkprivate-x11.h:
1803 * gdk/x11/gdkcursor-x11.c: Handle cursor theme changes
1804 for cached cursors which are not associated with a window
1805 at the time of the theme change, by storing a serial
1806 number in each cursor, and updating the theme_serial
1807 counter whenever the cursor theme changes.
1809 * gdk/x11/gdkcursor-x11.c (_gdk_x11_cursor_update_theme):
1810 Private function to update a cursor to the current
1811 cursor theme if necessary.
1813 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab):
1814 * gdk/x11/gdkwindow-x11.c (gdk_window_set_cursor): Call
1815 _gdk_x11_cursor_update_theme() here.
1817 2005-06-17 Owen Taylor <otaylor@redhat.com>
1819 * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix
1820 #if G_BYTE_ORDER == GDK_LSB_FIRST.
1822 2005-06-17 Kristian Rietveld <kris@gtk.org>
1824 * gtk/gtktreeview.c (validate_visible_area): don't try to update
1825 the top_row rowref ourselves here, but just have _dy_to_top_row()
1827 (gtk_tree_view_scroll_to_cell): handle scrolling via
1828 validate_visible_area() if the treeview is not visible or needs
1829 reallocation. (#165246, Nickolay V. Shmyrev).
1831 2005-06-17 Kristian Rietveld <kris@gtk.org>
1833 Fixes #307914 (Alexander Larsson), fixing some breakage caused
1834 by my previous commit.
1836 * gtk/gtktreeview.c (validate_visible_area): force dy to be zero
1837 when it fits on a single page,
1838 (scroll_sync_handler): same here.
1840 Thu Jun 16 15:33:42 2005 Manish Singh <yosh@gimp.org>
1842 * gdk/x11/gdkcursor-x11.c (update_cursor): remove unused variable.
1844 * gdk/x11/gdkwindow-x11.c (_gdk_x11_window_get_cursor): use
1845 g_return_val_if_fail.
1847 * gtk/gtkdnd.c (gtk_drag_get_cursor): initialize hot_x and hot_y
1850 * gtk/gtkfilechooserdefault.c (button_new): gtk_button_set_image
1851 takes a GtkWidget, not a GtkImage.
1853 2005-06-16 Matthias Clasen <mclasen@redhat.com>
1855 * gtk/gtkfilechooserdefault.c (button_new): Simplify
1856 the code and respect the show-button-images setting.
1857 (#307941, Vincent Noel)
1859 * gtk/gtkdnd.c: Update the RGBA cursor if an
1860 icon is set after the cursor has been constructed.
1861 Also handle repeated setting of icons correctly.
1863 2005-06-16 Matthias Clasen <mclasen@redhat.com>
1865 * gtk/gtkbutton.c (gtk_button_set_image): Add some more
1866 docs. (#307818, Christian Persch)
1868 2005-06-15 Matthias Clasen <mclasen@redhat.com>
1870 * gdk/gdkwindow.c (gdk_window_process_updates_internal):
1871 Initialize all fields of the expose event. (#151693,
1874 2005-06-15 Matthias Clasen <mclasen@redhat.com>
1876 * gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image): Get
1877 red and blue in place.
1879 * gtk/gtkwindow.c (gtk_window_parse_geometry): Fox doc
1880 formatting, pointed out by Kjartan Maraas.
1882 * gtk/gtksettings.c: Add two new settings,
1883 gtk-cursor-theme-name and gtk-cursor-theme-size to
1884 control the cursor theme.
1886 * gdk/x11/gdkevents-x11.c: Add two new X settings,
1887 Gtk/CursorThemeName and Gtk/CursorThemeSize, and map
1888 these to the gtk settings.
1890 * tests/testgtk.c (create_cursors): Add a cursor theme
1893 * gdk/x11/gdkwindow-x11.[hc]: Keep a reference to the
1894 GdkCursor and add a private getter for it, so that we can
1895 update the cursor when the cursor theme changes.
1899 * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme):
1900 New function to change the cursor theme.
1902 * gdk/x11/gdkwindow-x11.c: Remove a lot of pointless
1903 g_return_if_fail() non-NULL checks.
1905 2005-06-15 Matthias Clasen <mclasen@redhat.com>
1907 * gdk/abicheck.sh: Use uniq to filter out duplicates.
1908 * gdk/gdk.symbols: Fix a define.
1910 2005-06-14 Matthias Clasen <mclasen@redhat.com>
1912 * gtk/gtkwindow.c (gtk_window_parse_geometry):
1913 Fix up the example. (#307699, Michal Suchanek)
1915 2005-06-14 Matthias Clasen <mclasen@redhat.com>
1917 * gtk/gtkcalendar.c: Update num_marked_dates as we
1918 used to do. (#307689, Thorsten Schoenfeld)
1920 2005-06-14 Federico Mena Quintero <federico@ximian.com>
1922 Merged from gtk-2-6:
1926 * gtk/gtkfilechooserdefault.c (list_selection_changed): Emit
1927 "selection-changed" and do the normal housekeeping even if we are
1928 in SAVE mode and there is nothing selected. We didn't emit that
1929 signal if we were in SAVE mode and unselect_all() got called.
1930 (gtk_file_chooser_default_unselect_all): Call
1931 pending_select_paths_free() so that we cancel any asynchronous
1933 (gtk_file_chooser_default_set_current_name): Likewise.
1935 2005-06-14 Federico Mena Quintero <federico@ximian.com>
1937 Merged from gtk-2-6:
1941 * gtk/gtkfilechooserdefault.c
1942 (gtk_file_chooser_default_should_respond): Oops, I broke SAVE
1943 mode. If the parent path is a folder, only create a subfolder if
1944 we are in CREATE_FOLDER mode; if we are in SAVE mode, just return
1945 and respond. Also, pick up the case where the user types
1946 "dirname/" instead of "dirname".
1947 (check_save_entry): Make the return type void. Add some return
1948 parameters so that we can do more thorough checking.
1949 (gtk_file_chooser_default_get_paths): If the file part is empty
1950 and we are in SAVE mode, return an empty selection.
1952 2005-06-15 Kristian Rietveld <kris@gtk.org>
1954 Patch for #163214 (reported by Tommi Komulainen) and fixes some
1955 other scrolling/validation related bugs along the why.
1957 * gtk/gtktreeview.c (gtk_tree_view_size_request): run
1958 do_validate_rows once and don't queue a size request there,
1959 (gtk_tree_view_size_allocate): don't update vadj value without
1960 reason, sync top_row/dy after the window sizes and adjustments
1962 (validate_visible_area): always update dy when scrolling,
1963 manually set top_row here after changing the vadj (don't depend
1964 on _adjustment_changed and top_row/dy sync to do this), since we
1965 now always set top_row here correctly, we can always free
1966 scroll_to_path at the end which avoids infinite expose loops,
1967 (do_validate_rows): add queue_resize boolean, remove top_row/dy
1968 sync here, we cannot do it safely at this place since the
1969 window sizes and adjustments are out of sync,
1970 (validate_rows), (validate_rows_handler): update call to
1973 2005-06-14 Matthias Clasen <mclasen@redhat.com>
1975 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_name): Add a
1976 stub for the no-Xcursor case. (noticed by Luis Villa)
1978 Use named cursors for the DND cursors, the names are "dnd-none",
1979 "dnd-copy", "dnd-link", "dnd-move" and "dnd-ask". Also use an RGBA
1980 cursor instead of cursor+window when possible. This saves
1981 roundtrips during the drag operation, and makes translucent icons
1984 * gtk/gtkdndcursors.h: New file, containing inlined pixbufs
1985 for the default dnd cursors.
1987 * gtk/gtkdnd.c (struct _GtkDragSourceInfo): Store the cursors
1988 used during the drag here, also store the icon pixbuf here.
1990 * gtk/gtkdnd.c (drag_cursors): Store the cursor names here. Also
1991 switch the default cursors from xbm to inlined pixbufs.
1993 * gtk/gtkdnd.c (gtk_drag_get_cursor): This function now takes the
1994 GtkDragSourceInfo as well, since it has to composite the
1995 drag-specific cursors. The cursors combined from the image of
1996 the themed cursor and the icon_pixbuf stored in the info.
1998 * gtk/gtkdnd.c (gtk_drag_begin_internal): Don't set the default
1999 icon if there is an icon_pixbuf, which will be composited into
2002 * gtk/gtkdnd.c (set_icon_stock_pixbuf): If appropriate, store
2003 the pixbuf in the info struct for later compositing into the
2004 cursor instead of creating an icon window.
2006 * gtk/gtkdnd.c (gtk_drag_drop_finished): If we used an
2007 RGBA cursor for the drag, and need to display the cancel
2008 animation, construct the icon window here.
2010 * gtk/gtkdnd.c (gtk_drag_source_info_destroy): Unref the
2011 drag-specific cursors and the icon_pixbuf when done with
2014 2005-06-14 Matthias Clasen <mclasen@redhat.com>
2016 * gtk/gtkcolorsel.c (make_picker_cursor): Use a named cursor
2017 with the name "color-picker", when available.
2021 * gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image)
2022 (gdk_cursor_new_from_name): New functions to construct named
2023 cursors and to get the image used for a cursor.
2025 2005-06-13 Matthias Clasen <mclasen@redhat.com>
2027 * gtk/gtkpathbar.[hc]: Rework the way in which rerooting of the
2028 path bar is done, implementing the following principles:
2029 (#137289, patch by Benjamin Otte)
2031 1. Re-root only if $HOME is an ancestor of the current path.
2033 2. When re-rooting, make sure the Left arrow appears in the path
2034 bar, so that you can navigate up from $HOME to /. In that case,
2035 make sure the Right arrow doesn't appear if the sub-hierarchy from
2036 $HOME to the cwd fits in the window.
2038 3. Make sure that hitting Alt-Up takes you always one folder up,
2039 even when the path bar is re-rooted.
2041 * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
2042 Try harder not to modify readonly strings. (#307541, Torsten Schoenfeld)
2044 * gtk/gtkfilechooserbutton.c (model_update_current_folder):
2045 Free the data of the row before overwriting it. (#307490,
2048 2005-06-13 Kjartan Maraas <kmaraas@gnome.org>
2050 * gtk/gtkcalendar.c: (calendar_paint_arrow): Don't
2051 leak the cairo context. Closes bug #307426.
2053 2005-06-13 Matthias Clasen <mclasen@redhat.com>
2055 Make invisible text work a bit better (#66194, patch by
2056 Jeroen Zwartepoorte)
2059 * gtk/gtktextiter.[hc]: Add function to move by
2062 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal):
2063 Skip invisible text when moving by paragraphs.
2065 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_visually):
2066 Skip invisible lines here too.
2068 2005-06-12 Matthias Clasen <mclasen@redhat.com>
2070 * gtk/gtkselection.c (gtk_target_list_add_image_targets):
2071 Don't leak the format names. (#307190, Morten Welinder)
2073 2005-06-12 Kjartan Maraas <kmaraas@gnome.org>
2075 * gdk/x11/gdkasync.c: (send_event_handler): Plug
2076 a leak. Closes bug #307281.
2078 2005-06-12 Matthias Clasen <mclasen@redhat.com>
2080 * gtk/gtkcalendar.c (calendar_paint_header):
2081 (gtk_calendar_size_request): Allow localization of the
2082 format in which the year is displayed. (#135451, Paisa
2085 * gdk/*.h: Cleanup. (#169648, Fabricio Barros Cabral)
2087 * gdk/gdkcairo.c: Small doc additions.
2089 * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row):
2090 Check start_button_mask before starting a drag. (#149058,
2093 * gtk/gtkfilesystemunix.c: Support .hidden files. (#129170,
2094 Sayamindu Dasgupta, patch by Jan Arne Petersen)
2096 2005-06-11 Matthias Clasen <mclasen@redhat.com>
2100 * gtk/gtkwidget.c (gtk_widget_set_app_paintable): More docs
2101 provided by Owen Taylor.
2104 * gtk/gtkiconview.h:
2105 * gtk/gtkiconview.c (gtk_icon_view_get_visible_range):
2106 Add a function to determine what parts of the model are
2107 visible. (#306726, Jonathan Blandford)
2109 * gtk/gtkfilesystemunix.c (create_file_info): Treat backup
2110 files the same way as hidden files, to be closer to what
2111 Nautilus does. (#136196, Sean Middleditch)
2113 2005-06-10 Matthias Clasen <mclasen@redhat.com>
2115 * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
2116 Don't modify strings returned from gettext().
2118 Fri Jun 10 19:06:03 2005 Manish Singh <yosh@gimp.org>
2120 * gtk/gtktextdisplay.c (render_para): don't use deprecated
2121 gdk_gc_unref function.
2123 2005-06-10 Matthias Clasen <mclasen@redhat.com>
2125 Allow setting paragraph background. (#81045, Gustavo
2126 Carneiro, patch by Jeroen Zwartepoorte)
2128 * gtk/gtktextlayout.c (set_para_values): Propagate
2129 pg_bg_color to the display struct.
2130 (gtk_text_layout_free_line_display): Free it here.
2132 * gtk/gtktextdisplay.c (render_para): If pg_bg_color
2133 is set, draw a rectangle in that color behind
2136 * gtk/gtktexttag.c (gtk_text_tag_class_init): Add
2137 paragraph-background, paragraph-background-gdk and
2138 paragraph-background-set properties.
2139 (set_pg_bg_color): A setter for paragraph-background.
2141 * gtk/gtktextlayout.h (struct _GtkTextLineDisplay): Add
2144 * gtk/gtktexttag.h (struct _GtkTextAttributes): Add
2146 (struct _GtkTextTag): Add pg_bg_color_set.
2148 2005-06-10 Kjartan Maraas <kmaraas@gnome.org>
2150 * gdk/gdkcairo.c: (gdk_cairo_set_source_pixbuf): Destroy the
2151 cairo surface when done with it. Plugs a fairly large leak in
2153 ==6014== 1999824 (115640 direct, 1884184 indirect) bytes in
2154 826 blocks are definitely lost in loss record 25239 of 25250
2155 Like this from nautilus.
2157 2005-06-10 Michael Natterer <mitch@imendio.com>
2160 * gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function
2161 to get an action's accel_closure (Fixes #141750 and #148106).
2163 2005-06-10 Matthias Clasen <mclasen@redhat.com>
2165 * gdk/gen-keyname-table.pl: Generate N_() calls for
2166 translatable key names.
2168 * gdk/keynames.txt: Mark some key names as translatable.
2170 * gdk/keyname-table.h: Regenerated.
2172 * gtk/gtkaccellabel.c (gtk_accel_label_class_init): Add
2173 some context to the msg ids for keyboard modifiers and
2175 (_gtk_accel_label_class_get_accelerator_label): Try to
2176 translate key names. (#300224, Christian Rose)
2178 2005-06-10 Federico Mena Quintero <federico@ximian.com>
2180 Merged from gtk-2-6:
2184 * gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't return
2185 immediately if we are in CREATE_FOLDER mode, so that we can fill
2186 the entry with the newly-selected folder.
2187 (gtk_file_chooser_default_set_property): Warn against turning on
2188 multiple selection for CREATE_FOLDER mode, or about setting that
2189 action while multiple selection is on.
2190 (update_chooser_entry): Change the entry's contents as well if we
2191 are in CREATE_FOLDER mode. If nothing is selected, clear the
2193 (trap_activate_cb): Don't trap enter/space if modifiers are
2194 pressed. This lets one use Ctrl-space to toggle rows in multiple
2196 (gtk_file_chooser_default_should_respond): Clean up the if-chain
2197 mess of special cases by using an array to determine what to do.
2198 Also, for the save-entry case in CREATE_FOLDER mode, actually fix
2199 the bug where the file chooser would switch to an existing folder
2200 rather than confirming with it, and create the folder ourselves.
2201 (error_creating_folder_over_existing_file_dialog): New function.
2203 * gtk/gtkfilechooserentry.c (check_completion_callback): Only
2204 insert the common prefix if we are in an "open" mode. Use a
2206 (append_common_prefix): New helper function; code moved over from
2207 check_completion_callback().
2208 (find_common_prefix): New helper function.
2209 (gtk_file_chooser_entry_focus): Append the common prefix if the
2210 user requests it explicitly.
2212 2005-06-10 Matthias Clasen <mclasen@redhat.com>
2214 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_expand):
2215 * gtk/gtktoolbar.c (gtk_toolbar_get_show_arrow):
2216 * gtk/gtktextview.c (gtk_text_view_get_iter_at_position):
2217 * gtk/gtkstock.c (gtk_stock_set_translate_func):
2218 * gtk/gtkspinbutton.c (gtk_spin_button_get_adjustment):
2219 * gtk/gtkscrolledwindow.h:
2220 * gtk/gtkmenushell.c (gtk_menu_shell_get_take_focus):
2222 * gtk/gtkiconview.c (gtk_icon_view_set_margin):
2223 * gtk/gtkicontheme.c (gtk_icon_info_load_icon):
2224 * gtk/gtkcalendar.c (gtk_calendar_thaw): Doc fixes.
2226 2005-06-09 Matthias Clasen <mclasen@redhat.com>
2228 * gdk/x11/gdkwindow-x11.c: Small markup fixes.
2230 * gtk/gtkwidget.c (gtk_widget_set_app_paintable): Add docs.
2231 (#306212, Steve Chaplin, docs provided by Billy Biggs)
2233 * gtk/gtktextbtree.c (_gtk_text_btree_char_is_invisible): Small
2234 cleanup. (#305539, Paolo Borelli)
2236 2005-06-09 Rodrigo Moya <rodrigo@novell.com>
2238 * configure.in: added cairo to list of $GTK_PACKAGES.
2240 2005-06-09 Matthias Clasen <mclasen@redhat.com>
2242 * gdk/x11/gdkdnd-x11.c (motif_drop_start, xdnd_drop_filter): Update
2243 the user time on the window when a drop happens. (#169364, Alexander
2244 Hunziker, patch by Elijah Newren)
2246 * gdk/x11/gdkwindow-x11.c: Small markup fixes.
2249 * gtk/gtkiconview.h:
2250 * gtk/gtkiconview.c (gtk_icon_view_scroll_to_path): New function
2251 to scroll to a path. (#306838, Jonathan Blandford)
2253 2005-06-08 Matthias Clasen <mclasen@redhat.com>
2255 * gtk/gtkiconview.c (gtk_icon_view_set_cursor): Scroll to the
2256 item. (#306839, Jonathan Blandford)
2258 * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): Check for
2259 negative before appending the index, to avoid double error
2260 message. (#306393, Morten Welinder)
2262 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
2263 Don't crash if search_window is NULL. (#304914, Victor Osadci,
2264 testcase by Olaf Vitters)
2266 * gtk/gtkimage.c: Make the file property readable.
2267 (#170674, Lorenzo Gil Sanchez)
2270 2005-06-08 Matthias Clasen <mclasen@redhat.com>
2272 * gtk/gtkfilesystem.c (gtk_file_info_get_display_key): Use
2273 g_utf8_collate_key_for_filename().
2275 2005-06-07 Kjartan Maraas <kmaraas@gnome.org>
2277 * gtk/gtkfilechooserbutton.c: (update_label_and_image):
2278 Merge leak fix from stable. Bug 306754.
2280 2005-06-05 Tor Lillqvist <tml@novell.com>
2282 * gdk/win32/gdkscreen-win32.c
2283 (_gdk_windowing_substitute_screen_number): Return NULL unless
2284 screen number is zero. We have only one screen on Win32.
2285 (gdk_screen_make_display_name): Call gdk_display_get_name() and
2288 * modules/engines/Makefile.am
2289 * modules/input/Makefile.am: Decide whether to build the
2290 ms-windows theme engine based on the GDK backend, not based on
2291 platform. (I.e., if building for Cygwin with the X11 backend, we
2292 shouldn't build the ms-windows engine, but if building for Cygwin
2293 but with the Win32 backend, we should.) Ditto for the IME
2294 (Windows) input module. (#305832)
2296 2005-06-04 Tor Lillqvist <tml@novell.com>
2298 * gdk/win32/gdkcursor-win32.c
2299 * gdk/win32/gdkwindow-win32.c
2300 * gdk/win32/gdkprivate-win32.h: Support full-colour cursors.
2301 Support cursors with alpha on XP. Use code in common with the
2302 support for alpha icons that already was present. (#306101, Tim
2305 * modules/engines/ms-windows/msw_style.c: Render insensitive icons
2306 in a way that more closely matches Windows. (#305986, Tim Evans).
2308 * modules/engines/ms-windows/Makefile.am (LDADDS): Link with
2311 2005-06-03 Dom Lachowicz <cinamod@hotmail.com>
2313 * modules/engines/ms-windows/msw_style.c: Re-sync with gtk-wimp
2314 * modules/engines/ms-windows/xp_theme.c: Ditto
2315 * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Ditto
2317 Thu May 26 16:43:27 2005 Manish Singh <yosh@gimp.org>
2319 * gtk/gtkentrycompletion.h: Add declarations for
2320 gtk_entry_completion_{get,set}_popup_single_match.
2322 2005-05-26 Matthias Clasen <mclasen@redhat.com>
2325 * gtk/gtkentrycompletion.c: Add a property to suppress the
2326 popup for single matches. (#154711)
2328 * gtk/gtkentry.c (gtk_entry_completion_timeout): Respect it here.
2330 * gtk/gtkfilechooserentry.c (_gtk_file_chooser_entry_set_action):
2333 * gtk/gtktextbtree.c (_gtk_text_btree_tag): Queue the
2334 redisplay after modifying the tag in the btree, otherwise
2335 we end up showing the old tags until the next redraw comes
2336 around. (#143537, Gary Kramlich, Peter Wainwright)
2338 * gtk/gtkcombobox.c (gtk_combo_box_list_auto_scroll): Make
2339 autoscrolling work at the bottom of the screen.
2341 2005-05-26 Maciej Katafiasz <email@mathrick.org>
2343 * docs/reference/gtk/tmpl/gtkentry.sgml:
2344 Point to GtkTextView instead of GtkText. Fixes bug #305535
2346 2005-05-26 Sven Neumann <sven@gimp.org>
2348 * gtk/gtkselection.c (gtk_selection_data_set_pixbuf): use a less
2349 aggressive PNG compression level (bug #305340).
2351 2005-05-26 Tor Lillqvist <tml@novell.com>
2353 * gdk/win32/gdkdrawable-win32.c (_gdk_win32_blit): If blitting
2354 from the root window, take the multi-monitor offset into
2357 2005-05-25 Matthias Clasen <mclasen@redhat.com>
2359 * demos/gtk-demo/appwindow.c (do_appwindow): Set the window
2362 * gtk/gtkfilesystem.c (gtk_file_folder_is_finished_loading):
2363 Remove another C99ism.
2365 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Draw the
2366 background of rows insensitive when the treeview is insensitive.
2367 (pointed out by Billy Biggs)
2369 * demos/gtk-demo/clipboard.c: Demonstrate image copy-and-paste
2370 and DND, and clipboard persistency.
2372 * gtk/gtkselection.c (gtk_target_list_add_image_targets):
2373 Make sure png comes first, otherwise dnd may use bmp by
2374 default, loosing transparency.
2376 2005-05-25 Michael Natterer <mitch@imendio.com>
2378 * gtk/gtktextview.c (blink_cb): block the text_layout's "changed"
2379 handler when changing cursor visibility because it would expose
2380 the whole paragraph where the cursor is. Instead, expose the
2381 cursors' areas manually. (#173047).
2383 (text_window_invalidate_cursors): new function which exposes the
2386 * gtk/gtkstyle.c (draw_insertion_cursor): added comment that the
2387 same cursor size calculation is in text_window_invalidate_cursors().
2389 2005-05-25 Matthias Clasen <mclasen@redhat.com>
2391 * demos/gtk-demo/editable_cells.c (create_items_model): Also
2392 demonstrate GtkCellRendererProgress.
2394 * demos/gtk-demo/Makefile.am (demos):
2395 * demos/gtk-demo/combobox.c: Add a demo showing combo box
2398 * demos/gtk-demo/Makefile.am (demos):
2399 * demos/gtk-demo/pickers.c: Add a demo showing all picker widgets.
2401 2005-05-24 Matthias Clasen <mclasen@redhat.com>
2403 * demos/gtk-demo/iconview.c (do_iconview): Fix a typo.
2405 2005-05-24 Tor Lillqvist <tml@novell.com>
2407 * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Handle
2408 gtk-alternative-button-order (setting it to TRUE).
2410 2005-05-23 Matthias Clasen <mclasen@redhat.com>
2412 * gtk/gtktreeview.c (gtk_tree_view_search_init): Remove
2413 an unused variable. (#305130, Jaap A. Haitsma)
2415 * gtk/gtkfilechooserdefault.c (filter_create): Don't grab
2416 the focus away from the file list when operating the filter
2417 combo with the pointer. (#304844, Sven Neumann)
2419 2005-05-23 Tor Lillqvist <tml@novell.com>
2421 * gdk/win32/gdkkeys-win32.c (handle_special): Map VK_APPS to
2422 GDK_Menu. (#172383, Ivan Wong)
2424 * gdk/win32/gdkkeys-win32.c (handle_dead): If the keysym isn't one
2425 of the special cases this function takes care of, use it as
2426 such. This takes care of for instance the Bengali Virama, see bug
2429 2005-05-20 Matthias Clasen <mclasen@redhat.com>
2431 * gtk/gtkimcontextsimple.c (check_table): Avoid a possible
2432 buffer overrun. (#142444, Leonard Michlmayr)
2434 * gtk/gtkfilesystem.c: Remove C99-isms (#304879,
2437 2005-05-18 Matthias Clasen <mclasen@redhat.com>
2439 * gtk/gtkfilechooser.c (gtk_file_chooser_remove_shortcut_folder_uri):
2440 Use the correct function to conver the uri to a path. (#304565,
2443 * gtk/gtkfilechooserbutton.c (dialog_response_cb): Handle the
2444 Cancel button properly. (#304234, Sven Neumann)
2446 2005-05-18 Anders Carlsson <andersca@imendio.com>
2448 * gtk/gtktextview.c: (gtk_text_view_flush_scroll),
2449 (gtk_text_view_update_adjustments), (gtk_text_view_value_changed):
2450 * gtk/gtktextview.h:
2451 If the horizontal adjustment changes because of a change in the
2452 layout width, then do a complete redraw. This is because there
2453 might be right-aligned or centered text that needs to be redrawn.
2455 2005-05-18 Matthias Clasen <mclasen@redhat.com>
2457 * gtk/gtkwidget.c (gtk_widget_add_events): Try harder to set
2458 the event masks of descendent windows. (#169821, Tommi Komulainen)
2460 * gtk/gtktreeview.c (gtk_tree_view_get_drop_column)
2461 (gtk_tree_view_set_column_drag_info): Fix some errors in the
2462 handling of drop columns. (#143355, John Finlay)
2464 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
2465 Remove the no longer needed workaround.
2467 * gtk/gtkwidget.c (widget_add_child_draw_rectangle): Only collect
2468 allocations of mapped children.
2470 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
2471 Add a bug reference.
2473 2005-05-18 Tor Lillqvist <tml@novell.com>
2475 * gdk/win32/gdkevents-win32.c
2476 * gdk/win32/gdkkeys-win32.c
2477 * gdk/win32/gdkprivate-win32.h: Check the KF_EXTENDED bit in
2478 lParam of WM_KEY* messages to distinguish between left and right
2479 Control and Alt keys. Unfortunately, the right Shift key doesnt
2480 set KF_EXTENDED, so to distinguish between left and right Shift
2481 keys, check the scan code. (#304584)
2483 2005-05-18 Matthias Clasen <mclasen@redhat.com>
2485 * gdk/x11/gdkproperty-x11.c (gdk_property_get): Warn if
2486 length overflows. (#161520, Ian Wienand)
2488 * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name): Fix
2489 parameter names to make gtk-doc happy.
2491 * gtk/gtkscale.c (gtk_scale_class_init): Fix the default
2492 values of draw-value and value-pos to be the values we
2493 actually use in _init. (#304547, Mikael Hallendal)
2495 * gtk/gtkcellrendererpixbuf.c: Support named icons in
2496 cells by adding a icon-name property. (#165777, Anders
2500 * gtk/gtktoolbutton.h:
2501 * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name)
2502 (gtk_tool_button_get_icon_name): Support named icons in
2503 tool buttons by adding a icon-name property. (#116577,
2508 * gtk/gtkdnd.c (gtk_drag_source_set_icon_name)
2509 (gtk_drag_set_icon_name): New functions to support themed
2510 drag icons. (#116577, Christian Neumair)
2512 2005-05-17 Owen Taylor <otaylor@redhat.com>
2514 * gdk/x11/gdkdrawable-x11.c (gdk_x11_ref_cairo_surface):
2515 Update to changed cairo interface.
2517 * gdk/x11/gdkdrawable-x11.[ch]:
2518 Add _gdk_x11_drawable_update_size()
2520 * gdk/x11/gdkwindow-x11.c (gdk_window_resize)
2521 (gdk_window_move_resize)
2522 * gdk/x11/gdkevents-x11.c (gdk_event_translate):
2523 Call _gdk_x11_drawable_update_size().
2525 2005-05-17 Matthias Clasen <mclasen@redhat.com>
2527 * gtk/gtktextview.c (cursor_blinks): Don't blink the cursor
2528 if the text view is not editable.
2530 * gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Keep
2531 the popup posted if the button is released over the cellview.
2532 This matches the behaviour of other combo box implementations.
2535 * gdk/gdkwindow.c (gdk_window_set_bg_pattern): Adjust offsets
2536 when recursing. (#153682, Felipe Heidrich)
2538 2005-05-16 Matthias Clasen <mclasen@redhat.com>
2540 * gtk/gtkscale.c (gtk_scale_class_init): Don't bind GDK_Page_Up
2541 and GDK_Page_Down twice. (#168333, Hazael Maldonado Torres)
2543 * gtk/gtkentry.c (cursor_blinks): Don't blink the cursor if
2544 the entry is not editable. (#304171, Nikos Kouremenos)
2546 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_constructor):
2547 Make sure the action of the button and the dialog are in sync,
2548 when the dialog is provided by the app. (#303987, David A Knight)
2550 * gdk/gdkpango.c (gdk_pango_renderer_get_default): Fix a typo
2551 in the docs. (#303940, Masao Mutoh)
2553 * configure.in (GTK_DOC_CHECK): Check for gtk-doc 1.4.
2555 * gtk/gtktoggleaction.c (connect_proxy): Be more careful when
2556 casting. (#304089, Philip Langdale)
2558 * gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Only shrink
2559 the label if we need to. (#169390, Felix Riemann)
2561 Sat May 14 00:07:46 2005 Manish Singh <yosh@gimp.org>
2564 * gdk/gdkpango.c: #include gdkcairo.h for gdk_cairo_create()
2567 * gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): actually
2568 call gdk_cairo_set_source_color() with a color.
2570 * gtk/gtkimage.c (gtk_image_expose): remove unused stock_id variable.
2572 * tests/testiconview.c (main): cast args of drag functions to the
2575 2005-05-13 Owen Taylor <otaylor@redhat.com>
2577 * gdk/x11/gdkdrawable-x11.c: Update for cairo-xlib API change.
2579 * gdk/x11/gdkpixmap-x11.[ch] gdk/gdk.symbols: Export
2580 gdk_pixmap_impl_x11_get_type(), needed in gdkdrawable-x11.c.
2582 2005-05-11 Owen Taylor <otaylor@redhat.com>
2584 * tests/testgtk.c (on_alpha_window_expose): Fix to use
2585 gdk_cairo_create(). (create_alpha_window): Hook up "response"
2586 to close the window.
2588 2005-05-11 Owen Taylor <otaylor@redhat.com>
2590 * gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea
2591 to draw the swatch in to avoid having an extraneous window.
2593 * gtk/gtkcolorsel.c (color_sample_draw_sample): Actually se tthe
2594 color when !has_opacity.
2596 2005-05-10 Owen Taylor <otaylor@redhat.com>
2598 * gdk/gdkcairo.[ch] gdk/gdkcolor.[ch] gdk/Makefile.am: Add source
2599 files for Cairo convenience functionality.
2601 * gdk/gdkcairo.h (gdk_cairo_rectangle, gdk_cairo_region): Add a
2602 convenience functions to add GdkRectangle, GdkRegion to a cairo path.
2604 * gdk/gdkwindow.c gdk/gdkgc.c gtk/gtkcolorsel.c gtk/gtkiconview.c
2605 gtk/gtkstyle.c: Use gdk_cairo_rectangle/region().
2607 * gdk/gdkcairo.[ch] gdk/gdkdrawable.h gdk/gdkdraw.c: Rename
2608 gdk_drawable_create_cairo_context() to gdk_cairo_create().
2610 * gdk/gdkcairo.c gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c:
2611 Rename gdk_pixbuf_set_as_cairo_source() to
2612 gdk_cairo_set_source_pixbuf().
2614 * gdk/gdkdraw.c gdk/gdkpango.c gtk/gtkcolorsel.c gtk/gtkhruler.c
2615 gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkstyle.c gtk/gtkvruler.c:
2618 * gdk/gdk.symbols: Update.
2620 * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): Fix
2621 coordinate system problem that was causing the wrong portions
2624 * gtk/gtkcellrenderer.c (gtk_cell_renderer_render)
2625 gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render)
2626 gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render)
2627 gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render)
2628 gtk/gtkcellview.c (gtk_cell_view_expose)
2629 gtk/gtkdnd.c (gtk_drag_highlight_expose)
2630 gtk/gtkentry.c (gtk_entry_draw_text)
2631 gtk/gtktextview.c (text_window_invalidate_rect): Some cairoization.
2633 * gtk/gtkcalendar.[ch]: Beat into something roughly resembling
2634 GTK+ style ... use instance-private data and standard names for
2635 private structure, etc. Move function docs inline.
2637 * gtk/gtkcalendar.[ch]: Switch to drawing everything in
2638 expose. Switch drawing to Cairo.
2640 * gtk/gtkcalendar.c (gtk_calendar_freeze): Deprecate
2641 gtk_calendar_freeze/thaw
2643 2005-05-10 Tor Lillqvist <tml@novell.com>
2645 * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Check
2646 that GDK_IS_SCREEN(screen) (like the X11 backend does), not screen
2647 == gdk_screen_get_default(), as that might return NULL when this
2650 2005-05-09 Matthias Clasen <mclasen@redhat.com>
2652 * gtk/gtkalignment.c (gtk_alignment_size_allocate): Flip the
2653 padding in RTL mode. (#303572, Maciej Katafiasz)
2655 2005-05-09 Owen Taylor <otaylor@redhat.com>
2657 * gdk/gdkrgb.c (gdk_rgb_convert_0888_br, gdk_rgb_convert_8880_br):
2658 Fill in unused bits so they can be used for the depth-32 target case.
2659 Rewrite so that that gives a marginal speedup rather than a
2660 marginal slowdown. (on x86)
2662 * gdk/gdkscreen.h gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkvisual-x11.c:
2663 Add gdk_screen_get_rgba_colormap/visual to get a visual for
2664 windows with an alpha channel, if one exists.
2666 * gdk/win32/gdkscreen-win32.c gdk/linux-fb/gdkscreen-fb.c:
2667 Stub out gdk_screen_get_rgba_colormap/visual.
2669 * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors): computation of
2670 "unused" wasn't right for depth == 32, since it depended on
2673 * gdk/gdkrgb.c: Fill in alpha bits with 1s. (Based on patch from
2675 http://mail.gnome.org/archives/gtk-devel-list/2004-June/msg00080.html)
2677 * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
2678 Implement again, without using Xft.
2680 * tests/testgtk.c: Add a test for windows with an alpha channel.
2682 2005-05-09 Matthias Clasen <mclasen@redhat.com>
2684 * autogen.sh: Revert accidental commit.
2686 2005-05-08 Matthias Clasen <mclasen@redhat.com>
2688 * gdk/gdkcolor.c (gdk_cairo_set_source_color):
2693 * gdk/x11/gdkcolor-x11.c: Small documentation additions.
2695 2005-05-07 Matthias Clasen <mclasen@redhat.com>
2697 * gtk/gtkscrolledwindow.h:
2698 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_hscrollbar):
2699 (gtk_scrolled_window_get_cscrollbar): Change the return
2700 type to GtkWidget*, proposed by Owen Taylor.
2702 * gdk/x11/gdkscreen-x11.c (gdk_screen_get_width_mm)
2703 (gdk_screen_get_height_mm): Fix typos in the docs. (#303389,
2706 2005-05-07 Matthias Clasen <mclasen@redhat.com>
2708 * gtk/gtkiconview.c: Fix a copy-and-paste accident, spotted
2711 2005-05-07 Owen Taylor <otaylor@redhat.com>
2713 * gdk/gdkgc.c (gc_get_foreground): Get the foreground color, not
2714 the background color.
2716 2005-05-07 Owen Taylor <otaylor@redhat.com>
2718 * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source):
2719 Change prototype to match cairo_set_source_surface().
2721 * gdk/gdkdraw.c gdk/gdkgc.c gdk/gdkpixbuf-render.c gdk/gdkwindow.c
2722 gtk/gtkhsv.c tests/testcairo.c.
2724 2005-05-06 Federico Mena Quintero <federico@ximian.com>
2726 Merged from gtk-2-6:
2728 * gtk/gtkfilesystemunix.c (fill_in_mime_type): Don't fill the mime
2729 types if this is an AFS directory.
2730 (fill_in_names): If we are in an AFS directory, set the MIME type
2731 blindly to "x-directory/normal".
2733 2005-05-06 Matthias Clasen <mclasen@redhat.com>
2735 * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Always
2736 initialize child-visible to FALSE, otherwise we may end up
2737 with the wrong page visible initially. (#302283, Patrik Fimml)
2739 * gtk/gtktreeview.c (gtk_tree_view_draw_arrow): Make expanders
2740 appear insensitive in insensitive treeviews.
2742 2005-05-05 Matthias Clasen <mclasen@redhat.com>
2744 * gtk/gtktoolbar.c: Fix a typo in the docs. (#303024,
2747 2005-05-06 Matthias Clasen <mclasen@redhat.com>
2750 * gtk/gtkiconview.[hc]: Add DND support similar to the DND
2751 support in the tree view. (#150270)
2753 2005-05-05 Matthias Clasen <mclasen@redhat.com>
2756 * gtk/gtkwidget.h: Small cleanups.
2758 * gtk/gtktreeview.c (gtk_tree_view_get_dest_row_at_pos): Fix
2761 2005-05-04 Owen Taylor <otaylor@redhat.com>
2763 * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.h: Fix a bug
2764 in focus tracking when we move between has_pointer_focus and
2765 has_focus_window directly. (#109246, Billy Biggs, Niko Tyni
2768 * gdk/x11/gdkevents-x11.c: Also fix some confusion that could
2769 happen in the case of no window manager + keyboard grabs, by
2770 moving to a more consistent model of when we pay attention to
2771 mode=NotifyGrab/NotifyUngrab events.
2773 * docs/focus_tracking.txt: Extensive writeup about how to track
2776 Wed May 4 13:21:41 2005 Søren Sandmann <sandmann@redhat.com>
2778 * tests/testcairo.c (draw): Replace cairo_show_surface() uses with
2779 cairo_set_source_surface()/cairo_paint();
2781 2005-05-04 Tor Lillqvist <tml@novell.com>
2783 * gdk/win32/gdkdrawable-win32.c (generic_draw, blit_from_pixmap)
2784 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values,
2785 _gdk_win32_gc_new, _gdk_windowing_gc_set_clip_region,
2786 gdk_win32_hdc_get): Minor fixes to make Win32 backend compile
2789 2005-05-03 Matthias Clasen <mclasen@redhat.com>
2791 * gtk/gtkfilesystem.c:
2792 * gtk/gtkcelleditable.c:
2793 * gtk/gtktreemodel.c: Avoid getting the interface struct
2794 twice in the same function. (#300513, Billy Biggs)
2796 * gtk/gtkscrolledwindow.h:
2797 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_vscrollbar):
2798 * gtk/gtk.symbols: Add getters for the scrollbars. (#167181,
2802 * gtk/gtkdialog.c (gtk_dialog_get_response_for_widget):
2803 Make this function public. (#170748, Morten Welinder)
2805 2005-05-02 Federico Mena Quintero <federico@ximian.com>
2807 Merged from gtk-2-6:
2811 * gtk/gtkfilesystemunix.c (struct _GtkFileSystemUnix): Add fields
2812 to store struct stat for /afs and /net, and boolean fields to say
2813 whether these are valid.
2814 (struct _GtkFileFolderUnix): Added a boolean is_network_dir field.
2815 (gtk_file_system_unix_get_folder): Fill in the is_network_dir
2816 field of the folder structure.
2817 (fill_in_names): If the folder is a network directory, create a
2818 fake struct stat for its entries.
2819 (fill_in_stats): Don't stat() the children of network directories.
2821 * gtk/gtkfilechooserdefault.c (list_mtime_data_func): If the mtime
2822 is 0, use "Unknown" for the cell's displayed text.
2824 2005-04-28 Owen Taylor <otaylor@redhat.com>
2826 * gtk/gtkwidget.c: Add a draw-border style property to allow
2827 themes to draw outside the widget's allocation.
2829 * gdk/gdkwindow.c gtk/gtkstyle.c: Remove some save/restore pairs
2830 that were working around the clip-leakage bug in Cairo.
2832 * gtk/gtkstyle.c: Use cairo_fill_preserve() rathe than
2835 * gdk/gdkgc.c gdk/gdkinternals.h: Add _gdk_gc_update_context()
2836 That updates a Cairo context to match a GC.
2838 * gdk/gdkdraw.c: Use _gdk_gc_update_context() to add support
2839 for tiles/stipples/clipping to gdk_draw_glyphs(),
2840 gdk_draw_trapezoids().
2842 * gdk/gdkpango.c: Use _gdk_gc_update_context() instead of internal
2843 implementation of stipples. Use one cairo_t across the entire
2844 drawing operation. Replace cairo_matrix_create() with
2845 stack-allocated matrices.
2847 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
2848 gdk/win32/gdkgc-win32.c: Save various aspects of the
2849 GC state (fill, tile, stipple, foreground, background, clip region)
2850 in instance-private-data for future use. Add getters.
2851 Get rid of _gdk_windowing_gc_get_foreground() function implemented
2854 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
2855 gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Add
2856 _gdk_gc_init() to do initial setup of the GC from values;
2857 fixes some problems from drawable redirection.
2859 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
2860 gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Move
2861 gdk_gc_copy() and gdk_gc_set_clip_{region,rectangle}() into
2862 the generic code, add _gdk_windowing_gc_copy(),
2863 _gdk_windowing_gc_set_clip_region() to do backend specific
2866 * gdk/x11/{gdkprivate-x11.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
2867 gdk/win32/{gdkprivate-win32.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
2868 gdk/linux-fb/{gdkprivate-fb.h,gdkgc-fb.c.c,gdkdrawable-fb.c}:
2869 Don't duplicate state that now is stored by the generic code.
2871 * gdk/gdk.symbols Update
2873 2005-05-02 Matthias Clasen <mclasen@redhat.com>
2875 * tests/testiconview.c: Test cell renderers.
2877 * gtk/gtk.symbols: Add new functions.
2879 * gtk/gtkiconview.[hc]: Implement GtkCellLayout and use
2880 cell renderers for drawing and editing. (#148144, #160242)
2882 2005-05-02 Matthias Clasen <mclasen@redhat.com>
2884 * gtk/gtkcellrenderertext.c (get_size): Return a sufficient
2885 width for cases where pango_layout_get_pixel_extents() returns
2886 a rectangle with nonzero x.
2888 * gtk/gtkselection.c: Small doc fixes.
2890 * gtk/gtkmenushell.c (gtk_menu_shell_set_take_focus):
2891 (gtk_menu_shell_get_take_focus): Fix up the docs a bit.
2893 2005-05-02 Michael Natterer <mitch@imendio.com>
2895 * gtk/gtkmain.c (do_post_parse_initialization): return silently if
2896 "gtk_initialized" is TRUE. Re-enables calling GTK's init functions
2897 multiple times when using gtk_get_option_group(), just as one can
2898 call gtk_init() multiple times without doing any harm.
2900 2005-05-01 Matthias Clasen <mclasen@redhat.com>
2902 * gtk/gtktextview.c (gtk_text_view_expose_event): Propagate
2903 the event to unanchored children in the text window.
2904 (#302494, Stephen Kennedy)
2906 2005-04-30 Tor Lillqvist <tml@novell.com>
2908 * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Take
2909 multi-monitor offset into account. (#302525)
2911 2005-04-29 Matthias Clasen <mclasen@redhat.com>
2913 * gtk/gtkradioaction.c: Make the docs build. (#302230,
2916 * gtk/gtkiconview.c (gtk_icon_view_map): Get rid of this
2917 function, instead show the bin_window when it is created.
2919 * gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't
2920 grab focus to unrealized widgets. (#302240, Philip Langdale)
2922 * gtk/gtktreeview.c (gtk_tree_view_state_changed): Set
2923 background upon state changes. (#301651, Billy Biggs)
2924 (gtk_tree_view_get_path_at_pos): Take RTL into account
2925 when iterating over the columns. (#302163)
2927 * configure.in: Check for nm.
2929 * gtk/Makefile.am: Use $(NM), not nm directly. (#301299,
2930 Nguyen Thai Ngoc Duy)
2932 * gtk/gtkiconview.c (gtk_icon_view_move_cursor_start_end): Use
2933 the internal unselect_all function, since we need the unselection
2934 to happen even in browse mode. (#300995, Mathias Hasselmann)
2936 * gtk/gtkuimanager.c (update_node): Use g_object_notify() instead
2937 of triggering a ::notify by re-setting the property. (#300982,
2940 * gtk/gtkaction.c (connect_proxy): Use gtk_action_sync_tooltip().
2942 * gtk/gtkiconview.c (gtk_icon_view_scroll_to_item): Also
2943 scroll horizontally when necessary, and keep the northwest
2944 corner of the item visible. (#300913, Mathias Hasselmann)
2946 * tests/testiconview.c: Add some more tests.
2948 * gtk/gtkiconview.c (gtk_icon_view_select_path): Don't crash
2949 if the path does not point to a row in the model. (#300909,
2951 (gtk_icon_view_rows_reordered): Re-layout here. (#301009,
2954 * tests/testtext.c: Add some more attribute tests.
2956 * gtk/gtktexttag.c (gtk_text_tag_class_init): Correct the documentation
2957 of the rise property. String change, but it is more important to
2958 be correct than to be translated. (#301740)
2960 2005-04-25 Tor Lillqvist <tml@novell.com>
2962 * gtk/gtkfilesystemwin32.c
2963 (gtk_file_system_win32_volume_get_display_name): Get volume name
2964 also on Win9x. (#301798, Daniel Atallah)
2965 (canonicalize_filename): Add explicit braces to silence compiler
2968 2005-04-22 Tor Lillqvist <tml@novell.com>
2970 * gtk/gtkmain.c: Initailize gettext before use. Calling
2971 bindtextdomain() and bind_textdomain_codeset() in
2972 do_post_parse_initialization() is too late. Put the calls in a new
2973 function gettext_initialization(), and call that from
2974 gtk_init_with_args() and gtk_parse_args(). Fixes #170948 for
2975 GTK+'s part, but the same problem occurs also at least in
2976 atk. Thanks to Robert Ögren, Daniel Atallah and Kevin Stange.
2978 2005-04-19 Ivan, Wong Yat Cheung <email@ivanwong.info>
2980 * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Match
2981 character height instead of cell height. Fix #301228.
2983 2005-04-18 Federico Mena Quintero <federico@ximian.com>
2985 Merged from gtk-2-6:
2987 * gtk/gtkfilechooserdefault.c (remove_selected_bookmarks): Remove
2988 obsolete assertion that the selected row can't be a volume; this
2989 is handled by the "removable" column now. Fixes #301017.
2991 2005-04-18 Owen Taylor <otaylor@redhat.com>
2993 * gtk/gtkstyle.c gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c
2994 * gdk/gdkcolor.c gdk/gdkwindow.c gdk/gdkpixbuf-render.c
2995 gdk/gdkpango.c tests/testcairo.c: Update to new Cairo API for
2996 setting color and opacity. (#301066, Vincent Noel)
2998 2005-04-15 Federico Mena Quintero <federico@ximian.com>
3000 Merged from gtk-2-6:
3002 * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
3003 Patch from Christian Neumair <chris@gnome-de.org>; only select the
3004 first row if we are in OPEN mode. The only other case we were
3005 letting pass through was SELECT_FOLDER, but selecting the first
3006 row when changing folders confuses people when folders are
3007 actually being selected. Fixes #171885.
3009 2005-04-13 Matthias Clasen <mclasen@redhat.com>
3011 * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose):
3012 Revert the fix for #169870, adjust the documentation instead.
3014 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
3015 Revert the fix for #170727.
3017 2005-04-11 Ivan, Wong Yat Cheung <email@ivanwong.info>
3021 * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
3024 * gtk/updateiconcache.c: Guard inclusion of unistd.h and
3027 2005-04-09 Matthias Clasen <mclasen@redhat.com>
3029 * gdk/x11/gdkinput-xfree.c:
3030 * gdk/x11/gdkinput-none.c:
3031 * gdk/gtk.symbols: Some more fixes necessary to
3032 make building with gcc 4 work.
3034 Add 16x16 versions of the zoom icons and of
3035 GTK_STOCK_INDEX. Some of the images were taken from
3036 the hicolor icon theme, and were originally created
3037 by Jakub Steiner and Tuomas Kuosmanen. (#167515,
3040 * gtk/stock-icons/stock_index_16.png:
3041 * gtk/stock-icons/stock_zoom_1_16.png:
3042 * gtk/stock-icons/stock_zoom_fit_16.png:
3043 * gtk/stock-icons/stock_zoom_in_16.png:
3044 * gtk/stock-icons/stock_zoom_out_16.png: New images.
3046 * gtk/stock-icons/Makefile.am: Add the new images.
3048 * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose):
3049 Don't display too many broken images. (#169870, Roman
3050 Kagan, patch by Ivan Wong)
3052 * gtk/gtkwidget.c (gtk_widget_unparent): Remove debugging
3053 output. (#300013, Tommi Komulainen)
3055 2005-04-08 Matthias Clasen <mclasen@redhat.com>
3057 * gtk/gtkimage.c (gtk_image_expose, gtk_image_calc_size):
3058 If a stock_id is unknown, display the missing image. (#169870,
3061 * gtk/gtkiconcache.c (icon_name_hash): Use the same function
3062 as in updateiconcache.c. (spotted by Morten Welinder)
3064 2005-04-08 Carl Worth <cworth@cworth.org>
3066 * gdk/gdkpango.c: (emboss_context): Simplify matrix manipulation
3067 now that cairo exposes the cairo_matrix_t structure.
3069 * gdk/gdkpixbuf-render.c: (gdk_pixbuf_set_as_cairo_source): Track
3070 cairo API change in signedness of data argument.
3072 2005-04-08 Matthias Clasen <mclasen@redhat.com>
3074 * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make this
3075 work when called from gtk_combo_box_destroy(). (#172999,
3078 2005-04-08 Matthias Clasen <mclasen@redhat.com>
3080 Fix double-click to autosize treeview columns. This was
3081 probably broken since 2.2 ! (#169675)
3083 * gtk/gtktreeview.c (gtk_tree_view_button_press): Leave the
3084 "user-resized" state of the column on a double-click to
3086 (gtk_tree_view_button_press, gtk_tree_view_motion_resize_column):
3087 Enter the "user-resized" state of the column only if a drag
3088 actually changes the column width, not on any click.
3090 2005-04-07 Matthias Clasen <mclasen@redhat.com>
3092 * gtk/gtkmenu.c (gtk_menu_paint): Allow setting background
3093 images on menus. (#169532, Benjamin Otte)
3095 * gtk/updateiconcache.c (write_card16, write_card32): Avoid
3096 unaligned access. (#172947)
3098 * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu):
3099 Consistently use the term "Bookmarks" in the UI. (#166906,
3102 Some fixes from Morten Welinder (#172947):
3104 * gtk/updateiconcache.c (icon_name_hash): Make this compiler-
3105 and platform-independent.
3106 (is_cache_up_to_date): Don't compare mtimes is a stat call failed.
3107 (build_cache): Error out if a stat fails.
3109 2005-04-07 Matthias Clasen <mclasen@redhat.com>
3111 * gtk/gtktreeview.c (gtk_tree_view_set_expander_column): Add
3112 a hint about hiding expanders.
3114 * gtk/updateiconcache.c (is_cache_up_to_date): Return
3115 TRUE if the cache is newer than the directory. (#172852,
3118 * configure.in: Replace an explicit pkg-config by
3119 $PKG_CONFIG. (#168074, Hans-Wolfgang Loidl)
3121 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region):
3122 Ignore regions which fall completely outside the line.
3123 (#165862, Felipe Heidrich)
3125 2005-04-06 Matthias Clasen <mclasen@redhat.com>
3127 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Document
3128 -1 as possible value.
3129 (gtk_tree_view_enable_model_drag_source)
3130 (gtk_tree_view_enable_model_drag_dest): Pass the target list
3131 to the underlying dnd implementation, otherwise we miss the
3132 target info in the drag-data-received signal. (#164085, Jorn
3135 2005-04-06 Matthias Clasen <mclasen@redhat.com>
3137 * gtk/gtktreeview.c (gtk_tree_view_motion_resize_column)
3138 (gtk_tree_view_bin_expose): Avoid a few unnecessary calls
3139 to gdk_window_get_pointer(). (#168015, Billy Biggs)
3141 * po/.cvsignore, po-properties/.cvsignore: Remove
3142 Makefile.in.in. (#171092, Stepan Kasal)
3144 * gtk/gtkrc.c (gtk_rc_parse_style): Don't modify
3145 scanner->value, copy it first. (#165693, Tommi Komulainen)
3147 2005-04-05 Matthias Clasen <mclasen@redhat.com>
3149 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_grab_focus):
3150 * gtk/gtkcombobox.c (gtk_combo_box_grab_focus): Implement
3151 grab_focus for GtkComboBox and GtkComboBoxEntry. (#171912,
3154 * gtk/gtkicontheme.c: Store icon caches along with the
3155 mtimes of the toplevel directories. The previous
3156 mechanism of a hashtable-per-theme caused duplicate icon
3157 caches for the same toplevel directory to be created.
3160 2005-04-05 Matthias Clasen <mclasen@redhat.com>
3162 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_build_level):
3163 Fix a typo in a warning.
3165 * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Protect
3166 the license and credits buttons from being affected by
3167 gtk_widget_show_all(). (#172724)
3169 2005-04-05 Matthias Clasen <mclasen@redhat.com>
3171 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): Keep a
3172 reference to the item. (#167920, Hazael Maldonado Torres)
3174 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Add some
3175 more docs on interactive search.
3177 2005-04-05 Tor Lillqvist <tml@novell.com>
3179 * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Handle 16 colour
3180 display mode. For some reason, in this mode GetDeviceCaps(BITSPIXEL)
3181 returns 1 (but GetDeviceCaps(NUMCOLORS) does return 16). (#143415)
3183 * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Don't force
3184 24bpp GdkVisual on 32bpp displays. (#140706)
3186 Mon Apr 4 19:13:23 2005 Jonathan Blandford <jrb@redhat.com>
3188 Fix for #172319, Tristan Van Berkom:
3190 * gtk/gtktreeview.c (gtk_tree_view_expand_all): change to use
3191 gtk_tree_view_real_expand_row() instead of doing this by hand.
3193 2005-04-04 Johan Dahlin <johan@gnome.org>
3195 * gtk/gtktextbuffer.c: (gtk_text_buffer_class_init),
3196 (gtk_text_buffer_set_property), (gtk_text_buffer_get_property),
3197 (gtk_text_buffer_set_text): Add GtkTextBuffer::text (#172631)
3199 Mon Apr 4 14:33:55 2005 Manish Singh <yosh@gimp.org>
3201 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text):
3202 cast combo->priv->entry to GTK_ENTRY()
3204 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
3205 cast completion->priv->tree_view to GTK_TREE_VIEW()
3207 2005-04-04 Matthias Clasen <mclasen@redhat.com>
3209 * gtk/gtktextbuffer.c: Some trivial doc fixes.
3211 * gtk/gtkwidget.c (gtk_widget_set_redraw_on_allocate): Improve
3212 the wording of the doc comment. (#172422, Vincent Untz)
3214 2005-04-04 Owen Taylor <otaylor@redhat.com>
3216 * gtk/gtkstyle.c (gtk_default_draw_expander): Covert expander
3217 drawing to Cairo. Also always draw the entire triangle instead
3218 of just drawing the center for prelight. (Fixes inconsistent
3219 drawing in GtkTreeView.)
3221 2005-04-04 Johan Dahlin <johan@gnome.org>
3223 * gtk/gtk.symbols: Remove symbols accidentally added.
3224 * gtk/gtkentryprivate.h: Add boolean property popup_set_width
3225 * gtk/gtktoggletoolbutton.c: (gtk_toggle_tool_button_class_init):
3226 Use object_class instead of gobject_class
3228 Mon Apr 4 12:14:35 2005 Søren Sandmann <sandmann@redhat.com>
3230 * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Translate x, y into
3231 widget coordinates instead of root coordinates. Patch from Jorn
3234 2005-04-04 Matthias Clasen <mclasen@redhat.com>
3236 * gtk/gtktoolbar.c: Add a tooltips property.
3238 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_class_init):
3239 * gtk/gtkruler.c (gtk_ruler_class_init): Add docs.
3241 * gtk/gtktoggletoolbutton.c: Add an active property.
3243 2005-04-04 Matthias Clasen <mclasen@redhat.com>
3245 Allow completion popups to be wider than the entry. (#131916,
3248 * gtk/gtkentrycompletion.[hc]: Add a boolean popup-set-width property.
3250 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
3251 Don't force the popup to have the same width as the entry if
3252 popup-set-width is FALSE.
3254 * gtk/gtk.symbols: Add new functions.
3256 2005-04-04 Matthias Clasen <mclasen@redhat.com>
3258 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
3259 Use gtk_accel_map_change_entry(), so that reusing the same
3260 action name works. (#170727, Paolo Borelli)
3262 2005-04-04 Tor Lillqvist <tml@novell.com>
3264 * gdk/win32/gdkmain.c (_gdk_win32_cf_to_string): New debugging
3265 function, to log a clipboard format name symbolically.
3266 (_gdk_win32_data_to_string): Also new, to log random data bytes.
3268 Implement delayed rendering on Win32, specifically for transfering
3269 images through the clipboard from GTK+ apps to other
3270 apps (#168173, implementation by Ivan Wong):
3272 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
3273 Handle WM_RENDERFORMAT.
3275 * gdk/win32/gdkprivate-win32.h
3276 * gdk/win32/gdkglobals-win32.c: Add _format_atom_table,
3277 _delayed_rendering_data and _image_bmp.
3279 * gdk/win32/gdkmain-win32.c: Initialize _image_bmp.
3281 * gdk/win32/gdkproperty-win32.c (gdk_property_change):
3282 Accept formats other than GDK_TARGET_STRING or _utf8_string, and
3283 assume they are handled through delayed rendering.
3285 * gdk/win32/gdkselection-win32.c (gdk_selection_convert):
3286 Return all available formats (including those registered by GTK+
3287 apps) on request_targets.
3288 (gdk_selection_property_get): We should append a zero byte like
3290 (gdk_win32_selection_add_targets): New function, for
3291 gtkselection's use. Win32 requires that the clipboard owner
3292 registers all valid formats even if the owner wants delayed
3294 (_gdk_win32_selection_convert_to_dib): New function. Convert
3295 images to DIB using gdk-pixbuf.
3297 * gdk/win32/gdkwin32.h: Declare gdk_win32_selection_add_targets().
3299 * gtk/gtkselection.c (gtk_selection_add_target,
3300 gtk_selection_add_targets): Call gdk_win32_selection_add_targets()
3301 to register target formats.
3303 * gdk/gdk.symbols: Add gdk_win32_selection_add_targets().
3305 2005-04-03 Hans Breuer <hans@breuer.org>
3307 [merged from gtk-2-6 branch]
3308 * gdk/win32/gdkdrawable-win32.c : let dash_offset shift the start of
3309 the line pattern not the start of the line. Fixes bug #171641.
3311 * gtk/makefile.msc.in : follow .symbols changes
3313 * gdk/win32/gdkwindow-win32.c : declare and resolve GetAncestor()
3314 dynamically. (It is not available in _WIN_VER <= 0x0400)
3316 * gdk/win32/makefile.msc : removed gdkpango-win32.obj
3318 * gtk/gtkhsv.c gtk/gtkstyle.c : use G_PI instead of M_PI
3320 [also applied to gtk-2-6 branch]
3321 * gdk/makefile.msc gdk-pixbuf/makefile.msc : handle gdk*alias.def
3323 * gdk/makefile.msc.in : add gtkmnemonichash.obj
3325 * test/testgtk.c(set_parent_signal) : use g_message instead of
3326 g_print to keep the 'testgtk --bench=all' output clean
3328 2005-04-03 Matthias Clasen <mclasen@redhat.com>
3330 * gtk/gtkruler.c: Add a "metric" property.
3332 * gtk/gtkradiomenuitem.c: Add a "group" property like
3333 the one found in radio buttons.
3335 * gtk/gtkradiobutton.c (gtk_radio_button_class_init): Fix
3337 (gtk_radio_button_set_group): Add change notification.
3339 2005-04-01 Matthias Clasen <mclasen@redhat.com>
3341 * gtk/gtkselection.c: Move documentation inline, document
3342 if add_target functions append or prepend. (#172350,
3345 2005-04-01 Matthias Clasen <mclasen@redhat.com>
3347 Make gtk_combo_box_get_active_text do the right thing for
3348 GtkComboBoxEntry (#171373, Robert Staudinger)
3350 * gtk/gtkcombobox.h: Add a get_active_text vfunc.
3352 * gtk/gtkcombobox.c (gtk_combo_box_real_get_active_text): And
3355 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text):
3356 Implement get_active_text by always returning the content of
3359 2005-03-31 Sven Neumann <sven@gimp.org>
3361 Merged from gtk-2-6:
3364 * gtk/gtkiconview.c: fixed gtk-doc comments.
3366 2005-03-31 Michael Natterer <mitch@gimp.org>
3368 Allow to pop up menus without grabbing the keyboard. Useful for
3369 stuff like virtual keyboards. Fixes bug #159890
3372 * gtk/gtkmenushell.[ch]: added boolean property "take-focus"
3373 and public API gtk_menu_shell_set/get_take_focus().
3375 * gtk/gtkmenu.c (gtk_menu_popup)
3376 (popup_grab_on_window): don't grab the keyboard if take_focus
3379 * gtk/gtkmenuitem.c (_gtk_menu_item_popup_submen): propagate the
3380 parent menu_shell's take_focus property to the submenu which is
3381 about to be popped up.
3383 2005-03-30 Federico Mena Quintero <federico@ximian.com>
3385 Merged from gtk-2-6:
3389 * gtk/gtktreeview.c (gtk_tree_view_row_changed): Only stop editing
3390 if the row which changed is the same as the row being edited.
3392 2005-03-30 Matthias Clasen <mclasen@redhat.com>
3394 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
3395 Make enable_search control only typeahead, not C-f. (#170435,
3397 (gtk_tree_view_start_interactive_search): Pass keybinding == TRUE.
3399 * gdk/gdkpixbuf.h: Include cairo.h
3401 * gtk/gtkclipboard.c (gtk_clipboard_set_can_store):
3402 Don't accept n_targets == -1.
3403 (clipboard_unset): unref the old_data, not the
3404 user_data which we have just cleared. (#172038, Sven
3407 * gtk/gtkcombobox.c (gtk_combo_box_popup): Don't
3408 segfault if somebody tries to popup an unrealized
3409 combo box. (#172031, Felipe Heidrich)
3411 2005-03-30 Tor Lillqvist <tml@novell.com>
3413 * gdk/win32/gdkevents-win32.c (build_pointer_event_state): The
3414 state field should represent the state before the event, like on
3416 (gdk_event_translate): Fix event filter handling. If an event
3417 filter (global, client message filter, of window-specific) returns
3418 GDK_FILTER_CONTINUE, continue as if nothing happened. If it
3419 returns GDK_FILTER_REMOVE or GDK_FILTER_TRANSLATE, return TRUE
3420 from gdk_event_translate() which means that DefWindowProc() will
3422 (gdk_event_translate): Fix client message handling. Append a
3423 GDK_CLIENT_EVENT unless there is a filter that matches and returns
3424 something other than GDK_FILTER_CONTINUE. (#135552)
3426 2005-03-29 Matthias Clasen <mclasen@redhat.com>
3428 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_visible_func):
3429 Document the need to refilter if parameters of the visibility function
3430 change. (#169516, Olivier Sessink)
3432 Mon Mar 28 15:13:42 2005 Søren Sandmann <sandmann@redhat.com>
3434 * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Don't
3435 invalidate areas that are covered by mapped input-output child
3436 windows. Bug 141380.
3438 2005-03-28 Jeroen Zwartepoorte <jeroen.zwartepoorte@gmail.com>
3440 * gtk/gtkfilechooserdefault.c: (update_preview_widget_visibility): Make
3441 the preview label ellipsize so the dialog layout stays constant.
3444 2005-03-28 Matthias Clasen <mclasen@redhat.com>
3446 * gtk/gtktreeview.c (gtk_tree_view_key_press): Don't pop up
3447 the context menu of the search entry if it is not visible.
3448 (#169534, Billy Biggs)
3450 2005-03-27 Tor Lillqvist <tml@novell.com>
3452 * configure.in: Apparently AC_LIBTOOL_WIN32_DLL isn't deprecated
3453 after all, and in fact necessary with HEAD libtool.
3455 2005-03-26 Matthias Clasen <mclasen@redhat.com>
3458 * gdk/gdkdisplaymanager.c:
3459 Use canonical names for g_object_notify() as well.
3461 2005-03-24 Tor Lillqvist <tml@novell.com>
3463 * configure.in (GTK_EXTRA_CFLAGS): Include the -mms-bitfields flag
3464 in GTK_EXTRA_CFLAGS on Win32, so that it gets included in the
3465 gtk+-2.0.pc file and automatically used by dependents. MSVC users
3466 who use pkg-config will have to manually edit it out from
3467 gtk+-2.0.pc, sorry. Maybe pkg-config should be enhanced to support
3468 some kind of conditionals in .pc files?
3470 2005-03-23 Matthias Clasen <mclasen@redhat.com>
3472 * gtk/gtkfilechooserbutton.c (update_combo_box): Remove
3473 a call whose result was unused and leaked. (#170776,
3476 Some cleanups to the GtkDialog code: (#170746,
3478 * gtk/gtkdialog.c (action_widget_activated): Simplify,
3479 use _gtk_dialog_get_response_for_widget.
3480 (gtk_dialog_add_action_widget): Use the correct signal
3482 (gtk_dialog_set_response_sensitive):
3483 (gtk_dialog_set_default_response): Use get_response_data.
3484 (gtk_dialog_run): Don't disconnect the signals if the
3485 dialog was destroyed while running.
3487 Tue Mar 22 14:16:31 2005 Manish Singh <yosh@gimp.org>
3489 * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label):
3490 Use g_return_if_fail, not g_return_val_if_fail.
3492 2005-03-22 Matthias Clasen <mclasen@redhat.com>
3494 Implement bookmark renaming (#136216, Sean Middleditch)
3496 * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Add
3497 get_bookmark_label and set_bookmark_label vfuncs.
3499 * gtk/gtkfilesystem.h:
3500 * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label):
3501 (gtk_file_system_get_bookmark_label): Wrappers for the
3504 * gtk/gtk.symbols: Add new exported symbols.
3506 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_set_bookmark_label):
3507 (gtk_file_system_unix_get_bookmark_label): Implementations
3508 for the Unix backend.
3510 * gtk/gtkfilechooserdefault.c: Add a context menu to
3511 the bookmarks pane, and allow to rename bookmarks.
3513 2005-03-22 Matthias Clasen <mclasen@redhat.com>
3515 * gtk/gtkpathbar.c (gtk_path_bar_unmap):
3516 * gtk/gtkspinbutton.c (gtk_spin_button_unmap):
3517 * gtk/gtknotebook.c (gtk_notebook_unmap):
3518 * gtk/gtkrange.c (gtk_range_unmap): Stop scrolling when
3519 the widget is unmapped. (#168791, Ryan Lortie)
3521 2005-03-21 Matthias Clasen <mclasen@redhat.com>
3523 * gtk/gtkprivate.h: Define macros GTK_PARAM_READABLE,
3524 GTK_PARAM_WRITABLE, GTK_PARAM_READWRITE which are like
3525 their G_ counterparts, but also mark the name, nick
3526 and blurb as static.
3528 * gtk/*.c: Mark param spec strings as static, using
3531 * gtk/gtkspinbutton.h: Fix a typo.
3533 2005-03-21 Matthias Clasen <mclasen@redhat.com>
3535 * gtk/gtkcellrendererprogress.c:
3536 * gtk/gtkcellrendererpixbuf.c:
3537 * gtk/gtkcellrenderercombo.c:
3538 * gtk/gtkcellrenderer.c:
3539 * gtk/gtkcalendar.c:
3543 * gtk/gtkaspectframe.c:
3545 * gtk/gtkalignment.c:
3546 * gtk/gtkactiongroup.c:
3548 * gtk/gtkaccellabel.c:
3549 * gtk/gtkaboutdialog.c: Mark param spec strings as static.
3551 * gdk/gdkpango.c (gdk_pango_renderer_class_init):
3552 * gdk/gdkdisplaymanager.c (gdk_display_manager_class_init): Mark
3553 param spec strings as static.
3555 2005-03-21 Tor Lillqvist <tml@novell.com>
3557 * modules/engines/ms-windows/*.c: Silence gcc warnings (unused
3558 variables, unhandled enum value in switch). Use g_object_unref()
3559 instead of deprecated gdk_gc_unref() and gdk_drawable_unref().
3561 * modules/engines/ms-windows/xp_theme.c (xp_theme_map_gtk_state):
3562 Add missing "case" keyword.
3564 * modules/engines/ms-windows/Makefile.am: Link with -lgdi32
3567 2005-03-20 Tor Lillqvist <tml@novell.com>
3569 * gdk/win32/gdkdisplay-win32.c (gdk_display_get_name): Return the
3570 Terminal Services session number, window station name (always
3571 "WinSta0" in interactive processes), and desktop name (typically
3572 "Default"), concatenated with backslash separators.
3573 (gdk_display_open): Accept only NULL or the string
3574 gdk_display_get_name() returns as display name.
3576 2005-03-20 Matthias Clasen <mclasen@redhat.com>
3578 Make PLT-reduction work with gcc4, and don't include
3579 everything in gdkalias.h:
3581 * gtk/grk.symbols: Group symbols by header and source file.
3582 * gtk/makegtkalias.pl: Protect definitions by the same
3583 preprocessor symbols used to guard the headers. Move
3584 the alias declarations to a separate file which is
3585 produced when calling makegtkalias.pl -def
3586 * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate
3588 * gtk/*.c: Include gtkalias.h after the other headers,
3589 include gtkaliasdef.c at the bottom.
3590 * gtk/*.h: Small cleanups.
3592 Fri Mar 18 23:59:49 2005 Soeren Sandmann <sandmann@redhat.com>
3594 * gtk/gtkmenutoolbutton.c (arrow_button_button_press_event_cb):
3595 Make right-clicks not pop up the menu.
3597 2005-03-18 Owen Taylor <otaylor@redhat.com>
3599 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_drawable_finish):
3600 Call cairo_surface_finish()
3602 * gdk/gdkinternals.c gdk/x11/gdkdrawable-x11.c: Remoev
3603 _gdk_windowing_set_surface_device_offset().
3605 2005-03-18 Tor Lillqvist <tml@novell.com>
3607 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
3608 WM_MOUSEMOVE, don't check if this process owns the active
3609 window. This makes cross-application widget embedding work better.
3610 On WM_MOVE, don't bother checking for window visibility.
3612 * gdk/win32/gdkim-win32.c: Remove bogus empty doc comment. Remove
3613 unused variables. Add some casts to silence gcc.
3615 2005-02-24 Owen Taylor <otaylor@redhat.com>
3617 * gdk/gdkwindow.c: Use cairo_set_device_offset().
3619 * gdk/win32/gdkdrawable-win32.[ch] gdk/win32/gdkwindow-win32.c
3620 gdk/win32/gdkpixmap-win32.c:
3621 Add_gdk_win32_drawable_acquire/release_dc() to get a DC for the
3622 drawable. Add _gdk_drawable_win32_finish() to clean up resources
3623 when a drawable is destroyed.
3625 * gdk/win32/gdkgc-win32.c gdk/win32/gdkdrawable-win32.c
3626 (blit_from_pixmap) gdk/win32/gdkprivate-win32.h : Use
3627 acquire/release_dc when getting a DC to use with a GC or for
3628 blitting from a pixmap.
3630 * gdk/win32/gdkdrawable-win32.[ch]: Implement ref_cairo_surface()
3632 * gdk/win32/gdkpango-win32.c gdk/win32/gdkdrawable-win32.c Makefile.am:
3633 Remove gdk_screen_get_pango_context(), draw_glyph[_transformed]
3636 * gdk/win32/gdkdrawable-win32.c: Remove
3637 gdk_draw_rectangle_alpha_libgtk_only()
3639 2005-03-17 Owen Taylor <otaylor@redhat.com>
3641 * gdk/gdkpango.c: Fix get_stipple_surface to actually work, set
3642 EXTEND_REPEAT on the stipple pattern.
3644 2005-03-17 Matthias Clasen <mclasen@redhat.com>
3646 * gtk/gtklabel.c (gtk_label_set_markup): Fix formatting
3647 in example in the docs. (#170611, Jianfei Wang)
3649 * gtk/gtkiconview.c (gtk_icon_view_size_allocate): Clamp
3650 adjustment values on resize. (#170567, Tomislav Jonjic)
3652 * gtk/gtkicontheme.c (theme_lookup_icon): Don't crash
3653 if there is no cache. (#170652, Diego Gonzalez)
3655 * gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix):
3656 Make inline completion insert the prefix at the
3657 right spot. (#170146, Doug Quale)
3659 2005-03-17 Tor Lillqvist <tml@novell.com>
3661 * gdk/gdkkeynames.c: gdk_key is a typedef, not a struct tag.
3663 2005-03-16 Matthias Clasen <mclasen@redhat.com>
3665 * gtk/gtkprogressbar.c (gtk_progress_bar_get_ellipsize):
3666 Typo fix in the docs.
3668 * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_set_arrow_tooltip):
3669 Typo fix in the docs.
3671 * gtk/gtkiconview.c (gtk_icon_view_set_columns)
3672 (gtk_icon_view_get_columns, gtk_icon_view_set_item_width)
3673 (gtk_icon_view_get_item_width, gtk_icon_view_set_spacing)
3674 (gtk_icon_view_get_spacing, gtk_icon_view_set_row_spacing)
3675 (gtk_icon_view_set_column_spacing)
3676 (gtk_icon_view_get_row_spacing, gtk_icon_view_get_margin)
3677 (gtk_icon_view_set_margin): Add docs.
3679 * gtk/gtkcellview.c (gtk_cell_view_get_displayed_row):
3682 2005-03-15 Owen Taylor <otaylor@redhat.com>
3684 * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkpixmap.c gdk/gdkwindow.c
3685 gdk/x11/gdkdrawable-x11.c gdk/x11/gdkpixmap-x11.c gdk/x11/gdkwindow-x11.c
3686 gdk/gdkinternals.h: Switch set_cairo_target() virtual function to
3689 * gdk/gdkdrawable.h gdk/gdkdraw.h: Switch set_cairo_target() virtual
3690 function to create_cairo_context()
3692 * gdk/gdkwindow.c: Clear double buffer pixmaps with Cairo.
3694 * gdk/x11/gdkwindow-x11.c: Keep all components in GdkWindowObject.bg_color,
3697 * tests/testcairo.c: Update for create_cairo_context()
3699 * gdk/gdkdraw.c (gdk_draw_trapezoids, gdk_draw_glyphs[_transformed]):
3700 Reimplement in terms of Cairo, bypass the vtable entries.
3702 * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkdisplay-x11.[ch]
3703 gdk/x11/gdkgc-x11.c gdk/x11/gdkpango-x11.c
3704 gdk/x11/gdkprivate-x11.h gdk/x11/Makefile.am: Remove
3705 implementation of draw_trapezoids / draw_glyphs[_transformed].
3707 * gdk/gdkpango.c: Switch GdkPangoRenderer to use Cairo
3709 * gdk/gdkpango.c gdk/x11/gdkpango-x11.c: Move
3710 gdk_pango_context_get_for_screen() into the backend independent code.
3712 * gdk/x11/gdkdrawable-x11.[ch]: Remove Xft use, use RENDER directly
3715 * gdk/gdkdrawable.h gdk/x11/gdkdrawable-x11.c: Remove
3716 gdk_draw_rectangle_alpha_libgtk_only.
3718 * gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c: Add
3719 gdk_pixbuf_set_as_cairo_source()
3721 * gdk/gdk.symbols: Update
3723 * gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkruler.[ch]
3724 gtk/gtk[hv]ruler.c: Convert to Cairo rendering.
3726 * gtk/gtkstyle.c (gtk_default_draw_check, gtk_default_draw_focus,
3727 gtk_default_draw_option): Switch to Cairo. Simplify the checkbutton,
3728 radio button style for now to get something more scalable.
3730 * gtk/gtksettings.c: #if 0 out the code to use PangoXft for hinting/
3731 antialiasing/dpi settings.
3733 2005-03-16 Matthias Clasen <mclasen@redhat.com>
3735 * demos/gtk-demo/editable_cells.c: Also demonstrate
3736 GtkCellRenderer::editing-started and separators.
3738 Tue Mar 15 20:34:33 2005 Manish Singh <yosh@gimp.org>
3740 * gdk/x11/gdkinput-xfree.c: #include gdkaliasdef.c here too.
3742 2005-03-15 Matthias Clasen <mclasen@redhat.com>
3744 Make PLT-reduction work with gcc4, and don't include
3745 everything in gdkalias.h:
3747 * gdk/gdk.symbols: Group symbols by header and source file.
3748 * gdk/makegdkalias.pl: Protect definitions by the same
3749 preprocessor symbols used to guard the headers. Move
3750 the alias declarations to a separate file which is
3751 produced when calling makegdkalias.pl -def
3752 * gdk/Makefile.am (gdkaliasdef.c): Add a rule to generate this
3754 * gdk/*.c, gdk/x11/*.c: Include gdkalias.h after the other
3755 headers, include gdkaliasdef.c at the bottom.
3757 2005-03-16 Tor Lillqvist <tml@novell.com>
3759 * gdk/win32/gdkdisplay-win32.c (_win32_on_clipboard_change): Print
3760 debugging output only if asked for, not always.
3762 * gdk/win32/*.c: Use the %+d%+d format for coordinate pairs in
3763 debugging printout instead of +%d+%d. Misc other additions and
3764 cosmetic improvements to debugging printouts. Use API_CALL() and
3765 GDI_CALL() macros in more places.
3767 * gdk/win32/gdkwindow-win32.c (gdk_window_move, gdk_window_resize,
3768 gdk_window_move_resize): To detect child windows, check whether
3769 the real parent is not the desktop window, instead of relying on
3770 the GDK window type being GDK_WINDOW_CHILD. Foreign GtkPlug
3771 windows have a GDK window type GDK_WINDOW_FOREIGN, but are still
3772 de facto child windows.
3774 * gdk/win32/gdkprivate-win32.h
3775 * gdk/win32/*.c: Drop global variable _gdk_root_window, just call
3776 GetDesktopWindow(). Rename the GdkWindow* _gdk_parent_root to
3779 * gdk/win32/gdkwindow-win32.h (GdkWindowImplWin32): Add
3780 toplevel_window_type field.
3782 * gdk/win32/gdkwindow-win32.c: As there is only one root window in
3783 GDK on Win32, we can compare directly to _gdk_root instead of
3784 checking the window type.
3785 (gdk_window_reparent): When reparenting a child of the desktop
3786 clear out the window decorations. Correspondingly, when
3787 reparenting to the desktop, add decorations. As in the X11
3788 backend, save the window type of a toplevel window when
3789 reparenting, in case it is reparented back to toplevel.
3791 2005-03-15 Matthias Clasen <mclasen@redhat.com>
3793 * gtk/gtkradioaction.c (gtk_radio_action_get_group): Add an
3794 example for manually setting up a group of actions.
3796 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
3797 Document that inline completion requires text-column to be set.
3798 (gtk_entry_completion_compute_prefix): Return NULL if text-column
3801 * gtk/gtkentry.c (check_completion_callback): Call
3802 gtk_entry_completion_complete() before inserting the prefix,
3803 otherwise the prefix may depend on (random) state of the
3806 2005-03-15 Anders Carlsson <andersca@imendio.com>
3808 * docs/iconcache.txt:
3811 * gtk/gtkiconcache.c: (find_image_offset),
3812 (_gtk_icon_cache_get_icon_flags), (_gtk_icon_cache_add_icons),
3813 (_gtk_icon_cache_get_icon), (_gtk_icon_cache_get_icon_data):
3814 * gtk/gtkiconcache.h:
3815 Update to be able to fetch pixbuf data and icon metadata.
3817 * gtk/gtkicontheme.c: (theme_lookup_icon), (gtk_icon_info_free),
3818 (icon_info_ensure_scale_and_pixbuf):
3819 Use new cache functions.
3821 * gtk/updateiconcache.c: (foreach_remove_func), (load_icon_data),
3822 (maybe_cache_image_data), (scan_directory), (write_pixdata),
3823 (get_image_meta_data_size), (get_image_pixel_data_size),
3824 (get_image_data_size), (get_single_node_size), (get_bucket_size),
3825 (write_bucket), (main):
3826 Update to write pixbuf data as well as information from .icon
3829 2005-03-15 Tor Lillqvist <tml@novell.com>
3831 * gdk/win32/gdkmain-win32.c (_gdk_win32_key_to_string): New
3832 debugging function. As GetKeyNameText() returns a localized key
3833 name we need to convert it to UTF-8.
3835 * gdk/win32/gdkprivate-win32.h: Declare it.
3837 * gdk/win32/gdkevents-win32.c: Use it.
3839 * gdk/win32/gdkwindow-win32.c (gdk_window_new_internal): Fix
3840 handling of children of foreign windows. They should be child
3841 windows from Windows's perspective, even if they are toplevel GDK
3844 2005-03-13 Ivan, Wong Yat Cheung <email@ivanwong.info>
3846 * gdk/win32/gdkgeometry-win32.c (gdk_window_scroll): A further fix
3847 for big window support. Now also the test in testgtk works.
3849 2005-03-11 Matthias Clasen <mclasen@redhat.com>
3851 * gtk/gtkaboutdialog.c (add_credits_page): Don't crash on
3852 style changes. (#169334, Yury Puzis)
3854 * gtk/gtkicontheme.c (gtk_icon_theme_set_custom_theme): Fix
3855 the doc comments. (#169967, Masao Mutoh)
3857 2005-03-12 Ivan, Wong Yat Cheung <email@ivanwong.info>
3859 Big window fix for Win32. Big windows are still emulated within
3860 16-bit coordinate limits, though. Big windows now work on NT-based
3863 * gdk/win32/gdkgc-win32.c (_gdk_win32_gdkregion_to_hrgn): Use
3866 * gdk/win32/gdkgeometry-win32.c: Largely rewrite.
3868 * gdk/win32/gdkwindow-win32.c: Minor related changes.
3870 2005-03-10 Matthias Clasen <mclasen@redhat.com>
3872 * gtk/gtkliststore.c (gtk_list_store_insert_with_valuesv):
3873 Fix a doc typo. (#169873, Johan Dahlin)
3875 * gtk/gtkdialog.c (gtk_dialog_map): Don't
3876 try to focus the default_widget if there is
3877 none. (#169881, Thomas Leonard)
3879 Wed Mar 9 19:20:44 2005 Manish Singh <yosh@gimp.org>
3881 * configure.in: Remove inadvertent gail references, require
3884 2005-03-09 Matthias Clasen <mclasen@redhat.com>
3886 * configure.in: Require GLib 2.7.0
3888 2005-03-09 Matthias Clasen <mclasen@redhat.com>
3890 * gtk/gtkwidget.h (struct _GtkWidget): Typo fixes in comments.
3891 (#169728, Morten Welinder, Owen Taylor)
3893 * gtk/gtkwidget.c (gtk_widget_add_mnemonic_label): Fix a typo
3894 in the docs. (#169729, Morten Welinder)
3896 * gtk/gtkimage.c (gtk_image_class_init): Fix a typo.
3898 * gtk/gtkiconview.c (gtk_icon_view_set_model): Queue a resize
3899 when the model is unset. (#169528, Tomislav Jonjic)
3901 2005-03-09 Matthias Clasen <mclasen@redhat.com>
3903 * gtk/gtkviewport.c (gtk_viewport_class_init):
3904 * gtk/gtkuimanager.c (gtk_ui_manager_class_init):
3905 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_class_init):
3906 * gtk/gtktipsquery.c (gtk_tips_query_class_init):
3907 * gtk/gtktext.c (gtk_text_class_init):
3908 * gtk/gtkstatusbar.c (gtk_statusbar_class_init):
3909 * gtk/gtkspinbutton.c (gtk_spin_button_class_init):
3910 * gtk/gtktoggleaction.c (gtk_toggle_action_class_init):
3911 * gtk/gtkoptionmenu.c (gtk_option_menu_class_init):
3912 * gtk/gtkoldeditable.c (gtk_old_editable_class_init):
3913 * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init):
3914 * gtk/gtktoolbutton.c (gtk_tool_button_class_init):
3915 * gtk/gtktoolitem.c (gtk_tool_item_class_init):
3916 * gtk/gtkimage.c (gtk_image_class_init):
3917 * gtk/gtkruler.c (gtk_ruler_class_init):
3918 * gtk/gtkiconview.c (gtk_icon_view_class_init):
3919 * gtk/gtkprogressbar.c (gtk_progress_bar_class_init):
3920 * gtk/gtkprogress.c (gtk_progress_class_init):
3921 * gtk/gtkmenu.c (gtk_menu_class_init):
3922 * gtk/gtkscale.c (gtk_scale_class_init):
3923 * gtk/gtkpaned.c (gtk_paned_class_init):
3924 * gtk/gtkhandlebox.c (gtk_handle_box_class_init):
3925 * gtk/gtkfontbutton.c (gtk_font_button_class_init):
3926 * gtk/gtkfontsel.c (gtk_font_selection_class_init):
3927 * gtk/gtkfilesel.c (gtk_file_selection_class_init):
3928 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
3929 * gtk/gtkcurve.c (gtk_curve_class_init):
3930 * gtk/gtkcombo.c (gtk_combo_class_init):
3931 * gtk/gtkcombobox.c (gtk_combo_box_class_init):
3932 * gtk/gtkcolorbutton.c (gtk_color_button_class_init):
3933 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init):
3934 * gtk/gtkmenuitem.c (gtk_menu_item_class_init):
3935 * gtk/gtkcheckbutton.c (gtk_check_button_class_init):
3936 * gtk/gtktogglebutton.c (gtk_toggle_button_class_init):
3937 * gtk/gtkcellview.c (gtk_cell_view_class_init):
3938 * gtk/gtktoolbar.c (gtk_toolbar_class_init):
3939 * gtk/gtkmenubar.c (gtk_menu_bar_class_init):
3940 * gtk/gtkclist.c (gtk_clist_class_init):
3941 * gtk/gtkctree.c (gtk_ctree_class_init):
3942 * gtk/gtkcolorsel.c (gtk_color_selection_class_init):
3943 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init):
3944 * gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init):
3945 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_class_init):
3946 * gtk/gtkcalendar.c (gtk_calendar_class_init):
3947 * gtk/gtkbbox.c (gtk_button_box_class_init):
3948 * gtk/gtktable.c (gtk_table_class_init):
3949 * gtk/gtkaspectframe.c (gtk_aspect_frame_class_init):
3950 * gtk/gtkframe.c (gtk_frame_class_init):
3951 * gtk/gtkaction.c (gtk_action_class_init):
3952 * gtk/gtkaccellabel.c (gtk_accel_label_class_init):
3953 * gtk/gtkaboutdialog.c (gtk_about_dialog_class_init):
3954 * gtk/gtkdialog.c (gtk_dialog_class_init): More of the same.
3956 2005-03-08 Matthias Clasen <mclasen@redhat.com>
3958 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init):
3959 * gtk/gtkrange.c (gtk_range_class_init):
3960 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init):
3961 * gtk/gtktexttag.c (gtk_text_tag_class_init):
3962 * gtk/gtktextview.c (gtk_text_view_class_init):
3963 * gtk/gtkscrollbar.c (gtk_scrollbar_class_init):
3964 * gtk/gtknotebook.c (gtk_notebook_class_init):
3965 * gtk/gtkentry.c (gtk_entry_class_init):
3966 * gtk/gtkexpander.c (gtk_expander_class_init):
3967 * gtk/gtkarrow.c (gtk_arrow_class_init):
3968 * gtk/gtkalignment.c (gtk_alignment_class_init):
3969 * gtk/gtkbutton.c (gtk_button_class_init):
3970 * gtk/gtklabel.c (gtk_label_class_init):
3971 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init):
3972 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
3973 * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init):
3974 * gtk/gtktreeview.c (gtk_tree_view_class_init):
3975 * gtk/gtkbox.c (gtk_box_class_init):
3976 * gtk/gtkwindow.c (gtk_window_class_init, gtk_window_class_init):
3977 * gtk/gtkcontainer.c (gtk_container_class_init):
3978 * gtk/gtkwidget.c (gtk_widget_class_init):
3979 * gtk/gtkobject.c (gtk_object_class_init): Use canonical names
3980 when registering param specs.
3982 * demos/gtk-demo/editable_cells.c: Use GtkCellRendererCombo
3983 (#169607, Mark McLoughlin)
3985 * gtk/gtk.symbols: Add the new attributes here, too.
3988 * gtk/gtktreeview.h:
3989 * gtk/gtktreeviewcolumn.h:
3990 * gtk/gtktextbuffer.h:
3992 * gtk/gtkfilechooserdialog.h:
3994 * gtk/gtkcontainer.h:
3995 * gtk/gtkcelllayout.h:
3996 * gtk/gtkaboutdialog.h: Use G_GNUC_NULL_TERMINATED where
3997 appropriate. (#165682, Marc Meissner)
3999 2005-03-07 Matthias Clasen <mclasen@redhat.com>
4001 Convert the gdk keyval-keyname tables to a big string
4002 + offsets. (#168901)
4004 * gdk/gen-keyname-table.pl: Perl script inspired by
4005 pango/tools/gen-color-table.pl to create the
4006 gdk_keys_by_keyval and gdk_keys_by_name tables as lists
4007 of offsets pointing into a big const string.
4009 * gdk/keynames.txt: List of keyval-keyname pairs.
4010 * gdk/keyname-table.h: Generated tables.
4012 * gdk/gdkkeynames.c: Include keyname-table.h and don't
4013 generate the inverse table at runtime.
4015 2005-03-07 Matthias Clasen <mclasen@redhat.com>
4017 * gtk/gtkstyle.c: Document which parameters may be NULL.
4018 (#166855, Frank Naumann)
4020 2005-03-07 Matthias Clasen <mclasen@redhat.com>
4022 * AUTHORS: Add original authors of incorporated software.
4024 Thu Mar 3 16:59:44 2005 Manish Singh <yosh@gimp.org>
4026 * configure.in: URL escape the '+' in gtk+ in the bugzilla URL.
4028 2005-03-03 Matthias Clasen <mclasen@redhat.com>
4030 * gtk/gtksettings.c (gtk_settings_get_property):
4031 * gtk/gtkrc.c (gtk_rc_parse_assignment): Don't leak
4032 the values here. (#169047, Philip Langdale)
4034 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
4035 Don't warn if a stock icon cannot be found. (#168830,
4038 2005-03-03 Matthias Clasen <mclasen@redhat.com>
4040 * gtk/gtkwidget.c (gtk_widget_reparent_subwindows):
4041 Avoid warnings if gtk_widget_reparent() is called at
4042 unusual times. (#168966, Christian Persch)
4044 Tue Mar 1 14:04:08 2005 Manish Singh <yosh@gimp.org>
4046 * gdk/x11/gdkproperty-x11.c (virtual_atom_check_init): Cast to avoid
4047 const warnings on data structure seeding.
4049 Tue Mar 1 13:53:56 2005 Manish Singh <yosh@gimp.org>
4051 * gtk/xdgmime/xdgmime.[ch]: revert previous change, maintain ABI.
4053 2005-03-01 Matthias Clasen <mclasen@redhat.com>
4055 * gtk/gtkmenutoolbutton.c (button_state_changed_cb):
4056 Fix prelighting. (#157392, Vincent Noel, patch by
4059 * gtk/gtkicontheme.c (theme_lookup_icon): Make
4060 icon data caching work again. (#168851, Alexander Larsson)
4062 * gdk-pixbuf/gdk-pixbuf.c:
4063 * gdk-pixbuf/gdk-pixbuf-features.h.in:
4064 Revert the previous change, since it breaks
4067 2005-03-01 Matthias Clasen <mclasen@redhat.com>
4070 * gdk/gdkpixbuf-drawable.c
4072 * gdk/x11/gdkdnd-x11.c
4073 * gdk/x11/gdkevents-x11.c
4074 * gdk/x11/gdkproperty-x11.c
4075 * gdk/x11/gdkvisual-x11.c
4076 * gdk-pixbuf/gdk-pixbuf.c
4077 * gdk-pixbuf/gdk-pixbuf-features.h.in
4080 * gtk/gtkcolorbutton.c
4082 * gtk/gtkcontainer.c
4083 * gtk/gtkfilechooserdefault.c
4087 * gtk/gtkinputdialog.c
4088 * gtk/gtkitemfactory.c
4092 * gtk/gtktreedatalist.c
4093 * gtk/gtkuimanager.c
4094 * gtk/tree_minus.xpm
4096 * gtk/xdgmime/xdgmime.c
4097 * gtk/xdgmime/xdgmime.h:
4098 Move constant data to .rodata.
4100 2005-02-27 Matthias Clasen <mclasen@redhat.com>
4102 * gtk/gtkaction.c (connect_proxy): Improve the handling
4103 of buttons as action proxys. (#165534, Milosz Derezynski)
4105 * gtk/gtklabel.c (gtk_label_size_request): Fix a typo.
4106 (#168646, Vincent Untz)
4108 * gtk/gtkfilechooserdefault.c (save_folder_combo_create):
4109 Unset "focus-on-click" for the save folder combo. (#168688,
4112 2005-02-25 Matthias Clasen <mclasen@redhat.com>
4114 * demos/testpixbuf.c (main): Remove a C++ comment. (#168531,
4117 * gtk/gtkcombobox.c (gtk_combo_box_menu_fill_level): Don't leak a
4118 path here. (#168443, Morten Welinder)
4120 2005-02-24 Robert Ögren <gtk@roboros.com>
4122 Implement better handling of Wintab tablet context overlap on
4125 * gdk/win32/gdkinput-win32.c (_gdk_input_set_tablet_active): New
4126 function that brings any tablet contexts to the top of the overlap
4128 * gdk/win32/gdkinput-win32.h: Declare _gdk_input_set_tablet_active ()
4129 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
4130 Call _gdk_input_set_tablet_active when a window is activated (on
4133 2005-02-24 Matthias Clasen <mclasen@redhat.com>
4135 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_select_path):
4136 Don't leak parent_path. (#168435, Morten Welinder)
4138 Thu Feb 24 14:20:16 2005 Søren Sandmann <sandmann@redhat.com>
4140 * gtk/gtkstyle.c: Add
4142 g_return_if_fail (style->depth == gdk_drawable_get_depth(window));
4146 2005-02-24 Matthias Clasen <mclasen@redhat.com>
4148 * gtk/gtkcombobox.c: Consistently use gtk_tree_row_reference_valid().
4149 (gtk_combo_box_model_row_deleted): Update the displayed row in
4150 the cell_view. (#167842, Gustavo Carneiro)
4152 2005-02-24 Matthias Clasen <mclasen@redhat.com>
4154 Fix #167259, reported by Christian Persch:
4156 * gtk/gtkwidget.c (gtk_widget_unparent): Unmap the reparented
4157 widget, even if we avoid the unrealizing.
4158 (gtk_widget_reparent_subwindows): Make reparenting work for
4159 !NO_WINDOW widgets which have other windows which are siblings
4160 of widget->window (as e.g. GtkSpinButton).
4162 2005-02-24 Matthias Clasen <mclasen@redhat.com>
4164 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed):
4165 Don't emit a warning if a parent node is filtered out. (#164726,
4168 2005-02-23 Matthias Clasen <mclasen@redhat.com>
4170 * gtk/gtklabel.c (gtk_label_style_set): Revert the last
4171 change, since gtk_widget_set_style_internal() already
4174 2005-02-23 Matthias Clasen <mclasen@redhat.com>
4176 * gtk/gtklabel.c (gtk_label_style_set): Queue a resize, since
4177 fonts may have changed. (#164128, Phil Blundell)
4179 * gtk/gtkaboutdialog.c (gtk_about_dialog_init)
4180 (gtk_about_dialog_new): Move initialization code from _new to
4181 _init. (#168249, Murray Cumming)
4183 Wed Feb 23 17:34:01 2005 Jonathan Blandford <jrb@redhat.com>
4185 * gtk/gtktreeview.c (gtk_tree_view_node_queue_redraw): Patch from
4186 jorn@nl.linux.org (Jorn Baayen) to notice changes to fixed-height
4189 2005-02-23 Tor Lillqvist <tml@novell.com>
4191 * gdk/win32/gdkkeys-win32.c (update_keymap): Workaround for bug in
4192 MapVirtualKey(VK_DIVIDE, 0) in some Windows versions. (#142998)
4194 Tue Feb 22 13:49:09 2005 Manish Singh <yosh@gimp.org>
4196 * gtk/updateiconcache.c: #include <config.h>
4198 2005-02-22 Federico Mena Quintero <federico@ximian.com>
4200 Merged from gtk-2-6:
4202 Fix #164940, patch by Ben Maurer and Tommi Komulainen.
4204 * gdk/gdkrgb.c (gdk_rgb_convert_565_d): Constify the "dmp" variable.
4205 (gdk_rgb_convert_565_d): Likewise.
4206 (DM_565): Made a static const precomputed array to avoid
4207 allocating it at runtime.
4208 (gdk_rgb_preprocess_dm_565): #ifdef out.
4210 2005-02-20 Matthias Clasen <mclasen@redhat.com>
4213 * gtk/gtkclipboard.c: Fix links to freedesktop.org specs
4214 in the documentation.
4216 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
4217 Set have_render_with_trapezoids to GDK_YES when we have
4218 a new enough Render extension. (#167965,Billy Biggs)
4220 * gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
4221 the last user interaction when focusing the window. (#166379,
4224 Thu Feb 17 14:58:16 2005 Manish Singh <yosh@gimp.org>
4226 * gtk/gtkuimanager.c (start_element_handler): make sure expand
4227 is initialized, cast to GTK_SEPARATOR_TOOL_ITEM.
4229 Thu Feb 17 14:52:57 2005 Manish Singh <yosh@gimp.org>
4231 * gtk/gtkcombobox.c: Pass gtk_widget_get_toplevel() a GTK_WIDGET.
4233 2005-02-16 Matthias Clasen <mclasen@redhat.com>
4235 * docs/iconcache.txt: Add some information about the
4236 icon cache format (since I can't locate it at freedesktop.org)
4238 Fixes for #143829, Tommi Komulainen, Christian Persch:
4240 * gtk/gtktreeview.c (gtk_tree_view_destroy): Remove the
4241 typeselect_flush_timeout when destroying the widgets
4243 (gtk_tree_view_ensure_interactive_directory): Add the
4244 popup to the window group of the toplevel it belongs to.
4246 * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget)
4247 (gtk_combo_box_popup): Do the same here.
4249 2005-02-14 Matthias Clasen <mclasen@redhat.com>
4251 * configure.in: Kill --enable-ansi (#164394)
4253 2005-02-11 Matthias Clasen <mclasen@redhat.com>
4255 * gtk/gtkpathbar.c (gtk_path_bar_finalize): Stop scrolling
4256 when the pathbar goes away. (#167094, Rodney Dawes)
4257 (change_icon_theme): Use GTK_ICON_SIZE_MENU here as
4260 2005-02-11 Matthias Clasen <mclasen@redhat.com>
4262 Support vertical menubars (#166632):
4264 * gtk/gtkenums.h (GtkPackDirection): New enumeration for pack
4265 directions, with values for left-to-right, right-to-left,
4266 top-to-bottom and bottom-to-top.
4270 * gtk/gtkmenubar.c: Add two properties, pack-direction and
4271 child-pack-direction, which specify how children and
4272 grandchildren of a menubar are packed, with getters and setters.
4274 * gtk/gtkmenubar.c (gtk_menu_bar_set_property):
4275 (gtk_menu_bar_get_property): Implement set_property and get_property.
4277 * gtk/gtkmenubar.c (gtk_menu_bar_size_request):
4278 (gtk_menu_bar_size_allocate): Take pack direction into account.
4280 * gtk/gtkmenubar.c (gtk_menu_bar_move_current): Implement
4281 move_current here move all the menubar-specific direction
4282 tweaking from the generic menushell implementation here.
4284 * gtk/gtkmenu.c (gtk_menu_move_current): Move menu-specific
4285 direction tweaking from the generic menushell implementation here.
4287 * gtk/gtkmenuitem.c (gtk_menu_item_size_request):
4288 (gtk_menu_bar_size_allocate): Take pack direction into account.
4290 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_size_request)
4291 (gtk_image_menu_item_size_allocate):
4292 (gtk_image_menu_item_toggle_size_request): Take child pack
4293 direction into account and pack the image vertically if
4296 * gtk/gtkmenushell.c (gtk_menu_shell_real_select_item):
4297 Set the submenu direction to left-right for menuitems in
4299 (gtk_real_menu_shell_move_current): Simplify by moving
4300 direction tweaking to menu- and menubar-specific
4301 implementations. Take pack direction into account when
4304 * tests/testmenubars.c: Test menubars in various packing
4305 direction combinations.
4307 * tests/Makefile.am (noinst_PROGRAMS): Add testmenubars.
4309 2005-02-11 Matthias Clasen <mclasen@redhat.com>
4311 Complete the fix for #165770, Vincent Noel:
4313 * gtk/gtkfilechooserbutton.c (FALLBACK_ICON_SIZE): Make the
4314 fallback size be 16, to be equal to the default for
4315 GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
4316 (gtk_file_chooser_button_init):
4317 (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
4318 GTK_ICON_SIZE_SMALL_TOOLBAR.
4320 2005-02-09 Matthias Clasen <mclasen@redhat.com>
4322 * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): Fix RTL
4323 keynav for going from menubar to menu.
4325 2005-02-08 Christian Rose <menthos@menthos.com>
4327 * configure.in: Added "xh" to ALL_LINGUAS.
4329 2005-02-08 Matthias Clasen <mclasen@redhat.com>
4331 * gtk/gtkuimanager.c (start_element_handler): Accept
4332 the "expand" attribute and set a flag in the node if it
4334 (update_node): If the expand flag is set, make separator
4335 toolitems non-drawn and expanding. (#166489, Christian Persch)
4337 2005-02-05 Hans Breuer <hans@breuer.org>
4339 * gdk/makefile.msc gdk/win32/makefile.msc gtk/makefile.msc.in :
4340 build with Cairo dependency. The patch to acually use Cairo
4341 on win32 will be on gtk-devel-list soon.
4342 * tests/makefile.msc : add testcairo building
4344 * gtk/stock-icons/makefile.msc : split command line into two to
4345 work with the shells default
4347 Fri Feb 4 14:16:31 2005 Manish Singh <yosh@gimp.org>
4349 * gtk/gtkaccelgroup.c (substitute_underscores): remove unused
4352 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
4353 Add some extra parens for bitop order of operations disambiguiation.
4355 * gtk/gtkstock.c: Fix const confusion, make our own copy of the
4356 domain when setting a translate function.
4358 * tests/testcombo.c: removed unused variable.
4360 2005-02-04 Matthias Clasen <mclasen@redhat.com>
4362 * gtk/gtkstock.c (gtk_stock_lookup): Handle item->translation_domain
4363 being NULL. (#166179, Diego Gonzalez)
4365 2005-02-04 Owen Taylor <otaylor@redhat.com>
4367 * configure.in: Revert gtk_binary_version to 2.4.0. Fix
4368 up comment to talk only about backwards compat, not
4369 forward/backwards compat. (#166293, reported by Vincent Noel)
4371 2005-02-04 Matthias Clasen <mclasen@redhat.com>
4373 * gtk/gtkpaned.c (gtk_paned_compute_position): Work better
4374 when there is not enough space. This avoids a nasty size
4375 allocation loop in the file chooser. (#154007, reported
4376 by Milosz Derezynski, patch by Robert Ögren)
4378 2005-02-04 Matthias Clasen <mclasen@redhat.com>
4380 * gtk/gtkentry.c (gtk_entry_create_layout): Avoid spurious
4381 selection of RTL direction if the widget does not have
4382 focus. (#164125, Frederic Crozat)
4384 Thu Feb 3 19:15:55 2005 Manish Singh <yosh@gimp.org>
4386 * gdk/x11/gdkdrawable-x11.c: #include cairo-xlib.h
4388 2005-02-03 Owen Taylor <otaylor@redhat.com>
4390 * gdk/gdkdrawable.[ch] gdkpixmap.c gdkwindow.c: Add
4391 gdk_drawable_set_cairo_target().
4393 * tests/testtreeflow.c (enum): Use grand not rand as a variable
4394 name because one of the cairo headers is pulling in stdlib.h.
4396 * tests/testcairo.c tests/Makefile.am: Add a simple cairo based
4399 * configure.in: Bump release to 2.7.0, gtk_binary_version to 2.7.0.
4401 * Require libpangocairo for all backends.
4403 2005-02-03 Tor Lillqvist <tml@novell.com>
4405 * modules/input/gtkimcontextime.c (get_pango_attr_list): Use the
4406 wide character version of ImmGetCompositionString() here,
4407 too. (#165278, Takuro Ashie)
4409 2005-02-03 Matthias Clasen <mclasen@redhat.com>
4411 * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Don't do
4412 one roundtrip per motion event. (#166173, pointed out
4413 by Chris Lee, patch by Søren Sandmann)
4417 * gtk/gtkstock.c (gtk_stock_set_translate_func):
4418 New function which allows to change the function used for
4419 translation stock labels, on a per-domain basis. Use this
4420 functionality to switch the GTK+ stock items to use Q_()
4421 prefixed msgids. (#166179, Funda Wang)
4423 * gdk/gdkkeynames.c: Make the gdk_key array const (#166075,
4426 2005-02-02 Federico Mena Quintero <federico@ximian.com>
4428 Merged from gtk-2-6:
4430 * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
4431 Don't select the first row if the chooser is not mapped. This
4432 happens when it's acting on behalf of GtkFileChooserButton. Also,
4433 don't select the first row if we are in SAVE or CREATE_FOLDER
4434 modes --- I had missed that (see the ChangeLog entry from
4435 2005-01-18). Fixes #165264.
4437 2005-02-02 Tor Lillqvist <tml@novell.com>
4439 Implement lazy extended input initialization on Win32, by Robert
4440 Ögren. Fixes #163163, possibly #162334. Lazy initialization would
4441 be a good idea in any case even if it didn't fix any visible
4444 The Wacom tablet driver seems to get confused if Wintab is
4445 initialized but no window is shown before the process exits. This
4446 is the case for some GIMP plug-ins, for instance.
4448 * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Made
4449 non-static (and renamed).
4450 (_gdk_input_init): Don't call _gdk_input_wintab_init_check().
4452 * gdk/win32/gdkinput-win32.h: Declare _gdk_input_wintab_init_check().
4454 * gdk/win32/gdkinput.c (gdk_devices_list,
4455 gdk_display_list_devices, gdk_input_set_extension_events): Call
4456 _gdk_input_wintab_init_check() here instead.
4458 2005-02-02 Ivan, Wong Yat Cheung <email@ivanwong.info>
4460 * gdk/win32/gdkselection.c: Use a FIFO list for storing GdkSelProp
4461 of a single window so that gtk_clipboard_request_contents() can be
4462 called inside a GtkClipboardReceivedFunc(). (#163844)
4464 2005-02-01 Matthias Clasen <mclasen@redhat.com>
4466 * gtk/gtkicontheme.c (gtk_icon_theme_init): Look for icons
4467 in XDG_DATA_DIRS/pixmaps. (#165950, Thomas Zajic)
4469 * gtk/gtkwindow.c (gtk_window_set_icon_name): Set info->icon_list
4470 to NULL after freeing it. (#165800, Damon Chaplin)
4472 2005-02-01 Michael Natterer <mitch@gimp.org>
4474 * configure.in: depend on stable pango-1.8, not unstable 1.7
4476 2005-02-01 Federico Mena Quintero <federico@ximian.com>
4478 Merged from gtk-2-6:
4480 * gtk/gtkfilechooserdefault.c
4481 (browse_files_model_finished_loading_cb): Don't
4482 g_assert_not_reached() if we are in any other state. Another code
4483 path may have triggered a folder reload. Fixes #165556.
4485 2005-02-01 Federico Mena Quintero <federico@ximian.com>
4487 Merged from gtk-2-6:
4491 * gtk/gtkfilechooserdefault.c (FALLBACK_ICON_SIZE): Make the
4492 fallback size be 16, to be equal to the default for
4493 GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
4494 (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
4495 GTK_ICON_SIZE_SMALL_TOOLBAR.
4497 2005-02-01 Matthias Clasen <mclasen@redhat.com>
4499 * */*.c: Fix many instances of "the the" in docs and
4500 comments. (#165815, Masao Mutoh)
4502 * gtk/updateiconcache.c (main): Add a --quiet option.
4504 2005-02-01 Tor Lillqvist <tml@novell.com>
4506 * gdk/win32/gdkkeys-win32.c (handle_special, set_shift_vks,
4507 reset_after_dead, handle_dead): New functions, code blocks
4508 refactored out of update_keymap(). No functionality change.
4510 (update_keymap): Use ToUnicodeEx() when available (on NT-based
4511 Windows) instead of ToAsciiEx(). Makes keyboard input work in
4512 Unicode-only input locales that don't have any ANSI codepage, for
4513 instance Hindi and Bengali. Use _gdk_input_codepage only on
4516 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
4517 WM_INPUTLANGCHANGE, use GetLocaleInfo() instead of
4518 TranslateCharsetInfo() to get the input locale's corresponding
4521 2005-01-31 Matthias Clasen <mclasen@redhat.com>
4523 * modules/input/gtkimcontextxim.c: Use NULL, not 0 to terminate
4524 NULL-terminated va lists. (#165683)
4526 2005-01-29 Matthias Clasen <mclasen@redhat.com>
4528 * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_set_draw):
4529 Typo fix. (#165581, Masao Mutoh)
4531 Thu Jan 27 14:25:45 2005 Manish Singh <yosh@gimp.org>
4533 * README.cvs-commits: update ancient IRC info.
4535 2005-01-27 Federico Mena Quintero <federico@ximian.com>
4537 Merged from gtk-2-6:
4539 * gtk/gtkfilechooserdefault.c
4540 (gtk_file_chooser_default_select_path): Oops, don't assert that we
4541 can't reach the end of the function; this happens if we are still
4542 loading but don't need a path change. Fixes #165213.
4544 2005-01-27 Matthias Clasen <mclasen@redhat.com>
4546 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
4547 Make wrapping work in RTL mode.
4549 * gtk/gtkaboutdialog.c: Some visual tweaks to the about dialog,
4550 obey HIG spacing a bit more, add a hand cursor when over the
4551 link button. (#163979, Jorn Baayen)
4553 2005-01-26 Matthias Clasen <mclasen@redhat.com>
4555 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
4556 Don't allow -1 as minimum-key-length.
4557 (gtk_entry_completion_set_model): Add missing notification.
4558 (gtk_entry_completion_set_minimum_key_length): Add missing
4559 notification, allow setting minimum-key-length to 0. (#165194,
4562 2005-01-26 Matthias Clasen <mclasen@redhat.com>
4564 * gtk/gtkaboutdialog.c (display_license_dialog): Make sure
4565 the license dialog is initially displayed without a horizontal
4567 (gtk_about_dialog_class_init): Document the fact that the
4568 license text is not wrapped. (#165012, Christian Rose)
4570 2005-01-25 Matthias Clasen <mclasen@redhat.com>
4572 * gtk/gtkbutton.c (gtk_button_set_image): Fix docs. (#165180,
4575 * gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): Fix
4576 docs. (#165163, Jeff Franks)
4578 * gtk/gtkimage.c (gtk_image_get_property): Use the correct setter
4579 for a string GValue. (#165203, Damon Chaplin)
4581 2005-01-24 Matthias Clasen <mclasen@redhat.com>
4583 * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display):
4584 Initialize user_time from DESKTOP_STARTUP_ID. (#165131,
4587 2005-01-24 Federico Mena Quintero <federico@ximian.com>
4589 * gtk/gtkfilechooserdefault.c: Removed leftover comments.
4591 2005-01-24 Federico Mena Quintero <federico@ximian.com>
4593 Merged from gtk-2-6:
4595 Fix #147785 and clean up the loading code:
4597 * gtk/gtkfilechooserdefault.c (LoadState): Make the set of states
4598 be EMPTY, PRELOAD, LOADING, FINISHED.
4599 (gtk_file_chooser_default_init): Start in the LOAD_EMPTY state.
4600 (struct _GtkFileChooserDefault): Added a pending_select_paths
4602 (load_remove_timer): Add the new states.
4603 (load_setup_timer): Likewise.
4604 (load_timeout_cb): Likewise. Switch to the LOAD_LOADING state.
4605 (browse_files_model_finished_loading_cb): Switch to the
4606 LOAD_FINISHED state.
4607 (enum PendingOp): Removed.
4608 (struct _GtkFileChooserDefault): Removed the pending_op and
4609 pending_select_path fields.
4610 (pending_select_paths_free): New utility function.
4611 (pending_select_paths_add): New utility function.
4612 (gtk_file_chooser_default_finalize): Call
4613 pending_select_paths_free().
4614 (pending_op_queue): Removed.
4615 (pending_op_process): Removed.
4616 (pending_select_paths_process): New function.
4617 (browse_files_model_finished_loading_cb): Call
4618 pending_select_paths_process().
4619 (center_selected_row_foreach_cb): Handle multiple selection by
4620 only centering the first row.
4621 (get_is_file_filtered): Constify.
4622 (gtk_file_chooser_default_select_path): Queue into a list of paths
4623 to select if we are not finished loading.
4624 (show_and_select_paths): New utility function.
4625 (up_folder_handler): Use pending_select_paths_add().
4626 (gtk_file_chooser_default_should_respond): Do not call
4627 pending_op_queue(); free the pending_selected_paths instead.
4628 (gtk_file_chooser_default_initial_focus): Don't queue a pending
4629 operation, and don't select the first row unconditionally --- this
4630 will happen when the folder is done loading.
4631 (shortcuts_row_activated_cb): Free the pending_select_paths.
4632 (pending_select_paths_store_selection): New utility function.
4633 (gtk_file_chooser_default_map): Call
4634 pending_select_paths_store_selection() to save the selection
4635 before reloading the folder.
4636 (select_func): Umm? Call gtk_tree_selection_select_iter(). Don't
4637 move the cursor here; it will be done when processing the pending paths.
4639 * tests/testfilechooser.c (main): Add a button to the command
4640 window to unmap and remap the file chooser.
4642 2005-01-24 Matthias Clasen <mclasen@redhat.com>
4644 * docs/tutorial/gtk-tut.sgml:
4645 * docs/tutorial/gtk_tut.sgml:
4646 * docs/reference/gtk/tmpl/gtkliststore.sgml:
4647 * gtk/gtkactiongroup.c:
4648 * gtk/gtksizegroup.c:
4649 * gtk/gtksizegroup.h:
4650 * gtk/gtktogglebutton.c: Replace "effect" by "affect" where
4651 appropriate. (#165108, Dan Winship)
4653 2005-01-24 Matthias Clasen <mclasen@redhat.com>
4655 * gtk/gtkwidget.c (gtk_widget_class_init): Document
4656 GtkWidget::style-set. (#164222, Alex Graveley)
4658 2005-01-22 Matthias Clasen <mclasen@redhat.com>
4660 * gdk/gdkdisplay.h (gdk_display_add_client_message_filter_full):
4661 Remove the accidentally added prototype for this unimplemented
4662 function. (#164893, Jeff Franks)
4664 * gtk/gtktreeview.c (gtk_tree_view_leave_notify): Avoid spurious
4667 2005-01-23 Tor Lillqvist <tml@novell.com>
4669 * gdk/win32/gdkkeys-win32.c (update_keymap): Handle Greek tonos
4670 dead accent key. (#164859, reported and fix verified by Daniel
4673 * gtk/gtkimcontextsimple.c (gtk_compose_seqs): Handle
4674 GDK_Greek_accentdieresis (tonos and dialytika) combining with iota
4677 * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_volume_get_display_name):
4678 Don't call GetVolumeInformation() for network drives. They might
4679 be disconnected, and calling GetVolumeInformation() will then
4680 cause long delays. (#164448, reported by Dave Neary.) It seems to
4681 be very hard to reliably find out whether a network drive is
4682 connected or not, so it's easier to just not try getting the
4683 volume name for them. See the bug report for discussion.
4685 Make volume name display formats translatable.
4687 Fix for #163702, from Ivan Wong:
4689 * gdk/win32/gdkprivate-win32.h
4690 * gdk/win32/gdkglobals-win32.c: New flag _ignore_destroy_clipboard.
4692 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle
4693 WM_DESTROYCLIPBOARD. Unless _ignore_destroy_clipboard, generate a
4694 GDK_SELECTION_CLEAR event.
4696 * gdk/win32/gdkselection-win32.c
4697 (gdk_selection_owner_set_for_display): Set _ignore_destroy_clipboard
4698 when emptying the clipboard ourselves.
4700 (gdk_selection_send_notify_for_display): Remove the artifical
4701 GDK_SELECTION_CLEAR event generation.
4703 2005-01-21 Matthias Clasen <mclasen@redhat.com>
4705 * gtk/gtkwidget.c (gtk_widget_get_accessible): More details
4706 provided by Bill Haneman.
4708 2005-01-20 Matthias Clasen <mclasen@redhat.com>
4710 * gtk/gtkwidget.c (gtk_widget_get_accessible): Add docs. (#164725,
4713 * gtk/gtkdialog.c (gtk_dialog_map): Don't loop forever
4714 here, even if the only focusable widgets are labels.
4716 2005-01-20 Matthias Clasen <mclasen@redhat.com>
4718 Support tinting in GtkCellRendererPixbuf (#162903, Jorn Baayen):
4720 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init)
4721 Add a follow-state property which when TRUE causes the pixbuf
4722 to be tinted according to state.
4724 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
4725 Use follow-state and colorize the pixbuf when appropriate.
4727 2005-01-20 Matthias Clasen <mclasen@redhat.com>
4729 Support wrapping in GtkCellRendererText (#163608):
4731 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
4732 Add wrap-mode and wrap-width properties which cause a
4733 text cell to break to a specified width when set.
4735 * gtk/gtkcellrenderertext.c (get_layout): Use wrap-mode
4736 and wrap-width when they are set.
4738 2005-01-20 Matthias Clasen <mclasen@redhat.com>
4740 * gtk/gtkmodules.c (load_module): Don't reverse the order
4741 of modules when putting them in gtk_modules. (#162676, Dennis
4742 Cranston, patch by Remus Draica)
4744 * gtk/gtktreeview.c (gtk_tree_view_search_move): Don't crash
4745 if the tree is empty. (#164669, Priit Laes)
4747 Wed Jan 19 18:57:02 2005 Manish Singh <yosh@gimp.org>
4749 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call
4750 GDK_DISPLAY_XDISPLAY with a display, not a window. Clean up the
4753 Wed Jan 19 17:17:31 2005 Manish Singh <yosh@gimp.org>
4755 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Squash
4756 strict aliasing warning in _NET_VIRTUAL_ROOTS code.
4758 2005-01-19 Tor Lillqvist <tml@novell.com>
4760 * gdk/win32/gdkkeys-win32.c (update_keymap,
4761 gdk_keymap_translate_keyboard_state): Handle keyboards with
4762 ShiftLock (and not CapsLock) correctly. (#161814)
4764 2005-01-19 Matthias Clasen <mclasen@redhat.com>
4766 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
4767 In save mode, don't return paths containing nonexisting
4768 directories. (#162443, Jean Marie Favreau)
4770 * gtk/gtkobject.c (gtk_object_add_arg_type): Use GLib limit
4771 macros to avoid sparse warnings. Pointed out by Kjartan Maraas.
4773 * gdk/x11/gdkdisplay-x11.c: Precache the _NET_VIRTUAL_ROOTS
4776 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents):
4777 Support _NET_VIRTUAL_ROOTS. (#163910, Carsten Haitzler)
4781 * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_get_user_time):
4782 Add a function to obtain the last user interaction
4783 time. (#163119, Elijah Newren)
4785 Tue Jan 18 13:56:09 2005 Manish Singh <yosh@gimp.org>
4787 * gtk/gtkfilechooserdefault.c (pending_op_queue): Actually assign
4790 Tue Jan 18 13:46:46 2005 Manish Singh <yosh@gimp.org>
4792 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
4793 disambiguate nested if/else.
4795 2005-01-18 Federico Mena Quintero <federico@ximian.com>
4797 Merged from gtk-2-6:
4799 * gtk/gtkfilechooserdefault.c (pending_op_queue): Don't queue an
4800 operation to select the first file if we are in SAVE or
4801 CREATE_FOLDER modes. Executing that operation would overwrite the
4802 contents of the save-name entry.
4804 2005-01-18 Matthias Clasen <mclasen@redhat.com>
4807 * gdk/x11/gdkwindow-x11.c (gdk_display_warp_pointer):
4808 * gdk/win32/gdkwindow-win32.c (gdk_display_warp_pointer): Add
4809 pointer warping to GDK. (#160437)
4811 * gtk/gtkcolorsel.c (key_press): Use gdk_display_warp_pointer.
4813 2005-01-18 Matthias Clasen <mclasen@redhat.com>
4815 * gtk/gtkstyle.c (gtk_default_draw_check)
4816 (gtk_default_draw_option, gtk_default_draw_handle): Add some
4817 more NULL checks, patch by Michael Natterer.
4819 Tue Jan 18 10:55:47 2005 Søren Sandmann <sandmann@redhat.com>
4821 * gtk/gtkstyle.c (gtk_default_draw_handle): Check for NULL detail
4824 * gtk/gtkstyle.c (gtk_default_draw_box): Check for NULL detail and
4825 NULL widget. (#164477, Michael Natterer)
4827 2005-01-18 Matthias Clasen <mclasen@redhat.com>
4829 Avoid X errors when running against servers which
4830 implement XRender < 0.4. (#164427, Albert Chin)
4832 * gdk/x11/gdkprivate-x11.h:
4833 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
4834 New function to check for trapezoid support in XRender.
4835 (gdk_x11_draw_trapezoids, _gdk_x11_drawable_draw_xtrapezoids):
4838 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a
4839 separate have_render_with_trapezoids field.
4841 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize it.
4843 2005-01-17 Matthias Clasen <mclasen@redhat.com>
4845 * gtk/gtkiconview.c: Remove debug output. (#164376, Jens Finke)
4847 Mon Jan 17 16:44:36 2005 Jonathan Blandford <jrb@redhat.com>
4849 * docs/Makefile.am (EXTRA_DIST): add tree-column-sizing.png to
4852 2005-01-17 Matthias Clasen <mclasen@redhat.com>
4854 * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmarks): Save
4855 and restore the selected row in the bookmark list and the
4856 save folder combo. (#164290)
4858 2005-01-16 Matthias Clasen <mclasen@redhat.com>
4860 * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new_with_backend):
4861 Fix argument order in docs.
4863 2005-01-15 Matthias Clasen <mclasen@redhat.com>
4865 * gtk/gtktextview.c (gtk_text_view_check_keymap_direction):
4866 * gtk/gtkentry.c (gtk_entry_create_layout): Prefer LTR over RTL
4867 if the keymap is neutral. (#164125, Phil Blundell)
4869 2005-01-14 Matthias Clasen <mclasen@redhat.com>
4871 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Allow to
4872 reset the property to its default value -1.
4873 (gtk_tree_view_get_search_column): Return the default value in
4874 the g_return_val_if_fail() check. (#163864, Richard Hult)
4876 * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_set_value):
4877 Add a translator hint. (#163889)
4879 * configure.in: Check for _NL_TIME_FIRST_WEEKDAY too, since it
4880 is an enum value, not a define. Pointed out by Tommi Komulainen.
4881 * gtk/gtkcalendar.c (gtk_calendar_init): Adapt.
4883 2005-01-13 Matthias Clasen <mclasen@redhat.com>
4885 * configure.in: Check for nl_langinfo()
4886 * gtk/gtkcalendar.c (gtk_calendar_init): Use nl_langinfo() when it's
4887 available to determine first day of week (#163842, Vincent Untz)
4889 * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Add hints about
4890 the lifecycle of widgets. (#159503, Christian Persch)
4892 * demos/gtk-demo/main.c (create_text): Use monospace for the
4893 source code view. (#163526, Theerud Lawtrakul)
4895 * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Use R as mnemonic
4896 for the Credits button to avoid duplicate. (#163465, Tim-Philipp
4899 * configure.in: Add an OS_LINUX conditional.
4901 * gdk/Makefile.am (TESTS):
4902 * gdk-pixbuf/Makefile.am (TESTS):
4903 * gtk/Makefile.am (TESTS): Only run abicheck on Linux. (#163917,
4906 2005-01-13 Matthias Clasen <mclasen@redhat.com>
4908 * gtk/gtktreeview.c: (gtk_tree_view_class_init),
4909 (gtk_tree_view_set_headers_clickable): Make the headers-visible
4910 property readwrite instead of just writable, and remove the
4911 g_return_if_fail check that there is a model when setting this
4912 property. Also improve the blurb. (#163851, Richard Hult)
4914 2005-01-12 Owen Taylor <otaylor@redhat.com>
4916 * configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on
4917 initialization of gdktarget, that was causing it to be
4918 evaluated before host was set. Simplify --with-gdktarget help
4921 * gtk/Makefile.am: Use grep | head -n 1 instead of grep -m 1
4922 which doesn't work with slightly older versions of GNU grep
4923 in install-libtool-import-lib rule.
4925 2005-01-12 Tor Lillqvist <tlillqvist@novell.com>
4927 Fix for #162790, by Iwan Wong:
4929 * gdk/win32/gdkdrawable-win32.c: Implement dashed lines
4930 correctly. Simplify the interface to render_line_horizontal() and
4931 render_line_vertical(). Need to draw lines "manually" also on
4932 NT-based Windowses if we have a dash offset or are drawing
4933 double-dashed lines.
4935 * gdk/win32/gdkprivate-win32.h: Keep also the dash offset,
4936 double-dash flag, and a brush for the background colour (used by
4937 the odd dashes in the double-dash line style) in the GdkGCWin32
4940 * gdk/win32/gdkgc-win32.c: Set up above new fields.
4942 2005-01-10 Federico Mena Quintero <federico@ximian.com>
4946 * gtk/gtkfilesystemunix.c (STAT_NEEDED_MASK): Take out
4947 GTK_FILE_INFO_IS_HIDDEN; we don't need to stat() to know this.
4948 (gtk_file_system_unix_get_folder): Make error reporting more
4949 accurate. Don't bail out if we can't read the directory.
4950 (fill_in_stats): Don't return an error; just assume we don't have
4951 stat info for this folder's files.
4952 (fill_in_names): Don't create the hash table for the names if we
4953 can't open the directory.
4954 (gtk_file_folder_unix_list_children): Don't emit the
4955 "finished-loading" signal --- we don't do asynchronous loads, so
4956 we are always finished loading.
4957 (gtk_file_folder_unix_get_info): Use helper functions; handle the
4958 case where we can't stat '/'.
4959 (get_icon_type_from_path): Don't call fill_in_stats() here; only
4960 use the info we have.
4961 (fill_in_mime_type): Don't return an error. Don't do anything if
4962 we don't have the stat info.
4964 2005-01-10 Owen Taylor <otaylor@redhat.com>
4966 * Makefile.am (EXTRA_DIST): Adding missing ChangeLog.pre*
4969 2005-01-10 Matthias Clasen <mclasen@redhat.com>
4971 * gtk/gtkaccelgroup.c (gtk_accel_group_class_init): Document
4972 signals. (#163319, Murray Cumming)
4974 2005-01-09 Tor Lillqvist <tlillqvist@novell.com>
4976 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Set current
4977 cursor also when changing the cursor of a window that is the first
4978 ancestor of the window containing the pointer that has a cursor
4979 defined. (#163035, Ivan Wong)
4981 2005-01-09 Anders Carlsson <andersca@gnome.org>
4983 * gtk/gtkcellrenderertext.c: (get_size):
4984 * gtk/gtklabel.c: (gtk_label_size_request):
4985 * gtk/gtkprogressbar.c: (gtk_progress_bar_size_request):
4986 Don't pass NULL to pango_context_get_metrics. Use
4987 pango_context_get_language instead, which is way faster.
4989 2005-01-08 Matthias Clasen <mclasen@redhat.com>
4991 * configure.in: Bump version
4993 * === Released 2.6.1 ===
4995 * gdk-pixbuf-2.0.pc.in: Require gmodule-no-export-2.0
4997 2005-01-07 Tor Lillqvist <tml@iki.fi>
4999 * gdk/win32/gdkselection-win32.c (_gdk_selection_property_store):
5000 Fix braino. (#163232, Arnaud Charlet)
5002 2005-01-06 Matthias Clasen <mclasen@redhat.com>
5004 * gtk/gtkiconview.c: Make markup_column work, and fix some
5005 layout issues when either icon or text is missing. (#163065)
5007 2005-01-06 Federico Mena Quintero <federico@ximian.com>
5009 * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu): Add an
5010 "Open _Location" item. Fixes #148839.
5012 2005-01-06 Matthias Clasen <mclasen@redhat.com>
5014 * README.in: Fix a typo. (#163128, kentaro fukuchi)
5016 2005-01-06 James M. Cape <jcape@ignore-your.tv>
5018 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new)
5019 (gtk_file_chooser_button_new_with_backend): Use default title if
5022 * docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Make examples
5025 2005-01-05 Federico Mena Quintero <federico@ximian.com>
5029 * gtk/gtkfilechooserdefault.c (shortcuts_row_activated_cb): Queue
5030 a pending operation to select the first row.
5032 2005-01-05 Federico Mena Quintero <federico@ximian.com>
5034 * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Don't call
5035 button_data_free() explicitly; the button is weak-reffed and the
5036 callback will free the button data. Fixes #163010.
5037 (_gtk_path_bar_set_path): Don't ref/sink the button. And for the
5038 failure case, call gtk_widget_destroy() on it.
5040 * gtk/gtkfilechooserdefault.c (check_is_folder): Use
5041 gtk_file_system_get_folder() again (see the ChangeLog entry from
5042 2004-08-25). We can't first get the parent folder and then
5043 request the info for the path in question, as the parent folder
5044 may not be readable. See bug #162617.
5045 (gtk_file_chooser_default_set_current_folder): Assert that the
5046 passed-in path is not null.
5047 (shortcuts_find_current_folder): Likewise.
5048 (shortcuts_add_current_folder): Likewise.
5049 (set_list_model): Likewise.
5050 (gtk_file_chooser_default_map): Only reload the current folder if
5052 (bookmarks_check_add_sensitivity): Check for the current folder
5054 (browse_files_select_first_row): Don't set the cursor if there is
5057 2005-01-05 Matthias Clasen <mclasen@redhat.com>
5059 * gtk/gtkfilechooserdefault.c: Don't construct errors from
5060 the GTK_FILE_SYSTEM_ERROR domain. Partial fix for #162911.
5061 (get_file_info, check_is_folder): Translate errors from
5062 the filesystem into the GTK_FILE_CHOOSER_ERROR domain. Rest
5063 of the fix for #162911, noticed by Murray Cumming.
5065 Wed Jan 5 11:42:49 2005 Søren Sandmann <sandmann@redhat.com>
5067 * gtk/gtkviewport.c (gtk_viewport_realize):
5068 * gtk/gtktextview.c ((text_window_realize): Set the background of
5069 the windows to None instead of adding EXPOSURE_MASK, as suggested
5072 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Update
5073 the user time when receiving a WM_DELETE message. (#162980,
5076 Tue Jan 4 16:52:14 2005 Jonathan Blandford <jrb@redhat.com>
5078 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
5079 only reorder on button 1, part of #141937
5081 Tue Jan 4 11:36:43 2005 Søren Sandmann <sandmann@redhat.com>
5085 * gtk/gtktextview.c (text_window_realize): Add GDK_EXPOSURE_MASK
5086 to win->window's event_mask
5088 * gtk/gtkviewport.c (gtk_viewport_realize): Add GDK_EXPOSURE_MASK
5089 to viewport->view_window.
5091 2005-01-04 Matthias Clasen <mclasen@redhat.com>
5093 * demos/testpixbuf.c (main): Remove the size_prepared callback,
5094 to test incremental display.
5095 (new_testrgb_window): Return the drawing area, not the window,
5096 since we want to queue draws on the drawing area.
5098 2005-01-03 Matthias Clasen <mclasen@redhat.com>
5100 * examples/*: Re-extract.
5102 * docs/tutorial/gtk-tut.sgml: Small corrections.
5104 * docs/tutorial/gtk-tut.sgml: Some updates for the drawing
5105 section. (#161414, Robert Ancell)
5107 * docs/tutorial/gtk-tut.sgml: Make it build.
5109 * gtk/gtkdialog.c (gtk_dialog_run): Some clarification
5110 regarding modality. (#112903, Dave Bordoley)
5112 * gtk/gtkfixed.c (gtk_fixed_set_has_window):
5113 Add a little motivation. (#145556, Tommi Komulainen)
5115 * docs/tutorial/gtk-tut.sgml: Clarify section on
5116 g_signal_connect_swapped. (#120543, David Bourguignon)
5118 Make gtk_icon_theme_load_icon() work independent of
5119 icon factory initialization. (#162791, Tristan Van Berkom)
5121 * gtk/gtkiconfactory.[hc]: Rename ensure_default_icons to
5122 _gtk_icon_factory_ensure_default_icons, and make it non-static.
5124 * gtk/gtkicontheme.c (find_builtin_icon): ..and call it here.
5126 2005-01-02 Matthias Clasen <mclasen@redhat.com>
5128 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_remove_shortcut_folder):
5129 Don't add a shortcut here. (#162752, Tor Lillqvist)
5131 2005-01-02 Tor Lillqvist <tml@iki.fi>
5133 * gtk/Makefile.am (libgtk_target_ldflags): Add -lole32, needed for
5134 CoTaskMemFree in get_special_folder() below.
5136 * gtk/gtkfilesystem.h: Implement case-insensitive path compare on
5137 Win32 using _gtk_file_system_win32_path_compare().
5139 * gtk/gtk.symbols: Add _gtk_file_system_win32_path_compare.
5141 * gtk/gtkfilechooserbutton.c (model_add_special)
5142 * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Use
5143 _gtk_file_system_win32_get_desktop() to get correct Desktop folder
5146 * gtk/gtkfilesystemwin32.c: Remove unnecessary includes. Do
5147 consider all drives "mounted", including floppies. Trying to
5148 inspect the contents of a nonexistent floppy will cause errors
5149 later that are handled normally, no need to avoid them
5150 completely. Keep the drive type in the GtkFileSystemVolume.
5151 Support UNC paths. (#161797, #137874) Fix error message
5152 capitalizations as in gtkfilesystemunix.c.
5154 (gtk_file_system_win32_init): Start one timeout per
5157 (gtk_file_system_win32_finalize): Remove the timeout.
5159 (get_special_folder): Copied from GLib.
5161 (_gtk_file_system_win32_get_desktop): New function, uses
5162 get_special_folder().
5164 (gtk_file_system_win32_list_volumes): Don't start a timeout at
5165 each call to this function. Don't assume A: and B: are floppies.
5167 (gtk_file_system_win32_get_volume_for_path): Don't assume all
5168 volumes are drive roots, i.e. support share roots of UNC paths
5171 (gtk_file_system_win32_get_folder): Don't assume errno is set
5172 after g_file_test() returns FALSE. It isn't on Win32 (and even on
5173 Unix I don't think one should assume anything about errno after
5176 (gtk_file_system_win32_volume_get_is_mounted): Always return TRUE.
5178 (gtk_file_system_win32_volume_get_display_name): Don't call
5179 GetVolumeInformation() on drives A: or B: if they are removable,
5180 as they might then be floppies, causing an unnecessary
5183 (gtk_file_system_win32_volume_render_icon): Use network icon for
5184 unrecognized drive types.
5186 (canonicalize_filename, gtk_file_system_win32_parse): Don't get
5187 confused by UNC paths.
5189 (bookmarks_serialize): Use _gtk_file_system_win32_path_compare()
5190 for case-insensitive UTF-8 path comparison.
5192 (extract_icon): Use SHGetFileInfo() which is faster than
5193 ExtractAssociatedIcon(). Icon extraction is still slow, though,
5196 (win32_pseudo_mime_lookup): Don't use the same icon for all
5197 shortcuts or executables. Cache only other file type icons.
5199 (gtk_file_system_win32_render_icon): Use network stock icon for
5200 remote drives and UNC server share roots. Compare home directory
5201 case-insensitively. Do lookup icons also for executable files,
5202 after all, it's these files that can have individual icons in the
5203 first place. Yes, it can be slow. Needs work.
5205 (filename_is_drive_root): Require also the slash after the colon.
5207 (filename_is_server_share): New function.
5209 (_gtk_file_system_win32_path_compare): New function, does
5210 case-folded UTF-8 comparison.
5212 * gtk/gtkfilesystemwin32.h: Declare
5213 _gtk_file_system_win32_path_compare().
5215 2005-01-01 Matthias Clasen <mclasen@redhat.com>
5217 * gtk/gtkbutton.c (gtk_button_set_image): Allow unsetting the
5218 custom image by passing NULL.
5219 (gtk_button_init): Initialize image_is_stock to TRUE, fixing
5220 a problem with changing stock labels. (#162273, Marcin
5223 2005-01-01 Tor Lillqvist <tml@iki.fi>
5225 * gtk/gtkmodules.c (get_module_path)
5226 * gtk/gtkrc.c (gtk_rc_make_default_dir, gtk_rc_get_im_module_file,
5227 gtk_rc_get_theme_dir, gtk_rc_add_initial_default_files): With
5228 g_getenv() now returning UTF-8 on Win32, no need to call
5231 2004-12-31 Matthias Clasen <mclasen@redhat.com>
5233 * gtk/gtkkeyhash.c (_gtk_key_hash_lookup_keyval)
5234 (_gtk_key_hash_lookup): Don't sort a list of values as if
5235 it was a list of entries. This fixes crashes during mnemonic
5236 activation in the presence of multiple keymaps. (#162488,
5239 2004-12-30 Matthias Clasen <mclasen@redhat.com>
5241 * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Fix
5242 state propagation when making an insensitive combo box sensitive
5243 again. (#162524, Carlos Garnacho Parro)
5245 * gtk/gtkfilechooserdefault.c: Use secondary text for error
5248 * gtk/gtkfilesystemunix.c: Clean up some cases of errno handling
5249 (#162496, noted by Tor Lillqvist), and use g_filename_display_name()
5250 for error messages. Also mark some error messages for translation,
5251 fix capitalization of error messages.
5253 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
5254 Use g_value_get_boolean() for ellipsize_set. (#162447,
5257 2004-12-30 Tor Lillqvist <tml@iki.fi>
5259 * gtk/gtkicontheme.c (gtk_icon_theme_init): Use /usr/share/pixmaps
5262 2004-12-28 Matthias Clasen <mclasen@redhat.com>
5264 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Inherit
5265 submenu direction from the parent menu.
5267 * gtk/gtkmenushell.c (gtk_menu_shell_select_submenu_first):
5268 Return a boolean indicating whether an item in the submenu
5270 (gtk_real_menu_shell_move_current): When going in child
5271 direction, don't get stuck at completely insensitive
5272 submenus. (#162055, Billy Biggs)
5274 2004-12-27 Matthias Clasen <mclasen@redhat.com>
5276 Make the clipboard image API more robust (#162357,
5277 Torsten Schoenfeld):
5279 * gtk/gtkclipboard.c (clipboard_image_received_func): Don't
5280 ref the pixbuf if it is NULL.
5282 * gtk/gtkselection.c (gtk_selection_data_set_pixbuf):
5283 NULL-terminate the varargs in the call to
5284 gdk_pixbuf_save_to_buffer().
5285 (gtk_selection_data_get_pixbuf): Only use a pixbuf loader
5286 if there is data to load.
5288 2004-12-27 Matthias Clasen <mclasen@redhat.com>
5290 * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
5291 Set x_root and y_root in button and motion events from
5292 extended input devices. (#148715, Robert Ögren)
5294 * gtk/gtktreeview.c (gtk_tree_view_class_init): Fix a
5295 typo. (#162339, Alessio Dessi)
5297 * gtk/gtkadjustment.c (gtk_adjustment_class_init): Document
5298 properties as new since 2.4. (#156101, Billy Biggs)
5300 * configure.in: Add a warning about the linux-fb
5301 target. (#155488, Zeeshan Ali)
5303 * gtk/gtkmain.c (gtk_init_with_args): Typo fix. (#162278,
5306 2004-12-26 Matthias Clasen <mclasen@redhat.com>
5308 * gtk/gtkfilechooser.c (gtk_file_chooser_set_action):
5309 Typo fix. (#162219, Masao Mutoh)
5310 (gtk_file_chooser_set_preview_widget_active):
5311 Another typo. (#162218, Masao Mutoh)
5313 2004-12-23 Matthias Clasen <mclasen@redhat.com>
5315 * gtk/gtkliststore.c (gtk_list_store_iter_children):
5316 Return TRUE if there are children. (#162134, Iñigo Serna,
5317 patch by John Finlay)
5319 * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed):
5320 Transfer state from the button to the cell view to get
5321 prelighting right. (#156327, Ricardo Veguilla)
5323 Wed Dec 22 14:22:19 2004 Søren Sandmann <sandmann@redhat.com>
5325 * tests/testtoolbar.c (timeout_cb): Add sensitivity-changing
5326 timeout. Written by Christian Persch.
5328 Wed Dec 22 14:14:02 2004 Søren Sandmann <sandmann@redhat.com>
5332 * gdk/x11/gdkwindow-x11.c (tmp_{re,un}set_bg): Only set/reset the
5333 background for windows that get expose events.
5335 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Remove
5336 hack to repaint !expose windows.
5338 Wed Dec 22 11:35:41 2004 Søren Sandmann <sandmann@redhat.com>
5340 Bug #147497, make menu items activate immediately when you release
5343 * gtk/gtkmenu.c (gtk_menu_enter_notify, menu_motion_notify): Make
5344 items activate immediately.
5346 * gtk/gtkmenu.c (definitely_within_item): New function
5347 * gtk/gtkmenu.c (check_threshold): New function
5349 2004-12-22 Matthias Clasen <mclasen@redhat.com>
5351 * gtk/gtklabel.c (gtk_label_setup_mnemonic): Don't forget to
5352 null the mnemonic_menu when unsetting a mnemonic, reported
5355 2004-12-21 Matthias Clasen <mclasen@redhat.com>
5357 * gtk/gtkliststore.c (generate_order): Generate the order the
5358 way it is supposed to be, order[new_pos] == old_pos.
5359 (gtk_list_store_reorder): Invert the order before using it.
5361 2004-12-22 Matthias Clasen <mclasen@redhat.com>
5363 Fix sorting of list stores. (#161886, Marcin Krzyzanowski)
5365 * gtk/gtkliststore.c (generate_order): Generate the order the
5366 way it is supposed to be, order[new_pos] == old_pos.
5367 (gtk_list_store_reorder): Invert the order before using it.
5369 * gtk/gtkiconview.c (gtk_icon_view_rows_reordered): Adapt to the
5372 Wed Dec 22 01:24:01 2004 Jonathan Blandford <jrb@redhat.com>
5374 * gtk/queryimmodules.c (main): print out the version and binary
5375 name in the header comment. Problem reported by Seth Nickell.
5377 2004-12-20 Matthias Clasen <mclasen@redhat.com>
5379 * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): Pass a
5380 root path to gtk_tree_model_rows_reordered(). (#161720,
5381 Marcin Krzyzanowski)
5383 * gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't
5384 translate NULL messages. (#161789, Morten Welinder)
5386 * gtk/gtkmessagedialog.c (setup_primary_label_font): Don't show
5387 the secondary label on show_all(). (#161707, Christian Persch)
5389 2004-12-19 Tor Lillqvist <tml@iki.fi>
5391 * gdk/win32/gdkdnd-win32.c (resolve_link, gdk_dropfiles_filter):
5392 Use wide character API when available. Use UTF-8 for filenames.
5394 * gdk/win32/gdkselection-win32.c (_gdk_dropfiles_store): Include
5395 the string's trailing zero byte in the property's length, just for
5398 2004-12-18 Matthias Clasen <mclasen@redhat.com>
5400 * gtk/gtkfilechooserentry.c (check_completion_callback)
5401 (load_directory_callback): Add missing GDK_THREADS_ENTER/LEAVE.
5403 * gtk/gtkfilechooserdefault.c (edited_idle_cb)
5404 (shortcuts_drag_outside_idle_cb): Add missing
5405 GDK_THREADS_ENTER/LEAVE. (#161604)
5407 * gtk/gtkfilechooserdefault.c (selection_check_foreach_cb):
5408 (list_select_func): Don't call gtk_file_info_get_is_folder()
5411 * gtk/gtkaboutdialog.c (gtk_about_dialog_get_logo_icon_name):
5412 (gtk_about_dialog_init): Add missing initializations. (#161646,