1 2005-08-19 Matthias Clasen <mclasen@redhat.com>
3 * modules/engines/ms-windows/msw_style.c (setup_system_styles):
6 * gtk/gtkfilechooserbutton.c (change_icon_theme)
7 (model_add_special, model_add_special, model_add_volumes):
8 Handle pixbuf being NULL without warnings. Also, don't
9 leak pixbuf references when the icon theme is changed.
11 * gtk/gtkmain.c (gtk_get_event_widget): Don't access
12 the user data on destroyed windows, since at best
13 it can be a stale pointer. (#313953, Robin Green)
15 2005-08-19 Matthias Clasen <mclasen@redhat.com>
17 * gtk/gtkhsv.c (paint_triangle): Avoid a buffer overrun.
18 (#313900, Sebastien Bacher)
20 * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): Return
21 FALSE if the tree is empty. (#313891, Guillaume Cottenceau)
23 * gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display)
24 (xdnd_read_actions, get_client_window_at_coords_recurse):
25 Free data returned from XGetWindowProperty.
27 * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window)
28 Free data returned from XGetWindowProperty. (313867, Kjartan
31 * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse): Free
32 children in all cases. (#313862, Kjartan Maraas)
34 * gtk/gtkicontheme.c (theme_lookup_icon): Store GtkIconData structs
35 in the per-directory hash, even if they come from the icon cache.
36 We tried to avoid that before, but as a result leaked icon data
37 structs. (#313852, Kjartan Maraas)
39 2005-08-18 Matthias Clasen <mclasen@redhat.com>
41 * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_destroy): Disconnect
42 signal handlers on destroy, not on finalize. (#313759, Brett Atoms)
44 2005-08-15 Owen Taylor <otaylor@redhat.com>
46 * configure.in: Add -lXext to GDK_EXTRA_LIBS in absence of pkg-config
47 files for x11/xext. (Jonas Bonn)
49 2005-08-15 Tor Lillqvist <tml@novell.com>
51 * gtk/gtkicontheme.c (theme_lookup_icon): Put debugging printout
54 2005-08-15 Owen Taylor <otaylor@redhat.com>
56 * configure.in: Fix have_base_pc / have_base_x_pc typo.
58 * gdk/x11/gdkdrawable-x11.c gtk/gtksettings.c: Remove panoxft.h includes.
59 (#313417, James Andrewartha)
61 * configure.in: Add fontconfig to X_PACKAGES, since we use it for
62 FcNameConstant(). (More of #313417)
64 2005-08-15 Matthias Clasen <mclasen@redhat.com>
66 * gtk/gtkfilechooserdefault.c: When using gtk_dialog_run() for
67 modal dialogs, make sure to inherit the window group from
68 the parent, since we don't inherit window groups across
69 transient parents currently. (#312918, Christian Persch)
71 * gtk/gtkmessagedialog.c (gtk_message_dialog_new):
72 * gtk/gtkdialog.c (gtk_dialog_run): Slight update to the docs.
74 * gtk/gtkiconview.c (gtk_icon_view_select_path)
75 (gtk_icon_view_scroll_to_path): Handle paths of depth 0
76 gracefully. (#312796, Jonathan Blandford)
78 * tests/testtoolbar.c: Add some more tests for menu placement.
80 * gtk/gtkmenutoolbutton.c (menu_position_func):
81 * gtk/gtktoolbar.c (menu_position_func): Improve positioning
82 of toolbutton menus and of the overflow menu. (#312937,
83 #153870, Christian Persch, Paolo Borelli)
85 2005-08-15 Tor Lillqvist <tml@novell.com>
87 * gtk/updateiconcache.c: Use g_path_get_dirname() instead of
88 the nonportable <libgen.h> and dirname().
90 2005-08-15 Matthias Clasen <mclasen@redhat.com>
92 * gtk/gtksizegroup.c: Use object data to mark widgets and
93 groups as visited, so that we avoid constant extra list
94 traversals. Also allocate quarks in class_init. (#311618,
97 * gtk/gtkicontheme.c (gtk_icon_theme_lookup_icon): Correct the
98 download location for the hicolor icon theme. (#313475, Olexiy
101 * gtk/gtkicontheme.c: Remove debug spew.
103 2005-08-15 Owen Taylor <otaylor@redhat.com>
105 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_back_pixmap):
106 * gdk/win32/gdkwindow-win32.c (gdk_window_set_back_pixmap):
107 * gdk/x11/gdkwindow-x11.c (gdk_window_set_back_pixmap):
108 Handle pixmap == NULL when checking for a colormap.
111 2005-08-14 Matthias Clasen <mclasen@redhat.com>
113 * gtk/updateiconcache.c: Store only one copy of the pixel data
114 for symlinked icons. To achieve this, maintain a hashtable
115 mapping pathnames to pixel data, and share the pixel data for
116 all symlinks resolving to the same pathname. When writing out
117 the image data, write out the pixel data only the first time
118 it is met, and store the offset pointing to the first copy
119 for use in all later cases.
120 This reduces the size of the Bluecurve icon cache from 40
123 2005-08-13 Matthias Clasen <mclasen@redhat.com>
125 * configure.in: Bump version
127 * === Released 2.8.0 ===
131 * configure.in: Require cairo 0.9.2
133 2005-08-12 Matthias Clasen <mclasen@redhat.com>
135 * gtk/gtkcheckmenuitem.c (gtk_real_check_menu_item_draw_indicator):
136 Remove a line without effect.
138 * gtk/gtkicontheme.c: When changing the icon theme, defer
139 the resetting of rc styles to an idle, so that it does
140 not happen e.g during expose handling (which is problematic,
141 since some widgets, like the toolbar, are changing the
142 hierarchy in response to style changes). (#300539, reported
143 by many people, analyzed by Owen Taylor)
145 2005-08-12 Owen Taylor <otaylor@redhat.com>
147 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_back_pixmap)
148 * gdk/win32/gdkwindow-win32.c (gdk_window_set_back_pixmap)
149 * gdk/x11/gdkwindow-x11.c (gdk_window_set_back_pixmap): Warn if
150 gdk_drawable_get_colormap (pixmap) is NULL and return.
152 2005-08-12 Matthias Clasen <mclasen@redhat.com>
154 * configure.in: Bump version to 2.8.0
156 2005-08-11 Matthias Clasen <mclasen@redhat.com>
158 * gtk/gtkfilechooserdefault.c: Work around some problems
159 with the gnome-vfs backends which could lead to crashes
160 in the bookmark handling. (#310270, Diego Gonzalez, patch
163 2005-08-11 Kristian Rietveld <kris@gtk.org>
165 Fix for #312924, by John Finlay.
167 * gtk/gtkliststore.c (gtk_list_store_increment_stamp),
168 (gtk_list_store_clear): increment stamp on store clearance.
170 * gtk/gtktreestore.c (gtk_tree_store_increment_stamp),
171 (gtk_tree_store_clear): ditto.
173 2005-08-11 Kristian Rietveld <kris@gtk.org>
175 * gtk/gtktreeview.c (gtk_tree_view_size_allocate_columns): queue
176 a draw for the entire widget if any column changes width. (Fixes
177 #311026, reported by Frederic Crozat).
179 2005-08-10 J. Ali Harlow <ali@juiblex.co.uk>
181 * configure.in: Revert to linking against pangowin32 under win32
182 platform (Owen Taylor).
184 2005-08-10 J. Ali Harlow <ali@juiblex.co.uk>
186 * gdk/win32/gdkfont-win32.c (gdk_font_from_description_for_display): Make
187 the last change compile.
189 2005-08-10 Matthias Clasen <mclasen@redhat.com>
191 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_deleted)
192 (gtk_tree_model_filter_remove_node): Remove ambiguities pointed
195 2005-08-10 James Henstridge <james@jamesh.id.au>
197 * configure.in: fix definition of GDK_DEP_CFLAGS so that it
198 doesn't cause build failures if $X_PACKAGES is not empty.
200 2005-08-09 Owen Taylor <otaylor@redhat.com>
202 * gdk/gdkwindow.c (gdk_window_ref_cairo_surface): Remove superfluous
203 call to gdk_window_get_offsets (). (#313051, Bertram Felgenhauer)
205 2005-08-09 Owen Taylor <otaylor@redhat.com>
207 * configure.in: Strip out all Xft, FreeType, and pangoxft checking.
208 Rewrite X checks to use pkg-config as much as possible.
210 * gdk/win32/gdkfont-win32.c (gdk_font_from_description_for_display): Make
211 this return Arial always to avoid using PangoWin32FontMap. (X11 backend
212 has always been returned "fixed" for a long time)
214 * gdk/linux-fb/gdkdrawable-fb2.c: Remove draw_glyphs() implementations,
215 fall through to the default implementation in terms of Cairo.
217 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_text): Use gdk_draw_glyphs()
218 on the wrapper rather than gdk_fb_draw_glyphs().
220 2005-08-09 Mark McLoughlin <mark@skynet.ie>
222 Fixes "notification area leaks space" (bug #312687)
224 * gtk/gtksocket-x11.c: (_gtk_socket_windowing_filter_func):
225 gtk/gtkplug.c: (_gtk_plug_add_to_socket): don't pass a
226 detail to g_signal_emit_by_name()
228 2005-08-09 Matthias Clasen <mclasen@redhat.com>
232 2005-08-09 Matthias Clasen <mclasen@redhat.com>
234 * gtk/gtksizegroup.c (get_size_groups, set_size_groups): Use
235 g_quark_from_static_string here.
237 2005-08-08 Christian Persch <chpe@cvs.gnome.org>
239 * gtk/gtkmenutoolbutton.c: (gtk_menu_tool_button_state_changed),
240 (gtk_menu_tool_button_class_init), (popup_menu_under_arrow),
241 (gtk_menu_tool_button_init):
243 Deactivate the menu when the button becomes insensitive, and remove
244 dead code. Fixes bug #312920.
246 2005-08-08 Matthias Clasen <mclasen@redhat.com>
248 * gdk/gdk.symbols: Make the last change compile.
250 2005-08-08 Christian Persch <chpe@cvs.gnome.org>
252 * gtk/gtkmenutoolbutton.c:
253 (gtk_menu_tool_button_construct_contents),
254 (button_state_changed_cb), (menu_position_func),
255 (arrow_button_toggled_cb):
257 Use ->priv instead of GTK_MENU_TOOL_BUTTON_GET_PRIVATE.
258 Surviving part of bug #310589.
260 2005-08-07 Matthias Clasen <mclasen@redhat.com>
262 * gdk/gdk.symbols: Add the gdk_display variable.
265 * gtk/abicheck.sh: Also check exported variables.
267 Fri Aug 5 16:54:19 2005 Søren Sandmann <sandmann@redhat.com>
269 * gtk/gtkmenutoolbutton.c
270 (gtk_menu_tool_button_construct_contents): Set the relief of the
271 arrow button to the value returned by
272 gtk_tool_item_get_relief_style(). Patch from Benjamin Berg.
275 2005-08-04 Sunil Mohan Adapa <sunil@atc.tcs.co.in>
277 * configure.in: Re-added "te" to ALL_LINGUAS after
278 correcting the problem.
280 2005-08-04 Matthias Clasen <mclasen@redhat.com>
282 * configure.in: Require cairo 0.6
284 2005-08-04 Christian Persch <chpe@cvs.gnome.org>
286 * configure.in: Remove "te" since it breaks the build.
288 2005-08-04 Sunil Mohan Adapa <sunil@atc.tcs.co.in>
290 * configure.in: Added "te" to ALL_LINGUAS.
292 2005-08-04 Tor Lillqvist <tml@novell.com>
294 * gtk-zip.sh.in: Reflect the change of the default theme's name to
295 "Raleigh". Include the MS-Windows theme's gtkrc file. Include the
298 2005-08-02 Matthias Clasen <mclasen@redhat.com>
300 * configure.in: Bump version
302 * === Released 2.7.5 ===
304 * configure.in: Bump version
308 2005-08-01 Matthias Clasen <mclasen@redhat.com>
310 * gtk/gtkfixed.c (gtk_fixed_put): Fix a typo, spotted by
313 * gtk/Makefile.am (install-data-local):
314 * gtk/gtksettings.c (gtk_settings_class_init): Rename the
315 default theme to "Raleigh". (#312254, Thomas Wood)
317 * gtk/gtkdnd.c (set_icon_stock_pixbuf): Create the icon window
318 with the correct dimensions. (#312256, Mike Morrison)
320 * gtk/gtktextbuffer.h:
321 * gtk/gtk.symbols: Remove G_GNUC_NULL_TERMINATED here
324 * gtk/gtkuimanager.c (update_node): Update tooltips when
325 reconnecting toolitems. (#312173, Alex Graveley)
327 * gdk/x11/gdkxftdefaults.c: Define the hint styles to make
328 building against fc < 2.2.92 work. (#311839, Damien Carbery)
330 * gdk/x11/gdkevents-x11.c (gdk_check_wm_desktop_changed): Make
331 tracking the on_all_desktops state work better.
333 * gdk/x11/gdkwindow-x11.c (gdk_x11_window_move_to_current_desktop):
334 Don't do anything if the window is on all desktops. (#311803,
337 2005-08-01 Dom Lachowicz <cinamod@hotmail.com>
339 * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Part of #168326
341 2005-08-01 Matthias Clasen <mclasen@redhat.com>
343 * gtk/gtkclipboard.c (gtk_clipboard_set_image)
344 (gtk_clipboard_set_text): Don't leak atom names. (#311933,
347 * gtk/gtkmain.c (do_post_parse_initialization): Call
348 gettext_initialization() here as well. (#311612, Dan Winship)
350 2005-08-01 Tor Lillqvist <tml@novell.com>
352 * gdk/win32/gdkwindow-win32.c (gdk_window_set_urgency_hint):
353 Implement using FlashWindowEx(). (#309423)
355 2005-07-30 Hans Breuer <hans@breuer.org>
357 * gtk/makefile.msc.in tests/makefile.msc : updated
359 2005-07-30 Johan Dahlin <jdahlin@async.com.br>
361 * gtk/gtkctree.c (gtk_ctree_class_init): Do not use |
362 G_PARAM_STATIC_NAME in the type field, makes subclassing possible.
364 2005-07-29 Claudio Saavedra <csaavedra@alumnos.utalca.cl>
366 * docs/reference/gtk/migrating-GtkAction.sgml: Declaring the
367 GtkActionEntry arrays static const. Fixes #301612.
369 2005-07-29 J. Ali Harlow <ali@juiblex.co.uk>
371 * gtk/Makefile.am: Include gtkwin32embed.h in EXTRA_DIST
372 unconditionally. Fixes #311972.
374 2005-07-28 Federico Mena Quintero <federico@ximian.com>
376 * perf/README: Update for the new API of the profiler.
378 * perf/gtkwidgetprofiler.[ch]: New files with a widget profiler
379 object. This is the old content of timers.[ch] turned into a nice
380 object, with signals for creation and reporting. The profiler
381 needs to maintain some state when reusing the widget, so it's
382 useful to turn it into a real object.
384 Break down timing show_all into GTK_WIDGET_PROFILER_REPORT_MAP and
385 GTK_WIDGET_PROFILER_REPORT_EXPOSE.
387 * perf/main.c: Refactor to use GtkWidgetProfiler.
389 * perf/appwindow.c (content_area_new): Make this just create a
390 notebook, instead of a complex arrangement of panes.
392 * perf/widgets.h: New header file for all the "create a widget"
395 * perf/treeview.c: New file. Moved the tree view part from
396 appwindow.c over to here; GtkTreeView really needs its own tests.
397 (tree_view_new): Set the shadow type to IN.
399 * perf/textview.c: Likewise moved over from appwindow.c, but for
401 (text_view_new): Set the shadow type to IN.
403 * perf/Makefile.am (testperf_SOURCES): Add the new source files;
404 remove appwindow.h and timers.[ch].
406 * perf/timers.[ch]: Removed.
408 * perf/appwindow.h: Removed.
410 2005-07-29 Tor Lillqvist <tml@novell.com>
412 * gdk/win32/gdkevents-win32.c: Remove ifdeffed out code relating
413 to the gdk-ping message. Use the global _gdk_display instead of
414 calling gdk_display_get_default() or gdk_drawable_get_display()
415 which would return _gdk_display anyway.
416 (append_event, apply_filters, gdk_event_translate): Drop any
417 GdkDisplay parameter as we only have one display anyway. Use
418 _gdk_display where needed.
419 (gdk_event_apply_filters): Delete, move the code into its only
420 caller, apply_filters().
421 (generate_button_event): Factor out code from two places in
422 gdk_event_translate().
423 (gdk_event_translate): Call generate_button_event() in place of
426 * gdk/win32/gdkevents-win32.c (generate_grab_broken_event): New
427 static function to generate and append the GDK_GRAB_BROKEN events.
428 (gdk_pointer_grab, gdk_keyboard_grab): Generate grab broken events
429 when overriding a grab inside the application, like in the X11
430 backend. Final bits of the fix for #107320, hopefully.
431 (print_event): Handle also GDK_SETTING, GDK_OWNER_CHANGE and
432 GDK_GRAB_BROKEN events.
433 (gdk_event_translate): Call generate_grab_broken_event() in place
436 * gdk/win32/gdkdrawable-win32.c (blit_inside_drawable): Rename
437 from blit_inside_window(), as it now does blitting inside a
438 bitmap, too. No code change, still just call BitBlt().
439 (_gdk_win32_blit): Check for source equalling destination
440 first. (#169508, #131977)
441 Do away with the superfluous local draw_impl variable, the
442 parameter to this function is already a GdkDrawableImplWin32*, no
443 need to copy and cast it.
445 2005-07-28 Robert Ögren <gtk@roboros.com>
447 Avoid spurious core pointer events when the tablet pen is lifted.
450 * gdk/win32/gdkinput-win32.c (set_ignore_core): New static function,
451 handles delayed unsetting of _gdk_input_ignore_core.
452 (_gdk_input_other_event): Call set_ignore_core instead of setting
453 _gdk_input_ignore_core directly.
455 2005-07-28 Dom Lachowicz <cinamod@hotmail.com>
457 * modules/engines/ms-windows/*: Re-sync with gtk-wimp CVS. Notable
458 changes include: menu/toolbars have a gradient applied to them; better
459 handling of menu/toolbar shadows, tracking theme settings;
460 sliders/scales now use XP theming; status bar grippies drawn properly;
461 convincing toolbar grippies are drawn for the Win2k theme; notebook
462 tabs now have that orange stripe across their top; a host of scrollbar
465 2005-07-27 Tor Lillqvist <tml@novell.com>
467 * gdk/win32/gdkmain-win32.c (_gdk_win32_psstyle_to_string): Handle
470 * gdk/win32/gdkmain-win32.c (gdk_screen_get_height_mm): Fix for
471 multi-monitor cases. (#311677, Tim Evans)
473 2005-07-26 Owen Taylor <otaylor@redhat.com>
475 * gtk/gtknotebook.c (gtk_notebook_page_allocate): Fix to be
476 monotonic in the original size (#308145, Morten Welinder)
478 2005-07-26 Elijah Newren <newren@gmail.com>
480 Revert part of patch from #166379; don't have gtk_window_present()
481 change a window's desktop, but rather leave it up to the WM.
484 * gtk/gtkwindow.c (gtk_window_present_with_time): Don't change a
487 2005-07-26 Tor Lillqvist <tml@novell.com>
489 * gtk/gtkplug-win32.c: Declare GetAncestor() and define GA_PARENT
490 if missing (MSVC6). (#311633)
492 2005-07-26 Federico Mena Quintero <federico@ximian.com>
494 * perf/: New directory with the start of a framework for testing
497 * Makefile.am (SRC_SUBDIRS): Added the perf directory.
499 * configure.in (AC_OUTPUT): Generate perf/Makefile.
501 2005-07-26 Matthias Clasen <mclasen@redhat.com>
503 * gtk/gtkfilechooserdefault.c: Fix up includes on Win32.
504 (#311630, Kazuki Iwamoto)
506 * gtk/gtkimcontextsimple.c: Add ISO_Level3_Shift to
507 the list of keysyms to ignore for composition, since
508 AltGr keys produce it in some keyboard layouts. (#307283)
511 * gtk/gtk.symbols: Remove G_GNUC_NULL_TERMINATED from
512 gtk_widget_new as well, pointed out by Kjartan Maraas.
514 2005-07-25 Matthias Clasen <mclasen@redhat.com>
516 * gtk/gtkhsv.c (paint_triangle): Pad out the full width, in
517 an attempt to work around bug #311225.
519 * gtk/gtktreemodelsort.c: Trivial doc fixes.
521 * gtk/gtktreesortable.c: Talk about comparison functions, not
522 sort functions in some places. (#311398, Fabrice Bauzac)
525 * gtk/gtkobject.[hc]:
526 * gtk/gtkfilechooserdialog.[hc]
527 * gtk/gtkdialog.[hc]: Remove the G_GNUC_NULL_TERMINATED marker
528 from a number of varargs functions where we allow to omit the
529 varargs completely. (#311465, Callum McKenzie)
531 2005-07-22 Matthias Clasen <mclasen@redhat.com>
533 * === Released 2.7.4 ===
537 * gtk/gtkmessagedialog.c (gtk_message_dialog_format_secondary_markup):
538 Point out escaping oversight. (#311260, Owen Taylor)
540 2005-07-21 Matthias Clasen <mclasen@redhat.com>
542 * gtk/gtkcombobox.c (gtk_combo_box_list_destroy): Cleanup
543 a possible resize idle. (#311141, Robert Ögren)
545 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_changed):
546 (gtk_tree_model_sort_sort_level): Ref the level while using it,
547 otherwise it may get nuked by gtk_tree_model_sort_increment_stamp.
548 (gtk_tree_model_sort_row_deleted): Don't leak the root level
549 here. (#300089, James Bramford, Markku Vire)
551 2005-07-21 Federico Mena Quintero <federico@ximian.com>
553 * gtk/gtkfilechooser.c (gtk_file_chooser_set_filename): Clarify
554 the usage of this function.
555 (gtk_file_chooser_set_uri): Likewise.
556 (gtk_file_chooser_set_current_name): Likewise.
558 * gtk/gtkfilechooserdefault.c (set_file_system_backend):
559 Instrument this function for profiling as well.
560 (gtk_file_chooser_default_init): Likewise; just to have a marker
561 of where instance initialization begins.
563 2005-07-21 Owen Taylor <otaylor@redhat.com>
565 * gtk/gtkwidget.c (update_pango_context): Fix a couple of leaks.
567 2005-07-21 Christian Rose <menthos@menthos.com>
569 * configure.in: Added "hy" to ALL_LINGUAS.
571 2005-07-21 Matthias Clasen <mclasen@redhat.com>
575 * gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Be
576 a bit more careful to not shrink the label to a negative
577 width. (#311175, Thomas Vander Stichele)
579 * gtk/gtk.symbols: mark gtk_socket_steal as deprecated.
581 * configure.in: Bump the cairo requirement.
583 2005-07-19 Owen Taylor <otaylor@redhat.com>
585 * gtk/gtksettings.c gtk/gtkwidget.c: Change machinery for
586 following font rendering xsettings to set cairo font
587 options on PangoContext
589 * gdk/x11/gdkxftdefaults.c gdk/x11/gdkevents-x11.c gdkscreen-x11.h
590 gdkprivate-x11.h: Get default values for rendering options
591 (such as antialiasing, dpi) from the Xft resources for the
592 display, borrowing a bit of code from Xft.
594 * gtk/gtksettings.c (gtk_settings_class_init): Fix docs for
595 values of gtk-xft-hintstyle.
597 2005-07-21 Tor Lillqvist <tml@novell.com>
599 Make GtkPlug/Socket cross-platform: Add Win32 implementation,
600 splice out X11 implementation to separate files. (#58541)
602 * gtk/gtk.symbols: Make GtkPlug/Socket API available with all
605 * gtk/Makefile.am: Changes to build GtkPlug/Socket with all
609 * gtk/gtkplug.c: Splice out backend-dependend parts to separate
612 * gtk/gtksocketprivate.h
613 * gtk/gtkplugprivate.h: New files. Declare the backend-specific
614 functions, and the private backend-independent functions they call
617 * gtk/gtksocket-stub.c
619 * gtk/gtksocket-x11.c
621 * gtk/gtksocket-win32.c
622 * gtk/gtkplug-win32.c
623 * gtk/gtkwin32embed.h
624 * gtk/gtkwin32embed.c: New files, containing the backend-specific
625 parts of GtkPlug/Socket.
628 * gtk/gtkxembed.c (_gtk_xembed_message_name): New function, used
629 in error messages and debugging output.
631 * gtk/gtkwindow.c (gtk_window_show): No need for ifdef, can now
632 use GTK_IS_PLUG() with all backends.
634 * tests/testsocket_common.c: Make it work on Win32, too.
636 2005-07-21 Tor Lillqvist <tml@novell.com>
638 * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Use
639 wide-char API when available. (#311079, Peter Zelezny)
641 2005-07-21 Matthias Clasen <mclasen@redhat.com>
643 * gtk/gtkwidget.c (gtk_widget_modify_bg, gtk_widget_modify_base):
644 Add hints on how to handle "no window" widgets. (#136347)
646 2005-07-20 Keith Packard <keithp@keithp.com>
648 * gdk/x11/gdkdrawable-x11.c: (gdk_x11_ref_cairo_surface):
650 Follow change in cairo API to add Screen* to
651 cairo_xlib_create_surface_for_bitmap
653 2005-07-20 Matthias Clasen <mclasen@redhat.com>
655 * gtk/gtkicontheme.c (load_svg_at_size): Explicitly use the
656 svg loader, if available. This should help with the fact that
657 svg is not reliably sniffable with the current gdk-pixbuf sniffing
660 * gtk/gtkstyle.c (gtk_default_draw_expander): Make sure expanded
661 expanders are not fuzzy. (#310172, reported by Alexander Larsson,
662 patch by Owen Taylor)
664 * gtk/gtkdnd.c (gtk_drag_begin_internal): Don't fail if we
665 can't get a keyboard grab. (#168351)
667 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_[sg]et_property):
668 Add GTK_FILE_CHOOSER_PROP_DO_OVERWRITE_CONFIRMATION.
670 2005-07-19 Federico Mena Quintero <federico@ximian.com>
672 * gtk/gtkfilechooserdefault.c: Added a few utility functions for
673 profiling; instrument the code, make it conditional.
675 2005-07-19 Kristian Rietveld <kris@gtk.org>
677 * gtk/gtkentry.c (gtk_entry_move_forward_word): don't iterate
678 past the end of the string, so pango_layout_get_cursor_pos() won't
679 complain. (#309211, Tommi Komulainen).
681 2005-07-19 Tor Lillqvist <tml@novell.com>
683 * gtk/gtkmain.c (check_sizeof_GtkWindow, check_sizeof_GtkBox):
684 Don't bother mentioning the -fnative-struct (used by GCC 2) switch
685 in the error message any longer.
687 2005-07-18 Matthias Clasen <mclasen@redhat.com>
689 * gdk/gdkpixbuf-render.c: Small formatting fixes in doc comments.
691 * gtk/gtkcombobox.c (gtk_combo_box_model_row_deleted)
692 (gtk_combo_box_model_row_inserted): Remove useless calls
693 to gtk_tree_row_reference_inserted/deleted, since we
694 don't use manual row references here.
696 * gtk/gtkmain.c (gtk_parse_args, gtk_init_with_args): Call
697 gettext_initialization before checking gtk_initialized, otherwise
698 there are scenarios where it is not called at all. For an
699 example, see tests/testfilechooserbutton.c. (#310323,
702 2005-07-18 Tor Lillqvist <tml@novell.com>
704 * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get): Be sure to remove
705 any possible leftover clipping region in the DC if we don't want
706 any clipping. Thanks to Robert Ögren. (#309823)
708 * configure.in (GDK_EXTRA_LIBS): [Win32] Bypass libtool, use
709 -Wl,-luuid. This avoids a libtool warning as libuuid is static.
711 2005-07-18 Matthias Clasen <mclasen@redhat.com>
713 * gtk/gtkcombobox.c (gtk_combo_box_set_focus_on_click): Propagate
714 the focus-on-click value to the button. (#310543, Christian Persch)
716 * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a note
717 about the need to handle expose events. We really need a chapter
718 on the GTK+ drawing model that we can refer to here... (#310765,
721 2005-07-16 Tor Lillqvist <tml@novell.com>
723 * configure.in (GDK_EXTRA_LIBS): [Win32] Put -luuid back, it is
724 needed in case one builds without the ie55 stuff. (#310582)
726 2005-07-15 Matthias Clasen <mclasen@redhat.com>
728 * configure.in: Bump version
730 * === Released 2.7.3 ===
732 * gdk/gdkdraw.c (gdk_draw_drawable): Add better docs.
733 (#310192, Owen Taylor)
735 2005-07-15 Matthias Clasen <mclasen@redhat.com>
739 * gtk/gtkentry.c (gtk_entry_move_forward_word):
740 (gtk_entry_move_backward_word): Don't treat whitespace as
741 words for keynav, pointed out by Owen Taylor.
743 2005-07-15 Federico Mena Quintero <federico@ximian.com>
745 * gtk/gtkfilechooserdefault.c
746 (should_respond_after_confirm_overwrite): Take the parent folder
747 path instead of the display name, to avoid doing duplicated work
748 in gtk_file_chooser_default_should_respond().
750 2005-07-15 Federico Mena Quintero <federico@ximian.com>
752 * gtk/gtkfilechooserdefault.c
753 (confirm_dialog_should_accept_filename): Take the display name of
754 the folder as well so that we can present a better message. Use a
755 stock cancel button, "_Replace", and GTK_STOCK_SAVE_AS.
756 (gtk_file_chooser_default_should_respond): Pass the file part and
757 folder display name directly to the function above. Oops, only do
758 the confirmation dialog if the file exists.
760 2005-07-15 Federico Mena Quintero <federico@ximian.com>
762 * gtk/gtkfilechooserdefault.c
763 (confirm_dialog_should_accept_filename): Use header capitalization
764 for the buttons, per the HIG.
766 * gtk/gtk.symbols: Add the new functions.
768 * tests/testfilechooser.c (confirm_overwrite_cb): Add a test for
769 the confirm-overwrite signal.
771 * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Remove the
772 stub documentation for the "confirm-overwrite" signal.
773 (gtk_file_chooser_set_do_overwrite_confirmation): Add "Since: 2.8"
775 (gtk_file_chooser_get_do_overwrite_confirmation): Likewise.
777 2005-07-14 Federico Mena Quintero <federico@ximian.com>
779 Add overwrite confirmation for SAVE mode. Fixes bug #152850:
781 * gtk/gtkfilechooser.h: Add prototypes for
782 gtk_file_chooser_set/get_do_overwrite_confirmation().
783 (GtkFileChooserConfirmation): New enum for the result of the
784 "confirm-overwrite" signal.
786 * gtk/gtkmarshalers.list: Add ENUM:VOID.
788 * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Add a
789 "do-overwrite-confirmation" boolean property.
790 (gtk_file_chooser_set_do_overwrite_confirmation): Implement.
791 (gtk_file_chooser_get_do_overwrite_confirmation): Implement.
792 (confirm_overwrite_accumulator): New accumulator for the signal.
794 * gtk/gtkfilechooserutils.h (GtkFileChooserProp): Add
795 GTK_FILE_CHOOSER_PROP_DO_OVERWRITE_CONFIRMATION.
797 * gtk/gtkfilechooserutils.c
798 (_gtk_file_chooser_install_properties): Override the
799 do-overwrite-confirmation property.
801 * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserIface): Add a
802 confirm_overwrite signal to the vtable.
804 * gtk/gtkfilechooserdefault.c
805 (gtk_file_chooser_default_set_property): Handle the new property.
806 (gtk_file_chooser_default_get_property): Likewise.
807 (get_selected_file_info_from_file_list): New helper function; code
808 taken from list_selection_changed().
809 (list_selection_changed): Use get_selected_file_info_from_file_list().
810 (should_respond_after_confirm_overwrite): New function.
811 (gtk_file_chooser_default_should_respond): Confirm when necessary.
813 2005-07-14 Matthias Clasen <mclasen@redhat.com>
815 * gtk/gtk.symbols: Add new exported symbols.
817 2005-07-14 Tor Lillqvist <tml@novell.com>
819 * gtk/gtkfilesystemwin32.c (filename_get_info): Implement getting
820 the MIME type of a file. Look it up in the Registry. Bug reported
823 2005-07-14 Tor Lillqvist <tml@novell.com>
825 * configure.in (GDK_EXTRA_LIBS): Don't need -luuid on Win32. It
826 was some leftover, and in fact occasionally caused issues with
827 libtool as it made its way into the libgdk-win32-2.0.la file and
828 that way into the .la files of all libraries that depend on
829 GDK. (This happened only when building from CVS and not using a
830 full "make install" which would run the sanitize-la.sh script.)
832 2005-07-14 Matthias Clasen <mclasen@redhat.com>
834 * gdk/x11/gdkevents-x11.c (set_screen_from_root): Don't assert if
835 the xrootwin is invalid. (#309997, Barbie LeVille)
836 (gdk_event_translate): Ignore events with an invalid root field.
838 * configure.in: Set interface age to 0.
840 * gtk/gtkimmodule.h: Move G_BEGIN_DECLS to the right spot, noticed
843 2005-07-14 Kristian Rietveld <kris@gtk.org>
845 * gtk/gtktreeviewcolumn.[ch] (gtk_tree_view_column_queue_resize): new
846 function (fixes #169961, reported by Morten Welinder).
848 2005-07-14 Kristian Rietveld <kris@gtk.org>
850 * gtk/gtktreeview.[ch] (gtk_tree_view_get_visible_range): new
851 function. (fixes #105252, suggestion from Mikael Hallendal).
853 2005-07-13 Manish Singh <yosh@gimp.org>
855 * demos/gtk-demo/iconview_edit.c: remove unused variable.
857 2005-07-13 Kristian Rietveld <kris@gtk.org>
859 * gtk/gtktreemodel.[ch] (gtk_tree_row_reference_get_model): new
860 function. (#160879, Stefan Kost).
862 2005-07-13 Kristian Rietveld <kris@gtk.org>
864 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): paint a flat box
865 on the area the treeview got allocated extra vertically (fixes
866 #142063, reported by Brian Bober).
868 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
869 make this function calculate real_cell_area and real_background_area
870 correctly. (fixes #309249, reported by Bernd Demian).
872 2005-07-13 Matthias Clasen <mclasen@redhat.com>
874 * gtk/gtkcalendar.c (calendar_realize_arrows): Fix an
875 unintentional case of width-for-height... (#310133, Luis Villa)
877 2005-07-13 Kristian Rietveld <kris@gtk.org>
879 * gtk/gtktreeview.c (gtk_tree_view_new_column_width): let's take
880 the MIN of width and max_width here, not width and max_width != -1.
881 (fixes #144480, reported by Mikael Magnusson).
883 2005-07-13 Matthias Clasen <mclasen@redhat.com>
885 * gtk/gtkicontheme.c (load_themes): Don't keep the caches
886 for unthemed directories in a separate list, instead append
887 them at the end of the dir_mtimes list, so that we can check
888 them for staleness like the other caches. (#310221, Mark
891 * configure.in: Check that we have a new enough Cairo.
893 2005-07-13 Robert Ögren <gtk@roboros.com>
895 Fix handling of Aiptek and Aiptek-like graphical tablets such as Trust
896 on Windows. (#167004, thanks to "pnohant" for testing)
898 Code cleanup: Remove the unused and unmaintained code for using a
899 non-system tablet context (USE_SYSCONTEXT ifdef:s), suggested
902 * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Handle
903 tablet drivers that don't support WTI_DDCTXS/WTI_DSCTXS gracefully.
904 Sligthly reorganize and simplify the code to support this.
905 (_gdk_input_wintab_init_check, _gdk_input_other_event): Remove
906 USE_SYSCONTEXT ifdef:s and the code for the case it was not defined.
907 (gdk_input_window_find_within): Removed.
909 2005-07-13 Matthias Clasen <mclasen@redhat.com>
911 * gdk/win32/bdfcursor.c: Add Copyright/License information.
913 2005-07-13 Kristian Rietveld <kris@gtk.org>
915 * gtk/gtktreeview.c (validate_row): when !separator, don't add
916 the focus_line_width to width/height (happens in
917 _column_cell_get_size), but do add the vertical-separator to height,
918 we weren't taking this into account before.
920 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
921 take vertical-separator into account. (#309137, Ross Burton).
923 2005-07-13 Matthias Clasen <mclasen@redhat.com>
925 * tests/treestoretest.c:
926 * tests/testxinerama.c:
927 * tests/testtreeview.c:
928 * tests/testtreefocus.c:
929 * tests/testtreeflow.c:
930 * tests/testtreeedit.c:
931 * tests/testtreecolumns.c:
933 * tests/testtextbuffer.c:
934 * tests/testspinbutton.c:
935 * tests/testsocket_common.c:
936 * tests/testsocket_child.c:
937 * tests/testsocket.c:
938 * tests/testmultiscreen.c:
939 * tests/testmultidisplay.c:
942 * tests/testmenubars.c:
943 * tests/testicontheme.c:
944 * tests/testfilechooser.c:
945 * tests/testentrycompletion.c:
947 * tests/testcombochange.c:
948 * tests/testactions.c:
952 * gtk/gtktexttypes.h:
953 * gtk/gtktexttypes.c:
954 * gtk/gtktexttagprivate.h:
955 * gtk/gtktextsegment.h:
956 * gtk/gtktextiterprivate.h:
957 * gtk/gtktextchildprivate.h:
958 * gtk/gtktextbtree.h: Add Copyright/License information.
960 * gtk/gtkicontheme.c (gtk_icon_theme_get_default)
961 (gtk_icon_theme_get_for_screen): Add a warning about
962 unreffing icon themes. (#310163, Rodney Dawes)
964 2005-07-13 Kristian Rietveld <kris@gtk.org>
966 * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): quit
967 maintaining the iter on every iteration, only get the iter when
968 we are about to call the foreach_func. Gives us a 10x speedup,
969 since maintaining iters is a lot more expensive than maintaining
970 paths. We lose a bit of sanity checking though. Thanks go to
971 Billy Biggs for pointing this out.
973 2005-07-12 Matthias Clasen <mclasen@redhat.com>
975 * tests/testcairo.c (draw): Fix the same confusion here, too.
977 * gdk/gdkgc.c (make_stipple_tile_surface): Fix
978 cairo_content_t <-> cairo_format_t confusion. (#310086,
979 Carlos Garnacho Parro)
981 * gtk/gtkfilesystemunix.c
982 (gtk_file_system_unix_volume_get_display_name): Follow
983 the Nautilus change and rename "Filesystem" to "File System",
984 string change. (#310047, Vincent Noel)
986 2005-07-12 Matthias Clasen <mclasen@redhat.com>
988 * demos/gtk-demo/iconview.c: Rename this demo.
990 * demos/gtk-demo/iconview_edit.c: Add a demo for icon view
991 editing and drag-and-drop.
993 * demos/gtk-demo/geninclude.pl.in: Accept dashes in demo titles.
995 2005-07-12 Matthias Clasen <mclasen@redhat.com>
997 * gtk/theme-bits/decompose-bits.c:
998 * gtk/gtkfilechooserembed.c:
999 * gtk/gtktextmarkprivate.h:
1000 * gtk/gtktexttagtable.h:
1001 * gtk/gtktexttagtable.c:
1002 * gtk/gtkrc.key.emacs: Add Copyright/License information.
1004 * gdk/linux-fb/gdkrender-fb.c:
1005 * gdk/linux-fb/gdkpango-fb.c:
1006 * gdk/linux-fb/gdkdrawable-fb2.c:
1007 * gdk/linux-fb/gdkgc-fb.c:
1008 * gdk/linux-fb/gdkfbswitch.c: Add Copyright/License information.
1012 * gdk/gdkselection.h:
1013 * gdk/gdkselection.c:
1015 * gdk/gdkproperty.h:
1027 * gdk/gdkcolor.h: Add Copyright/License information.
1029 2005-07-11 Matthias Clasen <mclasen@redhat.com>
1031 * modules/input/imm-extra.h: Add Copyright/License information.
1033 2005-07-11 Matthias Clasen <mclasen@redhat.com>
1035 * gtk/gtktexttag.c (gtk_text_tag_class_init)
1036 (gtk_text_tag_set_property): Remove the runtime warning about
1037 the invisible property, add a warning about possible remaining
1038 problems to the documentation of the property. (#66194)
1040 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Don't
1041 ever go unconditionally to the buffer ends; that doesn't work
1042 if the initial or final portion of the buffer are invisible.
1044 2005-07-11 Kristian Rietveld <kris@gtk.org>
1046 * gtk/gtktreeview.c (gtk_tree_view_class_init): add binding entry
1047 for ctrl + backspace (move focus to parent without affecting
1049 (gtk_tree_view_real_select_cursor_parent): implement ctrl+backspace
1050 and simplify the function a bit. (#309296, Kathy Fernandes).
1052 2005-07-11 Matthias Clasen <mclasen@redhat.com>
1054 Make gtk_window_present() move the window to the current
1055 desktop, instead of letting the WM change the current
1056 desktop to where the window is. (#166379, Elijah Newren)
1060 * gdk/x11/gdkwindow-x11.c (gdk_x11_window_move_to_current_desktop):
1061 New function to move a window to the current desktop.
1063 * gtk/gtkwindow.c (gtk_window_present_with_time): Move the
1064 window to the current desktop before giving it focus.
1066 2005-07-11 Matthias Clasen <mclasen@redhat.com>
1068 When dragging text, use a drag icon showing the (ellipsized)
1069 text that is being dragged: (#161132, Kevin Duffus, patch
1070 by Carlos Garnacho Parro)
1072 * gtk/gtktextutil.h:
1073 * gtk/gtktextutil.c (_gtk_text_util_create_drag_icon): Add
1074 a function to create a pixmap for use when dragging text.
1076 * gtk/gtktextview.c (gtk_text_view_start_selection_dnd):
1077 * gtk/gtklabel.c (gtk_label_motion):
1078 * gtk/gtkentry.c (gtk_entry_motion_notify): Use a drag icon
1079 showing the text being dragged.
1081 2005-07-11 Matthias Clasen <mclasen@redhat.com>
1083 * gtk/gtkentry.c (gtk_entry_move_forward_word)
1084 (gtk_entry_move_backward_word): Match the text view change
1085 to allow selecting whitespace with double-click.
1087 * gtk/gtktextview.c (extend_selection): Make double-clicking
1088 between words select whitespace. (#309860, Mike Miller, patch
1091 * gtk/gtkiconview.c: Documentation improvements. (#309946,
1094 2005-07-10 Kristian Rietveld <kris@gtk.org>
1096 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): remove
1097 unneeded check for negative window_y.
1099 2005-07-10 Kristian Rietveld <kris@gtk.org>
1101 * gtk/gtktreeview.c (gtk_tree_view_search_key_press_event): also move
1102 to the next match when ctrl+g is pressed. (#156657, Matt T. Proud).
1104 2005-07-10 Kristian Rietveld <kris@gtk.org>
1106 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): rework
1107 function to make page up/down behave the same as in GtkTextView.
1108 (Fixes #101220, Owen Taylor).
1110 2005-07-09 Kristian Rietveld <kris@gtk.org>
1112 Fix #305737, patch from Tomislav Jonjic. This makes the
1113 gtk_tree_store_insert* family of functions emit row_has_child_toggled
1114 when needed (they didn't do that before).
1116 * gtk/gtktreestore.c (gtk_tree_store_insert): emit
1117 row_has_child_toggled when needed,
1118 (gtk_tree_store_insert_before): fix a possible memleak,
1119 emit row_has_child_toggled when needed,
1120 (gtk_tree_store_insert_after): ditto.
1122 2005-07-09 Kristian Rietveld <kris@gtk.org>
1124 * gtk/gtktreeview.c (gtk_tree_view_real_expand_row): when
1125 open_all is TRUE, traverse the newly built tree to emit
1126 row_expanded for the subitems. (rev 1.444, patch in #172319
1127 broke this). Fixes #305582, reported by Billy Biggs.
1129 2005-07-09 Tor Lillqvist <tml@novell.com>
1131 * configure.in: Look for windres on Win32. Drop build/* from
1134 * Makefile.am: Drop build from SUBDIRS.
1136 * gdk/win32/rc/Makefile.am
1138 * gtk/Makefile.am: Don't use the scripts in build/win32 to compile
1139 the rc files into resource object files. (This means we lose the
1140 build number increment magic, but I doubt it was that useful
1141 anyway.) Instead use windres directly. To pass a normal .o file
1142 produced by windres through libtool, which would want a .lo file,
1143 pass it directly to the linker using a -Wl option.
1145 * gdk/win32/rc/gdk.rc.in
1146 * gtk/gtk-win32.rc.in: Replace BUILDNUMBER with 0.
1148 2005-07-08 Kristian Rietveld <kris@gtk.org>
1150 Fixes #165034, reported by Jorn Baayen.
1152 * gtk/gtkrbtree.[ch] (_gtk_rbtree_set_fixed_height): add a
1153 mark_valid parameter (so we can mark all nodes as valid when we
1154 are setting them to the fixed height).
1156 * gtk/gtktreeview.c (initialized_fixed_height_mode): mark all
1157 nodes as valid when setting the fixed height,
1158 (do_validate_rows): update call to _set_fixed_height,
1159 (gtk_tree_view_row_inserted): mark node as valid when fixed
1160 height mode is enabled and a height has been set,
1161 (gtk_tree_view_build_tree): if fixed height mode is enabled,
1162 mark new nodes as valid in addition to setting the height.
1164 2005-07-08 Matthias Clasen <mclasen@redhat.com>
1166 * configure.in: Bump version
1168 * === Released 2.7.2 ===
1172 * gtk/gtkcelllayout.c (gtk_cell_layout_pack_start):
1173 (gtk_cell_layout_pack_end): Add a note about reusing cell
1176 * gtk/gtkdnd.c (gtk_drag_update_cursor): Pass a GdkDragAction to
1177 gtk_drag_get_cursor. (#309784, Sebastien Bacher)
1179 2005-07-08 Tor Lillqvist <tml@novell.com>
1181 * gtk/gtkfilesel.c: Use g_get_host_name().
1183 2005-07-07 Matthias Clasen <mclasen@redhat.com>
1185 * configure.in: Add -DHPPEX -DSHMLINK to CFLAGS for HP-UX.
1186 (#162979, Paul Cornett)
1188 * gtk/gtkhscale.c (gtk_hscale_new_with_range):
1189 (gtk_vscale_new_with_range): Add some additional docs on
1190 precision here too. (#309238, Steve Chaplin)
1192 * gdk/x11/gdkmain-x11.c (generate_grab_broken_event): Don't
1193 generate events on destroyed windows.
1195 Implement Drag-and-Drop to the file list. (#145121, Sven Neumann)
1197 * gtk/gtkfilechooserdefault.c (file_list_drag_data_received_cb)
1198 (file_list_drag_drop_cb, file_list_drag_motion_cb): New functions
1199 to handle drag-and-drop on the file list.
1200 (create_file_list): Set up drag-and-drop handlers on the file list.
1202 2005-07-07 Matthias Clasen <mclasen@redhat.com>
1204 Fix #157787, reported by Jonathan Blandford:
1206 * gtk/gtkfilechooserdefault.c
1207 (gtk_file_chooser_default_set_current_folder): Don't leave a
1208 "trail" behind when set_current_folder is called explicitly.
1209 (gtk_file_chooser_default_update_current_folder): New function
1210 that is called to update the current folder in response to
1213 * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Add a boolean
1214 keep_trail argument, and don't leave a "trail" behind unless
1217 2005-07-06 Manish Singh <yosh@gimp.org>
1219 * demos/gtk-demo/menus.c: change_orientation() should return void,
1220 remove unused variable in do_menus().
1222 2005-07-06 Tor Lillqvist <tml@novell.com>
1224 * gdk/win32/gdkcursor-win32.c
1225 (gdk_win32_icon_to_pixbuf_libgtk_only): Don't create the GdkPixbuf
1226 until we know that we have something to put in it.
1228 2005-07-05 Matthias Clasen <mclasen@redhat.com>
1230 * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range): Add some
1231 additional docs on precision. (#309238, Steve Chaplin)
1233 * modules/input/imime.c: Fix includes. (#309462, Kazuki IWAMOTO)
1235 2005-07-05 Matthias Clasen <mclasen@redhat.com>
1237 * doc/tools/widgets.c: Actually generate a file-button
1240 2005-07-06 Tor Lillqvist <tml@novell.com>
1242 * gdk/win32/gdkcursor-win32.c: Add comment about the current named
1243 cursor implementation, and what it maybe really should do.
1244 (gdk_win32_icon_to_pixbuf_libgtk_only): New function, code moved
1245 here from gtk/gtkfilesystemwin32.c:extract_icon().
1246 (gdk_cursor_get_image): Use
1247 gdk_win32_icon_to_pixbuf_libgtk_only().
1250 * gdk/win32/gdkwin32.h: Declare gdk_win32_icon_to_pixbuf_libgtk_only().
1252 * gtk/gtkfilesystemwin32.c (extract_icon): Use
1253 gdk_win32_icon_to_pixbuf_libgtk_only().
1255 2005-07-05 Matthias Clasen <mclasen@redhat.com>
1257 * gtk/gtkmenu.c (gtk_menu_grab_notify): Take window
1258 groups into account. (#309473, Diego Gonzalez)
1260 * gtk/gtkwindow.[hc]: Add a non-exported function to
1261 get the grab widget of a window group.
1263 2005-07-05 Kristian Rietveld <kris@gtk.org>
1265 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): in the
1266 'main' expose loop, add back the calls to _set_cell_data
1267 removed earlier. (#309221, Matthias Clasen).
1269 2005-07-05 Matthias Clasen <mclasen@redhat.com>
1271 * demos/gtk-demo/menus.c: Demonstrate vertical menubars.
1274 * gtk/gtkaboutdialog.[hc]: Add a wrap-license property
1275 with getter and setter. (#165012, Christian Rose,
1276 based on a patch by Christian Persch)
1278 2005-07-05 Matthias Clasen <mclasen@redhat.com>
1280 * gdk/Makefile.am: Distribute the keyname-table.h header
1281 and the files that are used to construct it. (#309421,
1284 2005-07-04 Matthias Clasen <mclasen@redhat.com>
1286 * gtk/gtkmenubar.c (gtk_menu_bar_set_pack_direction)
1287 (gtk_menu_bar_set_child_pack_direction): Queue a resize
1288 on the contained menuitems as well.
1290 * demos/gtk-demo/appwindow.c: Break some overlong lines.
1292 2005-07-03 Hans Breuer <hans@breuer.org>
1294 * **/makefile.msc[.in] : updated
1295 * gtk/gtkiconcache.c : <io.h> for open()
1296 * gtk/gtkstyle.c : use G_PI instead of M_PI
1298 * gdk/win32/gdkcursor-win32.c : implement gdk_cursor_new_from_name()
1299 by mapping the lower case win32 api name to the respective cursor.
1300 E.g. pass "wait" to get the IDC_WAIT cursor. Also allows to load
1301 cursors from named resources in the executable.
1302 (gdk_cursor_get_image) : just return NULL for now.
1304 * gdk/win32/gdkgeometry-win32.c : implement gdk_window_move_region()
1305 by delegation to ScollWindowEx(), untested.
1307 * gdk/win32/gdkwindow-win32.c : stub for gdk_window_set_urgency_hint()
1309 2005-07-03 Matthias Clasen <mclasen@redhat.com>
1311 * gtk/gtkimagemenuitem.c: Hmm, when committing my vertical
1312 menubar patch, I forgot the GtkImageMenuItem changes. And I
1313 managed to do 2 releases without noticing that...
1315 * gtk/gtksettings.c (gtk_settings_class_init): Correct the
1316 blurb for the icon-sizes setting. String change.
1317 (#309355, Benjamin Berg)
1319 2005-07-01 Matthias Clasen <mclasen@redhat.com>
1321 * configure.in: Bump version.
1323 * === Released 2.7.1 ===
1327 2005-07-01 Matthias Clasen <mclasen@redhat.com>
1329 * gtk/gtkfilesel.c (cmpl_init_state): Prevent an infinite
1330 loop when G_FILENAME_ENCODING is invalid. (#309280, Padraig Brady)
1332 Thu Jun 30 14:17:24 2005 Manish Singh <yosh@gimp.org>
1334 * gdk/x11/gdkprivate-x11.h: declare _gdk_xgrab_check_button_event.
1336 * gtk/gtkbutton.c: fix signature of gtk_button_grab_broken.
1338 2005-06-30 Matthias Clasen <mclasen@redhat.com>
1340 * gdk/x11/gdkvisual-x11.c (gdk_visual_decompose_mask): Avoid
1341 infinite loop if a mask is zero. (#309222, David Saxton)
1343 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_fetch_child):
1344 Clarify the code, gcc 4 complains about predecrement in MAX().
1346 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize): Don't
1347 prematurely unregister callbacks.
1351 2005-06-29 Matthias Clasen <mclasen@redhat.com>
1353 * gtk/gtkbutton.c (gtk_button_grab_broken): Handle broken
1356 * gtk/gtkrange.c (gtk_range_grab_broken): Handle broken
1359 * gdk/gdkevents.h: Add a boolean to specify wether the broken
1362 * gdk/x11/gdkdisplay-x11.c (gdk_display_pointer_is_grabbed):
1363 As the documentation states, don't return TRUE for
1366 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
1367 a boolean field to store wether a pointer grab is implicit.
1369 * gdk/x11/gdkmain-x11.c (_gdk_xgrab_check_button_event):
1370 Track implicit grabs.
1372 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Call
1373 _gdk_xgrab_check_button_event for button events.
1375 2005-06-28 Matthias Clasen <mclasen@redhat.com>
1377 * gtk/gtkiconview.c (gtk_icon_view_calculate_item_size2):
1378 Make sure that cell boxes are always completely inside
1381 2005-06-27 Matthias Clasen <mclasen@redhat.com>
1383 * demos/gtk-demo/main.c (create_tree): Make the list of
1386 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end):
1387 Fix positioning at the end of the line for lines ending
1388 in invisible characters.
1389 (gtk_text_layout_get_line_display): Set display->layout
1390 to a PangoLayout, even for totally invisible lines.
1392 * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Ignore
1393 GrabBroken events which are caused by overgrabbing inside
1394 the application; menus rely on these for their operation.
1396 * gdk/gdkevents.h (struct _GdkEventGrabBroken): Add a
1399 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Set
1400 grab_window to NULL when generating GrabBroken events for
1401 WM_KILLFOCUS messages.
1403 * gdk/x11/gdkmain-x11.c (_gdk_xgrab_check_unmap)
1404 (_gdk_xgrab_check_destroy): Set grab_window to NULL when
1405 generating GrabBroken events when the grab window becomes
1406 unviewable or is destroyed.
1408 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab, gdk_keyboard_grab):
1409 Generate GrabBroken events when overriding a grab inside
1410 the application. In this case, set grab_window to the new
1413 2005-06-27 Matthias Clasen <mclasen@redhat.com>
1415 * gtk/gtkbutton.c (gtk_real_button_activate): Continue
1416 to activate even if we can't grab the keyboard.
1417 (gtk_button_finish_activate): Only ungrab when we have
1418 a keyboard grab. (#172998, William Jon McCann)
1420 2005-06-27 Matthias Clasen <mclasen@redhat.com>
1422 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
1423 Avoid a segfault. (#309054)
1425 2005-06-27 Matthias Clasen <mclasen@redhat.com>
1427 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
1428 fields for grab timestamps.
1430 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab, gdk_keyboard_grab):
1431 Store grab timestamps when grabbing.
1433 * gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard_ungrab)
1434 (gdk_display_pointer_ungrab): Don't unset the grab_window
1435 if the timestamps indicate that the ungrab will fails.
1437 * gtk/gtkmenu.c (gtk_menu_grab_notify): Cancel menus when
1438 they are grab-shadowed by something thats not a
1439 submenu. (#145416, Euan MacGregor)
1441 2005-06-27 Owen Taylor <otaylor@redhat.com>
1443 * gtk/gtk[hv]ruler.c (gtk_[hv]ruler_draw_ticks):
1446 2005-06-27 Kjartan Maraas <kmaraas@gnome.org>
1448 * gtk/gtkhruler.c: (gtk_hruler_draw_ticks): Fix leaks
1449 * gtk/gtkvruler.c: (gtk_vruler_draw_ticks): Same
1452 2005-06-27 Matthias Clasen <mclasen@redhat.com>
1454 * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Use
1457 * configure.in: Require GLib 2.7.1
1459 2005-06-26 Matthias Clasen <mclasen@redhat.com>
1461 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
1462 Unregister XIM callbacks here. (#309054)
1464 * modules/input/gtkimcontextxim.h: Small cleanup.
1466 * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
1467 scroll offset when drawing the box. (#308834, Tom von
1470 2005-06-26 Tor Lillqvist <tml@novell.com>
1473 * gtk/Makefile.am: Current GNU tools do understand the PRIVATE
1474 keyword, so no need to remove those entries from the import
1475 library. libtool installs the .dll.a import library itself, so no
1476 need to do it here. Install the .def file.
1478 Sun Jun 26 00:04:36 2005 Manish Singh <yosh@gimp.org>
1480 * gdk/gdkevents.c (gdk_event_get_time, gdk_event_get_state): add
1481 GDK_GRAB_BROKEN to the switch cases.
1483 * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): remove unused
1486 * gtk/gtkpaned.c (gtk_paned_grab_broken): return TRUE.
1488 2005-06-26 Matthias Clasen <mclasen@redhat.com>
1490 * gtk/gtktreeview.c (gtk_tree_view_grab_broken): Stop column
1491 header drag operations if the grab is broken.
1493 * gtk/gtkhsv.c (gtk_hsv_grab_broken): Stop the drag if
1496 * gtk/gtkcombobox.c (gtk_combo_box_popdown): Don't do
1497 explicitly ungrab pointer and keyboard. We're unmapping
1498 the grab window anyway.
1499 (gtk_combo_box_popup): Handle grab failures.
1501 2005-06-25 Matthias Clasen <mclasen@redhat.com>
1503 * gdk/x11/gdkmain-x11.c (gdk_keyboard_grab, gdk_pointer_grab):
1504 Don't emit grab-broken for overgrabbing, until we figure
1505 out how to do that without breaking the menu code.
1507 2005-06-25 Matthias Clasen <mclasen@redhat.com>
1509 Add a GrabBroken event to GDK, and a grab-broken-event
1510 signal to GtkWidget. (#107320, Simon Cooke, initial patch
1513 * gdk/gdkevents.h: Add a GDK_GRAB_BROKEN event type,
1514 define a GdkEventGrabBroken event struct.
1516 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
1517 Generate GrabBroken events in response to WM_KILLFOCUS.
1519 * gdk/x11/gdkmain-x11.c: Generate GrabBroken events
1520 when a grab is broken by the window becoming unviewable,
1521 or by another grab from the same client.
1523 * gtk/gtkwidget.h (GtkWidgetClass): Add grab_broken_event.
1525 * gtk/gtkwidget.c (gtk_widget_event_internal): Translate
1526 GrabBroken events into grab_broken_event signals.
1528 * gtk/gtkmain.c (gtk_main_do_event): Propagate GrabBroken
1531 * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Deactivate
1532 the menu when the grab is broken.
1534 * gtk/gtkcolorsel.c (gtk_color_selection_grab_broken): Stop
1535 the color picker if the grab is broken.
1537 * gtk/gtkpaned.c (gtk_paned_grab_broken): Stop the drag if
1540 2005-06-25 Matthias Clasen <mclasen@redhat.com>
1542 Add some new stock items. (#166480, Kristof Vansant)
1544 * gtk/stock-icons/stock_fullscreen_16.png:
1545 * gtk/stock-icons/stock_fullscreen_24.png:
1546 * gtk/stock-icons/stock_leave_fullscreen_16.png:
1547 * gtk/stock-icons/stock_leave_fullscreen_24.png:
1548 * gtk/stock-icons/stock_info_16.png:
1549 * gtk/stock-icons/stock_info_24.png: New icons.
1551 * gtk/stock-icons/Makefile.am: Add new icons.
1553 * gtk/gtkstock.h: Define names for the new icons.
1555 * gtk/gtkstock.c (builtin_items): Register new stock items.
1557 * gtk/gtkiconfactory.c (get_default_icons): Register new
1560 2005-06-24 Owen Taylor <otaylor@redhat.com>
1562 * gdk/gdkrgb.c (gdk_rgb_select_conv): Fix up selection of
1563 conversion functions for MSB machines: convert_0888[_br]
1564 now work on bytes so are endian independent.
1565 (Reported by David Zeuthen)
1567 2005-06-24 Matthias Clasen <mclasen@redhat.com>
1569 * gtk/gtktextview.c (gtk_text_view_scroll_hpages): Don't
1570 jump to the next line if we are at the end of the line.
1571 (gtk_text_view_move_cursor_internal): Make movement by
1572 paragraphs up/down symmetric. (#307055, Behnam Esfahbod)
1574 2005-06-23 Tor Lillqvist <tml@novell.com>
1576 Improve and simplify line segment rendering on Win32, especially
1577 the implementation of GDK_CAP_NOT_LAST, and dashed lines. Fixes
1578 bugs #306396 and #308413.
1580 * gdk/win32/gdkprivate-win32.h (GdkGCWin32): Save the GdkGC's
1581 line_style, cap_style and join_style as such in the
1582 GdkGCWin32. Don't need to keep the pen_double_dash flag, we can
1583 check the line_style.
1585 * gdk/win32/gdkgc-win32.c (fixup_pen): New internal function. Sets
1586 up the GDI pen type, style, end cap and join attributes to use
1587 based on the pen width, GDK line style, end cap style, and join
1590 For a narrow (zero-width) GDK pen with the GDK_CAP_NOT_LAST end
1591 cap style, which typically are used for XOR drawing where it is
1592 essential that the last pixel is not drawn, use a GDI cosmetic
1593 pen. Only for a cosmetic pen does GDI not draw the last pixel. I
1594 deduced this by experimetation, the documentation is rather vague.
1596 For other GDK pens use a geometric GDI pen. If the width is 0 or 1
1597 and the GDK end cap style is GDK_CAP_BUTT, and the line style is
1598 GDK_LINE_SOLID, use PS_ENDCAP_ROUND. This ensures that also
1599 single-pixel length lines are drawn. (For sngle-pixel width lines
1600 roundness as such is of course irrelevant.) For dashed lines, use
1603 For wide lines use PS_ENDCAP_FLAT, _ROUND or _SQUARE,
1604 respectively, for GDK_CAP_BUTT, GDK_CAP_ROUND and GDK_CAP_PROJECTING.
1606 For one pixel on-off dashed lines, use PS_ALTERNATE, it seems to
1607 work better than PS_USERSTYLE. For other dashed lines, use
1608 PS_USERSTYLE and the dashes as set by the user (or the default
1609 four-pixel on-off style).
1611 (gdk_win32_gc_values_to_win32values, gdk_win32_gc_set_dashes):
1612 Call fixup_pen() to do the pen settings after modifying some of
1613 the GDK GC attributes that affect pens.
1615 * gdk/win32/gdkdrawable-win32.c (render_line_horizontal,
1616 render_line_vertical, draw_segments): Check GdkGCWin32::line_style
1617 instead of the the removed pen_double_dash member. Don't use
1618 PATCOPY unconditionally in the PatBlt() call, use a raster op
1619 code that depends on the GC function in use.
1621 (draw_rectangle, draw_segments, draw_lines): Be more careful in
1622 deciding when to do the manual dash rendering.
1624 (draw_segments): Don't do any manual "last point" drawing at
1625 all. The above changes takes care of narrow line segments being
1626 drawn correctly in most cases, at least on NT-based Windows.
1628 2005-06-23 Matthias Clasen <mclasen@redhat.com>
1630 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder):
1631 Fix an error in the cache timeout logic. (#166601, Morten
1634 * gtk/gtktreeview.c (gtk_tree_view_key_press): Change the
1635 keynav for header reordering and resizing to Alt-arrows and
1636 Shift-Alt-arrows, following a proposal by the keynav
1637 authority. (#308666, Calum Benson)
1639 * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Remove
1640 a leftover debugging envvar.
1642 2005-06-23 Owen Taylor <otaylor@redhat.com>
1644 * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix the
1645 big endian case for 3-channel source. (Reported by
1648 2005-06-23 Matthias Clasen <mclasen@redhat.com>
1650 * gtk/gtkbutton.c (gtk_button_construct_child): Don't
1651 trigger warnings if there are extra references to the
1652 hbox. (#308677, Dan Winship)
1654 * gtk/gtkfilesystemunix.c (bookmark_list_write): Use
1655 g_file_set_contents(). (#308722, Morten Welinder)
1657 2005-06-22 Matthias Clasen <mclasen@redhat.com>
1659 * gdk/x11/gdkdnd-x11.c (xdnd_finished_filter): Set the
1660 time field in the event. (#308573, Morten Welinder)
1662 * gtk/gtkfilesystemunix.c: Remove gratitious differences
1663 between the stable branch and HEAD, which sneaked in with
1664 the bookmark renaming.
1666 2005-06-22 Kjartan Maraas <kmaraas@gnome.org>
1668 * gtk/gtkhsv.c: (gtk_hsv_expose): Don't leak the cairo context
1671 2005-06-21 Matthias Clasen <mclasen@redhat.com>
1676 * gtk/gtkpixmap.c: Modify all of the GtkMisc widgets to round down
1677 on centering calculations to match the behaviour of other parts
1678 of GTK+. (#307419, Ryan Lortie)
1680 2005-06-21 Matthias Clasen <mclasen@redhat.com>
1682 * gtk/gtkdnd.c (gtk_drag_source_set): Connect to
1683 button-release-event as well, to handle touchscreen
1684 scenarios better. (#171490, Markku Vire)
1686 * gtk/*.h: Trivial cleanups. (#169647, #303455,
1687 Fabricio Barros Cabral, Benoit Carpentier)
1691 * gdk/x11/gdkgeometry-x11.c (gdk_window_move_region): New
1692 function which can be used to implement scrolling in
1693 non-window widgets. (#135165, Søren Sandmann)
1695 2005-06-20 Matthias Clasen <mclasen@redhat.com>
1697 * gtk/gtkiconcache.c: Handle MAP_FAILED. (#308449, Georg
1700 2005-06-20 Matthias Clasen <mclasen@redhat.com>
1702 * configure.in: Bump version number.
1704 * === Released 2.7.0 ===
1706 2005-06-20 Matthias Clasen <mclasen@redhat.com>
1710 * gtk/gtkwindow.c (gtk_window_present_with_time): Variant of
1711 gtk_window_present which takes a timestamp. (#166379, Elijah Newren)
1713 2005-06-19 Matthias Clasen <mclasen@redhat.com>
1715 * gtk/gtk.symbols: Add a forgotten symbol
1719 2005-06-19 Kristian Rietveld <kris@gtk.org>
1721 * gtk/gtktreeview.c (gtk_tree_view_clamp_node_visible): added a
1722 check which avoids processing updates on bin_window and scrolling
1723 if the node is already visible. (#170600, Billy Biggs).
1725 2005-06-19 Kristian Rietveld <kris@gtk.org>
1727 * gtk/gtktreeview.c (validate_visible_area): only keep the
1728 row at the same position if the full row is visible. (#304623,
1731 2005-06-19 Kristian Rietveld <kris@gtk.org>
1733 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set dy to zero
1734 if treeview's height is smaller than the current page_size (just
1735 like we do elsewhere).
1737 2005-06-19 Kristian Rietveld <kris@gtk.org>
1739 Make mousewheel scrolling possible in typeahead mode, suggestion
1740 from Reinout van Schouwen (#307898).
1742 * gtk/gtktreeview.c (gtk_tree_view_ensure_interactive_directory):
1743 connect treeview search window to scroll_event signal,
1744 (gtk_tree_view_search_scroll_event): implement.
1746 2005-06-19 Kristian Rietveld <kris@gtk.org>
1748 * gtk/gtktreeview.c (gtk_tree_view_search_button_press_event): pass
1749 the event on to treeview, so it has a change of selecting a row, etc.
1750 (#169677, Kirk Bridger).
1752 2005-06-19 Kristian Rietveld <kris@gtk.org>
1754 This commit includes a fix for #169463, Stefan Kost.
1756 * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_get_size):
1757 when cell_area is set, return cell_area width/height as width/height,
1758 so the focus rectangle will be drawn correctly.
1760 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): drop unneeded get
1761 of focus-line-width property,
1762 (validate_row): take focus_line_width into account.
1764 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
1765 also take focus_line_width into account when calculating the cell_area
1766 y and height (before, we only took it into account when calculating
1769 2005-06-19 Matthias Clasen <mclasen@redhat.com>
1772 * gtk/gtksizegroup.[hc]: Add an ignore-hidden property
1773 with getter and setter. (#171612, Christian Neumair)
1775 2005-06-18 Matthias Clasen <mclasen@redhat.com>
1777 * gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Make this
1778 work for inserting before/after an existing menuitem or
1779 toolitem. (#155946, Christian Persch)
1781 * tests/testmerge.c (delayed_toggle_dynamic): Test the
1782 "insert after" functionality of gtk_ui_manager_add_ui.
1784 * gtk/gtkuimanager.c: Allow to construct menu tool buttons.
1785 (#300678, Sven Neumann)
1787 * demos/gtk-demo/appwindow.c: Demonstrate menu tool buttons
1788 constructed with GtkUIManager.
1792 * gtk/gtkimage.c (gtk_image_clear): Make this function
1793 public. (#64792, Havoc Pennington)
1795 2005-06-18 Kristian Rietveld <kris@gtk.org>
1797 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): undo merging
1798 of the separate loop setting cell data with cell drawing loop
1799 (introduced in revision 1.280), since this breaks focus handling
1802 Sat Jun 18 04:22:51 2005 Manish Singh <yosh@gimp.org>
1804 * gdk/gdkcursor.h: remove GDK_CURSOR and GDK_IS_CURSOR, instance
1805 checks don't work on boxed types.
1807 * gdk/x11/gdkcursor-x11.c:
1808 * gdk/gdkcursor.c: make return_if_fail checks != NULL instead of
1811 Sat Jun 18 04:21:58 2005 Manish Singh <yosh@gimp.org>
1813 * gtk/gtktreeview.c (do_presize_handler): remove unused variable
1816 2005-06-18 Matthias Clasen <mclasen@redhat.com>
1818 * gtk/gtkcellrenderertoggle.c:
1819 * gtk/gtktextview.c:
1820 * gtk/gtktreeview.c: Typo fixes in comments.
1822 * gtk/gtkpaned.c (gtk_paned_add): Barf if more than
1823 2 children are added. (#308111, Morten Welinder)
1825 * gtk/gtkcalendar.c (gtk_calendar_init): _NL_FIRST_WEEKDAY is
1826 1-based. (#163842, Pierre Ossman)
1828 2005-06-17 Kristian Rietveld <kris@gtk.org>
1830 Fix #160281, testcase from Peter Bloomfield.
1832 * gtk/gtktreeview.c (do_presize_handler): always size request
1833 and update adjustments in fixed height mode,
1834 (gtk_tree_view_build_tree): if a fixed height is set, set this
1835 height on newly added nodes.
1837 2005-06-17 Tor Lillqvist <tml@novell.com>
1839 * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Set the actions
1840 and suggested_action fields in the GdkDragContext to
1841 GDK_ACTION_COPY. Otherwise apps that check the suggested_action
1842 field, like eog, won't accept dropped files.
1844 2005-06-17 Matthias Clasen <mclasen@redhat.com>
1846 Support the ICCCM urgency hint. (#61858, Havoc Pennington)
1849 * gtk/gtkwindow.[hc]: Add a GtkWindow::urgency-hint property
1850 with getter and setter.
1854 * gdk/x11/gdkwindow-x11.c (gdk_window_set_urgency_hint):
1855 Add a setter for the urgency hint.
1857 * gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Store
1860 * gdk/x11/gdkwindow-x11.c (update_wm_hints): Set the urgency
1861 hint in the WM_HINTS property when appropriate.
1863 2005-06-17 Matthias Clasen <mclasen@redhat.com>
1865 * gdk/gdkcursor.h: Define GDK_IS_CURSOR() and GDK_CURSOR().
1867 * gdk/x11/gdkcursor-x11.c:
1868 * gdk/gdkcursor.c: Improve some return_if_fail checks,
1869 and add the missing non-Xcursor fallback for
1870 _gdk_x11_cursor_update_theme(), noticed by Jeroen
1873 * gtk/gtkbutton.c (gtk_button_class_init): Document
1874 several button signals as not useful.
1876 * gtk/gtkentrycompletion.c (gtk_entry_completion_complete):
1877 Resize the popup if necessary. (#308076, Vincent Noel)
1879 * gtk/gtkwindow.c (gtk_window_real_set_focus): Queue a
1880 draw on the old and new focus widgets, if their defaultness
1881 changes. (#305607, Billy Biggs)
1883 2005-06-17 Kristian Rietveld <kris@gtk.org>
1885 * gtk/gtktreeview.c (validate_visible_area): make sure the row
1886 above 'above_path' is always in a validated state, so it does
1887 not mess up scrolling. (#303319, testcase from Billy Biggs).
1889 2005-06-17 Matthias Clasen <mclasen@redhat.com>
1891 * gdk/x11/gdkprivate-x11.h:
1892 * gdk/x11/gdkcursor-x11.c: Handle cursor theme changes
1893 for cached cursors which are not associated with a window
1894 at the time of the theme change, by storing a serial
1895 number in each cursor, and updating the theme_serial
1896 counter whenever the cursor theme changes.
1898 * gdk/x11/gdkcursor-x11.c (_gdk_x11_cursor_update_theme):
1899 Private function to update a cursor to the current
1900 cursor theme if necessary.
1902 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab):
1903 * gdk/x11/gdkwindow-x11.c (gdk_window_set_cursor): Call
1904 _gdk_x11_cursor_update_theme() here.
1906 2005-06-17 Owen Taylor <otaylor@redhat.com>
1908 * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix
1909 #if G_BYTE_ORDER == GDK_LSB_FIRST.
1911 2005-06-17 Kristian Rietveld <kris@gtk.org>
1913 * gtk/gtktreeview.c (validate_visible_area): don't try to update
1914 the top_row rowref ourselves here, but just have _dy_to_top_row()
1916 (gtk_tree_view_scroll_to_cell): handle scrolling via
1917 validate_visible_area() if the treeview is not visible or needs
1918 reallocation. (#165246, Nickolay V. Shmyrev).
1920 2005-06-17 Kristian Rietveld <kris@gtk.org>
1922 Fixes #307914 (Alexander Larsson), fixing some breakage caused
1923 by my previous commit.
1925 * gtk/gtktreeview.c (validate_visible_area): force dy to be zero
1926 when it fits on a single page,
1927 (scroll_sync_handler): same here.
1929 Thu Jun 16 15:33:42 2005 Manish Singh <yosh@gimp.org>
1931 * gdk/x11/gdkcursor-x11.c (update_cursor): remove unused variable.
1933 * gdk/x11/gdkwindow-x11.c (_gdk_x11_window_get_cursor): use
1934 g_return_val_if_fail.
1936 * gtk/gtkdnd.c (gtk_drag_get_cursor): initialize hot_x and hot_y
1939 * gtk/gtkfilechooserdefault.c (button_new): gtk_button_set_image
1940 takes a GtkWidget, not a GtkImage.
1942 2005-06-16 Matthias Clasen <mclasen@redhat.com>
1944 * gtk/gtkfilechooserdefault.c (button_new): Simplify
1945 the code and respect the show-button-images setting.
1946 (#307941, Vincent Noel)
1948 * gtk/gtkdnd.c: Update the RGBA cursor if an
1949 icon is set after the cursor has been constructed.
1950 Also handle repeated setting of icons correctly.
1952 2005-06-16 Matthias Clasen <mclasen@redhat.com>
1954 * gtk/gtkbutton.c (gtk_button_set_image): Add some more
1955 docs. (#307818, Christian Persch)
1957 2005-06-15 Matthias Clasen <mclasen@redhat.com>
1959 * gdk/gdkwindow.c (gdk_window_process_updates_internal):
1960 Initialize all fields of the expose event. (#151693,
1963 2005-06-15 Matthias Clasen <mclasen@redhat.com>
1965 * gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image): Get
1966 red and blue in place.
1968 * gtk/gtkwindow.c (gtk_window_parse_geometry): Fox doc
1969 formatting, pointed out by Kjartan Maraas.
1971 * gtk/gtksettings.c: Add two new settings,
1972 gtk-cursor-theme-name and gtk-cursor-theme-size to
1973 control the cursor theme.
1975 * gdk/x11/gdkevents-x11.c: Add two new X settings,
1976 Gtk/CursorThemeName and Gtk/CursorThemeSize, and map
1977 these to the gtk settings.
1979 * tests/testgtk.c (create_cursors): Add a cursor theme
1982 * gdk/x11/gdkwindow-x11.[hc]: Keep a reference to the
1983 GdkCursor and add a private getter for it, so that we can
1984 update the cursor when the cursor theme changes.
1988 * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme):
1989 New function to change the cursor theme.
1991 * gdk/x11/gdkwindow-x11.c: Remove a lot of pointless
1992 g_return_if_fail() non-NULL checks.
1994 2005-06-15 Matthias Clasen <mclasen@redhat.com>
1996 * gdk/abicheck.sh: Use uniq to filter out duplicates.
1997 * gdk/gdk.symbols: Fix a define.
1999 2005-06-14 Matthias Clasen <mclasen@redhat.com>
2001 * gtk/gtkwindow.c (gtk_window_parse_geometry):
2002 Fix up the example. (#307699, Michal Suchanek)
2004 2005-06-14 Matthias Clasen <mclasen@redhat.com>
2006 * gtk/gtkcalendar.c: Update num_marked_dates as we
2007 used to do. (#307689, Thorsten Schoenfeld)
2009 2005-06-14 Federico Mena Quintero <federico@ximian.com>
2011 Merged from gtk-2-6:
2015 * gtk/gtkfilechooserdefault.c (list_selection_changed): Emit
2016 "selection-changed" and do the normal housekeeping even if we are
2017 in SAVE mode and there is nothing selected. We didn't emit that
2018 signal if we were in SAVE mode and unselect_all() got called.
2019 (gtk_file_chooser_default_unselect_all): Call
2020 pending_select_paths_free() so that we cancel any asynchronous
2022 (gtk_file_chooser_default_set_current_name): Likewise.
2024 2005-06-14 Federico Mena Quintero <federico@ximian.com>
2026 Merged from gtk-2-6:
2030 * gtk/gtkfilechooserdefault.c
2031 (gtk_file_chooser_default_should_respond): Oops, I broke SAVE
2032 mode. If the parent path is a folder, only create a subfolder if
2033 we are in CREATE_FOLDER mode; if we are in SAVE mode, just return
2034 and respond. Also, pick up the case where the user types
2035 "dirname/" instead of "dirname".
2036 (check_save_entry): Make the return type void. Add some return
2037 parameters so that we can do more thorough checking.
2038 (gtk_file_chooser_default_get_paths): If the file part is empty
2039 and we are in SAVE mode, return an empty selection.
2041 2005-06-15 Kristian Rietveld <kris@gtk.org>
2043 Patch for #163214 (reported by Tommi Komulainen) and fixes some
2044 other scrolling/validation related bugs along the why.
2046 * gtk/gtktreeview.c (gtk_tree_view_size_request): run
2047 do_validate_rows once and don't queue a size request there,
2048 (gtk_tree_view_size_allocate): don't update vadj value without
2049 reason, sync top_row/dy after the window sizes and adjustments
2051 (validate_visible_area): always update dy when scrolling,
2052 manually set top_row here after changing the vadj (don't depend
2053 on _adjustment_changed and top_row/dy sync to do this), since we
2054 now always set top_row here correctly, we can always free
2055 scroll_to_path at the end which avoids infinite expose loops,
2056 (do_validate_rows): add queue_resize boolean, remove top_row/dy
2057 sync here, we cannot do it safely at this place since the
2058 window sizes and adjustments are out of sync,
2059 (validate_rows), (validate_rows_handler): update call to
2062 2005-06-14 Matthias Clasen <mclasen@redhat.com>
2064 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_name): Add a
2065 stub for the no-Xcursor case. (noticed by Luis Villa)
2067 Use named cursors for the DND cursors, the names are "dnd-none",
2068 "dnd-copy", "dnd-link", "dnd-move" and "dnd-ask". Also use an RGBA
2069 cursor instead of cursor+window when possible. This saves
2070 roundtrips during the drag operation, and makes translucent icons
2073 * gtk/gtkdndcursors.h: New file, containing inlined pixbufs
2074 for the default dnd cursors.
2076 * gtk/gtkdnd.c (struct _GtkDragSourceInfo): Store the cursors
2077 used during the drag here, also store the icon pixbuf here.
2079 * gtk/gtkdnd.c (drag_cursors): Store the cursor names here. Also
2080 switch the default cursors from xbm to inlined pixbufs.
2082 * gtk/gtkdnd.c (gtk_drag_get_cursor): This function now takes the
2083 GtkDragSourceInfo as well, since it has to composite the
2084 drag-specific cursors. The cursors combined from the image of
2085 the themed cursor and the icon_pixbuf stored in the info.
2087 * gtk/gtkdnd.c (gtk_drag_begin_internal): Don't set the default
2088 icon if there is an icon_pixbuf, which will be composited into
2091 * gtk/gtkdnd.c (set_icon_stock_pixbuf): If appropriate, store
2092 the pixbuf in the info struct for later compositing into the
2093 cursor instead of creating an icon window.
2095 * gtk/gtkdnd.c (gtk_drag_drop_finished): If we used an
2096 RGBA cursor for the drag, and need to display the cancel
2097 animation, construct the icon window here.
2099 * gtk/gtkdnd.c (gtk_drag_source_info_destroy): Unref the
2100 drag-specific cursors and the icon_pixbuf when done with
2103 2005-06-14 Matthias Clasen <mclasen@redhat.com>
2105 * gtk/gtkcolorsel.c (make_picker_cursor): Use a named cursor
2106 with the name "color-picker", when available.
2110 * gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image)
2111 (gdk_cursor_new_from_name): New functions to construct named
2112 cursors and to get the image used for a cursor.
2114 2005-06-13 Matthias Clasen <mclasen@redhat.com>
2116 * gtk/gtkpathbar.[hc]: Rework the way in which rerooting of the
2117 path bar is done, implementing the following principles:
2118 (#137289, patch by Benjamin Otte)
2120 1. Re-root only if $HOME is an ancestor of the current path.
2122 2. When re-rooting, make sure the Left arrow appears in the path
2123 bar, so that you can navigate up from $HOME to /. In that case,
2124 make sure the Right arrow doesn't appear if the sub-hierarchy from
2125 $HOME to the cwd fits in the window.
2127 3. Make sure that hitting Alt-Up takes you always one folder up,
2128 even when the path bar is re-rooted.
2130 * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
2131 Try harder not to modify readonly strings. (#307541, Torsten Schoenfeld)
2133 * gtk/gtkfilechooserbutton.c (model_update_current_folder):
2134 Free the data of the row before overwriting it. (#307490,
2137 2005-06-13 Kjartan Maraas <kmaraas@gnome.org>
2139 * gtk/gtkcalendar.c: (calendar_paint_arrow): Don't
2140 leak the cairo context. Closes bug #307426.
2142 2005-06-13 Matthias Clasen <mclasen@redhat.com>
2144 Make invisible text work a bit better (#66194, patch by
2145 Jeroen Zwartepoorte)
2148 * gtk/gtktextiter.[hc]: Add function to move by
2151 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal):
2152 Skip invisible text when moving by paragraphs.
2154 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_visually):
2155 Skip invisible lines here too.
2157 2005-06-12 Matthias Clasen <mclasen@redhat.com>
2159 * gtk/gtkselection.c (gtk_target_list_add_image_targets):
2160 Don't leak the format names. (#307190, Morten Welinder)
2162 2005-06-12 Kjartan Maraas <kmaraas@gnome.org>
2164 * gdk/x11/gdkasync.c: (send_event_handler): Plug
2165 a leak. Closes bug #307281.
2167 2005-06-12 Matthias Clasen <mclasen@redhat.com>
2169 * gtk/gtkcalendar.c (calendar_paint_header):
2170 (gtk_calendar_size_request): Allow localization of the
2171 format in which the year is displayed. (#135451, Paisa
2174 * gdk/*.h: Cleanup. (#169648, Fabricio Barros Cabral)
2176 * gdk/gdkcairo.c: Small doc additions.
2178 * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row):
2179 Check start_button_mask before starting a drag. (#149058,
2182 * gtk/gtkfilesystemunix.c: Support .hidden files. (#129170,
2183 Sayamindu Dasgupta, patch by Jan Arne Petersen)
2185 2005-06-11 Matthias Clasen <mclasen@redhat.com>
2189 * gtk/gtkwidget.c (gtk_widget_set_app_paintable): More docs
2190 provided by Owen Taylor.
2193 * gtk/gtkiconview.h:
2194 * gtk/gtkiconview.c (gtk_icon_view_get_visible_range):
2195 Add a function to determine what parts of the model are
2196 visible. (#306726, Jonathan Blandford)
2198 * gtk/gtkfilesystemunix.c (create_file_info): Treat backup
2199 files the same way as hidden files, to be closer to what
2200 Nautilus does. (#136196, Sean Middleditch)
2202 2005-06-10 Matthias Clasen <mclasen@redhat.com>
2204 * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
2205 Don't modify strings returned from gettext().
2207 Fri Jun 10 19:06:03 2005 Manish Singh <yosh@gimp.org>
2209 * gtk/gtktextdisplay.c (render_para): don't use deprecated
2210 gdk_gc_unref function.
2212 2005-06-10 Matthias Clasen <mclasen@redhat.com>
2214 Allow setting paragraph background. (#81045, Gustavo
2215 Carneiro, patch by Jeroen Zwartepoorte)
2217 * gtk/gtktextlayout.c (set_para_values): Propagate
2218 pg_bg_color to the display struct.
2219 (gtk_text_layout_free_line_display): Free it here.
2221 * gtk/gtktextdisplay.c (render_para): If pg_bg_color
2222 is set, draw a rectangle in that color behind
2225 * gtk/gtktexttag.c (gtk_text_tag_class_init): Add
2226 paragraph-background, paragraph-background-gdk and
2227 paragraph-background-set properties.
2228 (set_pg_bg_color): A setter for paragraph-background.
2230 * gtk/gtktextlayout.h (struct _GtkTextLineDisplay): Add
2233 * gtk/gtktexttag.h (struct _GtkTextAttributes): Add
2235 (struct _GtkTextTag): Add pg_bg_color_set.
2237 2005-06-10 Kjartan Maraas <kmaraas@gnome.org>
2239 * gdk/gdkcairo.c: (gdk_cairo_set_source_pixbuf): Destroy the
2240 cairo surface when done with it. Plugs a fairly large leak in
2242 ==6014== 1999824 (115640 direct, 1884184 indirect) bytes in
2243 826 blocks are definitely lost in loss record 25239 of 25250
2244 Like this from nautilus.
2246 2005-06-10 Michael Natterer <mitch@imendio.com>
2249 * gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function
2250 to get an action's accel_closure (Fixes #141750 and #148106).
2252 2005-06-10 Matthias Clasen <mclasen@redhat.com>
2254 * gdk/gen-keyname-table.pl: Generate N_() calls for
2255 translatable key names.
2257 * gdk/keynames.txt: Mark some key names as translatable.
2259 * gdk/keyname-table.h: Regenerated.
2261 * gtk/gtkaccellabel.c (gtk_accel_label_class_init): Add
2262 some context to the msg ids for keyboard modifiers and
2264 (_gtk_accel_label_class_get_accelerator_label): Try to
2265 translate key names. (#300224, Christian Rose)
2267 2005-06-10 Federico Mena Quintero <federico@ximian.com>
2269 Merged from gtk-2-6:
2273 * gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't return
2274 immediately if we are in CREATE_FOLDER mode, so that we can fill
2275 the entry with the newly-selected folder.
2276 (gtk_file_chooser_default_set_property): Warn against turning on
2277 multiple selection for CREATE_FOLDER mode, or about setting that
2278 action while multiple selection is on.
2279 (update_chooser_entry): Change the entry's contents as well if we
2280 are in CREATE_FOLDER mode. If nothing is selected, clear the
2282 (trap_activate_cb): Don't trap enter/space if modifiers are
2283 pressed. This lets one use Ctrl-space to toggle rows in multiple
2285 (gtk_file_chooser_default_should_respond): Clean up the if-chain
2286 mess of special cases by using an array to determine what to do.
2287 Also, for the save-entry case in CREATE_FOLDER mode, actually fix
2288 the bug where the file chooser would switch to an existing folder
2289 rather than confirming with it, and create the folder ourselves.
2290 (error_creating_folder_over_existing_file_dialog): New function.
2292 * gtk/gtkfilechooserentry.c (check_completion_callback): Only
2293 insert the common prefix if we are in an "open" mode. Use a
2295 (append_common_prefix): New helper function; code moved over from
2296 check_completion_callback().
2297 (find_common_prefix): New helper function.
2298 (gtk_file_chooser_entry_focus): Append the common prefix if the
2299 user requests it explicitly.
2301 2005-06-10 Matthias Clasen <mclasen@redhat.com>
2303 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_expand):
2304 * gtk/gtktoolbar.c (gtk_toolbar_get_show_arrow):
2305 * gtk/gtktextview.c (gtk_text_view_get_iter_at_position):
2306 * gtk/gtkstock.c (gtk_stock_set_translate_func):
2307 * gtk/gtkspinbutton.c (gtk_spin_button_get_adjustment):
2308 * gtk/gtkscrolledwindow.h:
2309 * gtk/gtkmenushell.c (gtk_menu_shell_get_take_focus):
2311 * gtk/gtkiconview.c (gtk_icon_view_set_margin):
2312 * gtk/gtkicontheme.c (gtk_icon_info_load_icon):
2313 * gtk/gtkcalendar.c (gtk_calendar_thaw): Doc fixes.
2315 2005-06-09 Matthias Clasen <mclasen@redhat.com>
2317 * gdk/x11/gdkwindow-x11.c: Small markup fixes.
2319 * gtk/gtkwidget.c (gtk_widget_set_app_paintable): Add docs.
2320 (#306212, Steve Chaplin, docs provided by Billy Biggs)
2322 * gtk/gtktextbtree.c (_gtk_text_btree_char_is_invisible): Small
2323 cleanup. (#305539, Paolo Borelli)
2325 2005-06-09 Rodrigo Moya <rodrigo@novell.com>
2327 * configure.in: added cairo to list of $GTK_PACKAGES.
2329 2005-06-09 Matthias Clasen <mclasen@redhat.com>
2331 * gdk/x11/gdkdnd-x11.c (motif_drop_start, xdnd_drop_filter): Update
2332 the user time on the window when a drop happens. (#169364, Alexander
2333 Hunziker, patch by Elijah Newren)
2335 * gdk/x11/gdkwindow-x11.c: Small markup fixes.
2338 * gtk/gtkiconview.h:
2339 * gtk/gtkiconview.c (gtk_icon_view_scroll_to_path): New function
2340 to scroll to a path. (#306838, Jonathan Blandford)
2342 2005-06-08 Matthias Clasen <mclasen@redhat.com>
2344 * gtk/gtkiconview.c (gtk_icon_view_set_cursor): Scroll to the
2345 item. (#306839, Jonathan Blandford)
2347 * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): Check for
2348 negative before appending the index, to avoid double error
2349 message. (#306393, Morten Welinder)
2351 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
2352 Don't crash if search_window is NULL. (#304914, Victor Osadci,
2353 testcase by Olaf Vitters)
2355 * gtk/gtkimage.c: Make the file property readable.
2356 (#170674, Lorenzo Gil Sanchez)
2359 2005-06-08 Matthias Clasen <mclasen@redhat.com>
2361 * gtk/gtkfilesystem.c (gtk_file_info_get_display_key): Use
2362 g_utf8_collate_key_for_filename().
2364 2005-06-07 Kjartan Maraas <kmaraas@gnome.org>
2366 * gtk/gtkfilechooserbutton.c: (update_label_and_image):
2367 Merge leak fix from stable. Bug 306754.
2369 2005-06-05 Tor Lillqvist <tml@novell.com>
2371 * gdk/win32/gdkscreen-win32.c
2372 (_gdk_windowing_substitute_screen_number): Return NULL unless
2373 screen number is zero. We have only one screen on Win32.
2374 (gdk_screen_make_display_name): Call gdk_display_get_name() and
2377 * modules/engines/Makefile.am
2378 * modules/input/Makefile.am: Decide whether to build the
2379 ms-windows theme engine based on the GDK backend, not based on
2380 platform. (I.e., if building for Cygwin with the X11 backend, we
2381 shouldn't build the ms-windows engine, but if building for Cygwin
2382 but with the Win32 backend, we should.) Ditto for the IME
2383 (Windows) input module. (#305832)
2385 2005-06-04 Tor Lillqvist <tml@novell.com>
2387 * gdk/win32/gdkcursor-win32.c
2388 * gdk/win32/gdkwindow-win32.c
2389 * gdk/win32/gdkprivate-win32.h: Support full-colour cursors.
2390 Support cursors with alpha on XP. Use code in common with the
2391 support for alpha icons that already was present. (#306101, Tim
2394 * modules/engines/ms-windows/msw_style.c: Render insensitive icons
2395 in a way that more closely matches Windows. (#305986, Tim Evans).
2397 * modules/engines/ms-windows/Makefile.am (LDADDS): Link with
2400 2005-06-03 Dom Lachowicz <cinamod@hotmail.com>
2402 * modules/engines/ms-windows/msw_style.c: Re-sync with gtk-wimp
2403 * modules/engines/ms-windows/xp_theme.c: Ditto
2404 * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Ditto
2406 Thu May 26 16:43:27 2005 Manish Singh <yosh@gimp.org>
2408 * gtk/gtkentrycompletion.h: Add declarations for
2409 gtk_entry_completion_{get,set}_popup_single_match.
2411 2005-05-26 Matthias Clasen <mclasen@redhat.com>
2414 * gtk/gtkentrycompletion.c: Add a property to suppress the
2415 popup for single matches. (#154711)
2417 * gtk/gtkentry.c (gtk_entry_completion_timeout): Respect it here.
2419 * gtk/gtkfilechooserentry.c (_gtk_file_chooser_entry_set_action):
2422 * gtk/gtktextbtree.c (_gtk_text_btree_tag): Queue the
2423 redisplay after modifying the tag in the btree, otherwise
2424 we end up showing the old tags until the next redraw comes
2425 around. (#143537, Gary Kramlich, Peter Wainwright)
2427 * gtk/gtkcombobox.c (gtk_combo_box_list_auto_scroll): Make
2428 autoscrolling work at the bottom of the screen.
2430 2005-05-26 Maciej Katafiasz <email@mathrick.org>
2432 * docs/reference/gtk/tmpl/gtkentry.sgml:
2433 Point to GtkTextView instead of GtkText. Fixes bug #305535
2435 2005-05-26 Sven Neumann <sven@gimp.org>
2437 * gtk/gtkselection.c (gtk_selection_data_set_pixbuf): use a less
2438 aggressive PNG compression level (bug #305340).
2440 2005-05-26 Tor Lillqvist <tml@novell.com>
2442 * gdk/win32/gdkdrawable-win32.c (_gdk_win32_blit): If blitting
2443 from the root window, take the multi-monitor offset into
2446 2005-05-25 Matthias Clasen <mclasen@redhat.com>
2448 * demos/gtk-demo/appwindow.c (do_appwindow): Set the window
2451 * gtk/gtkfilesystem.c (gtk_file_folder_is_finished_loading):
2452 Remove another C99ism.
2454 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Draw the
2455 background of rows insensitive when the treeview is insensitive.
2456 (pointed out by Billy Biggs)
2458 * demos/gtk-demo/clipboard.c: Demonstrate image copy-and-paste
2459 and DND, and clipboard persistency.
2461 * gtk/gtkselection.c (gtk_target_list_add_image_targets):
2462 Make sure png comes first, otherwise dnd may use bmp by
2463 default, loosing transparency.
2465 2005-05-25 Michael Natterer <mitch@imendio.com>
2467 * gtk/gtktextview.c (blink_cb): block the text_layout's "changed"
2468 handler when changing cursor visibility because it would expose
2469 the whole paragraph where the cursor is. Instead, expose the
2470 cursors' areas manually. (#173047).
2472 (text_window_invalidate_cursors): new function which exposes the
2475 * gtk/gtkstyle.c (draw_insertion_cursor): added comment that the
2476 same cursor size calculation is in text_window_invalidate_cursors().
2478 2005-05-25 Matthias Clasen <mclasen@redhat.com>
2480 * demos/gtk-demo/editable_cells.c (create_items_model): Also
2481 demonstrate GtkCellRendererProgress.
2483 * demos/gtk-demo/Makefile.am (demos):
2484 * demos/gtk-demo/combobox.c: Add a demo showing combo box
2487 * demos/gtk-demo/Makefile.am (demos):
2488 * demos/gtk-demo/pickers.c: Add a demo showing all picker widgets.
2490 2005-05-24 Matthias Clasen <mclasen@redhat.com>
2492 * demos/gtk-demo/iconview.c (do_iconview): Fix a typo.
2494 2005-05-24 Tor Lillqvist <tml@novell.com>
2496 * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Handle
2497 gtk-alternative-button-order (setting it to TRUE).
2499 2005-05-23 Matthias Clasen <mclasen@redhat.com>
2501 * gtk/gtktreeview.c (gtk_tree_view_search_init): Remove
2502 an unused variable. (#305130, Jaap A. Haitsma)
2504 * gtk/gtkfilechooserdefault.c (filter_create): Don't grab
2505 the focus away from the file list when operating the filter
2506 combo with the pointer. (#304844, Sven Neumann)
2508 2005-05-23 Tor Lillqvist <tml@novell.com>
2510 * gdk/win32/gdkkeys-win32.c (handle_special): Map VK_APPS to
2511 GDK_Menu. (#172383, Ivan Wong)
2513 * gdk/win32/gdkkeys-win32.c (handle_dead): If the keysym isn't one
2514 of the special cases this function takes care of, use it as
2515 such. This takes care of for instance the Bengali Virama, see bug
2518 2005-05-20 Matthias Clasen <mclasen@redhat.com>
2520 * gtk/gtkimcontextsimple.c (check_table): Avoid a possible
2521 buffer overrun. (#142444, Leonard Michlmayr)
2523 * gtk/gtkfilesystem.c: Remove C99-isms (#304879,
2526 2005-05-18 Matthias Clasen <mclasen@redhat.com>
2528 * gtk/gtkfilechooser.c (gtk_file_chooser_remove_shortcut_folder_uri):
2529 Use the correct function to conver the uri to a path. (#304565,
2532 * gtk/gtkfilechooserbutton.c (dialog_response_cb): Handle the
2533 Cancel button properly. (#304234, Sven Neumann)
2535 2005-05-18 Anders Carlsson <andersca@imendio.com>
2537 * gtk/gtktextview.c: (gtk_text_view_flush_scroll),
2538 (gtk_text_view_update_adjustments), (gtk_text_view_value_changed):
2539 * gtk/gtktextview.h:
2540 If the horizontal adjustment changes because of a change in the
2541 layout width, then do a complete redraw. This is because there
2542 might be right-aligned or centered text that needs to be redrawn.
2544 2005-05-18 Matthias Clasen <mclasen@redhat.com>
2546 * gtk/gtkwidget.c (gtk_widget_add_events): Try harder to set
2547 the event masks of descendent windows. (#169821, Tommi Komulainen)
2549 * gtk/gtktreeview.c (gtk_tree_view_get_drop_column)
2550 (gtk_tree_view_set_column_drag_info): Fix some errors in the
2551 handling of drop columns. (#143355, John Finlay)
2553 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
2554 Remove the no longer needed workaround.
2556 * gtk/gtkwidget.c (widget_add_child_draw_rectangle): Only collect
2557 allocations of mapped children.
2559 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
2560 Add a bug reference.
2562 2005-05-18 Tor Lillqvist <tml@novell.com>
2564 * gdk/win32/gdkevents-win32.c
2565 * gdk/win32/gdkkeys-win32.c
2566 * gdk/win32/gdkprivate-win32.h: Check the KF_EXTENDED bit in
2567 lParam of WM_KEY* messages to distinguish between left and right
2568 Control and Alt keys. Unfortunately, the right Shift key doesnt
2569 set KF_EXTENDED, so to distinguish between left and right Shift
2570 keys, check the scan code. (#304584)
2572 2005-05-18 Matthias Clasen <mclasen@redhat.com>
2574 * gdk/x11/gdkproperty-x11.c (gdk_property_get): Warn if
2575 length overflows. (#161520, Ian Wienand)
2577 * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name): Fix
2578 parameter names to make gtk-doc happy.
2580 * gtk/gtkscale.c (gtk_scale_class_init): Fix the default
2581 values of draw-value and value-pos to be the values we
2582 actually use in _init. (#304547, Mikael Hallendal)
2584 * gtk/gtkcellrendererpixbuf.c: Support named icons in
2585 cells by adding a icon-name property. (#165777, Anders
2589 * gtk/gtktoolbutton.h:
2590 * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name)
2591 (gtk_tool_button_get_icon_name): Support named icons in
2592 tool buttons by adding a icon-name property. (#116577,
2597 * gtk/gtkdnd.c (gtk_drag_source_set_icon_name)
2598 (gtk_drag_set_icon_name): New functions to support themed
2599 drag icons. (#116577, Christian Neumair)
2601 2005-05-17 Owen Taylor <otaylor@redhat.com>
2603 * gdk/x11/gdkdrawable-x11.c (gdk_x11_ref_cairo_surface):
2604 Update to changed cairo interface.
2606 * gdk/x11/gdkdrawable-x11.[ch]:
2607 Add _gdk_x11_drawable_update_size()
2609 * gdk/x11/gdkwindow-x11.c (gdk_window_resize)
2610 (gdk_window_move_resize)
2611 * gdk/x11/gdkevents-x11.c (gdk_event_translate):
2612 Call _gdk_x11_drawable_update_size().
2614 2005-05-17 Matthias Clasen <mclasen@redhat.com>
2616 * gtk/gtktextview.c (cursor_blinks): Don't blink the cursor
2617 if the text view is not editable.
2619 * gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Keep
2620 the popup posted if the button is released over the cellview.
2621 This matches the behaviour of other combo box implementations.
2624 * gdk/gdkwindow.c (gdk_window_set_bg_pattern): Adjust offsets
2625 when recursing. (#153682, Felipe Heidrich)
2627 2005-05-16 Matthias Clasen <mclasen@redhat.com>
2629 * gtk/gtkscale.c (gtk_scale_class_init): Don't bind GDK_Page_Up
2630 and GDK_Page_Down twice. (#168333, Hazael Maldonado Torres)
2632 * gtk/gtkentry.c (cursor_blinks): Don't blink the cursor if
2633 the entry is not editable. (#304171, Nikos Kouremenos)
2635 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_constructor):
2636 Make sure the action of the button and the dialog are in sync,
2637 when the dialog is provided by the app. (#303987, David A Knight)
2639 * gdk/gdkpango.c (gdk_pango_renderer_get_default): Fix a typo
2640 in the docs. (#303940, Masao Mutoh)
2642 * configure.in (GTK_DOC_CHECK): Check for gtk-doc 1.4.
2644 * gtk/gtktoggleaction.c (connect_proxy): Be more careful when
2645 casting. (#304089, Philip Langdale)
2647 * gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Only shrink
2648 the label if we need to. (#169390, Felix Riemann)
2650 Sat May 14 00:07:46 2005 Manish Singh <yosh@gimp.org>
2653 * gdk/gdkpango.c: #include gdkcairo.h for gdk_cairo_create()
2656 * gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): actually
2657 call gdk_cairo_set_source_color() with a color.
2659 * gtk/gtkimage.c (gtk_image_expose): remove unused stock_id variable.
2661 * tests/testiconview.c (main): cast args of drag functions to the
2664 2005-05-13 Owen Taylor <otaylor@redhat.com>
2666 * gdk/x11/gdkdrawable-x11.c: Update for cairo-xlib API change.
2668 * gdk/x11/gdkpixmap-x11.[ch] gdk/gdk.symbols: Export
2669 gdk_pixmap_impl_x11_get_type(), needed in gdkdrawable-x11.c.
2671 2005-05-11 Owen Taylor <otaylor@redhat.com>
2673 * tests/testgtk.c (on_alpha_window_expose): Fix to use
2674 gdk_cairo_create(). (create_alpha_window): Hook up "response"
2675 to close the window.
2677 2005-05-11 Owen Taylor <otaylor@redhat.com>
2679 * gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea
2680 to draw the swatch in to avoid having an extraneous window.
2682 * gtk/gtkcolorsel.c (color_sample_draw_sample): Actually se tthe
2683 color when !has_opacity.
2685 2005-05-10 Owen Taylor <otaylor@redhat.com>
2687 * gdk/gdkcairo.[ch] gdk/gdkcolor.[ch] gdk/Makefile.am: Add source
2688 files for Cairo convenience functionality.
2690 * gdk/gdkcairo.h (gdk_cairo_rectangle, gdk_cairo_region): Add a
2691 convenience functions to add GdkRectangle, GdkRegion to a cairo path.
2693 * gdk/gdkwindow.c gdk/gdkgc.c gtk/gtkcolorsel.c gtk/gtkiconview.c
2694 gtk/gtkstyle.c: Use gdk_cairo_rectangle/region().
2696 * gdk/gdkcairo.[ch] gdk/gdkdrawable.h gdk/gdkdraw.c: Rename
2697 gdk_drawable_create_cairo_context() to gdk_cairo_create().
2699 * gdk/gdkcairo.c gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c:
2700 Rename gdk_pixbuf_set_as_cairo_source() to
2701 gdk_cairo_set_source_pixbuf().
2703 * gdk/gdkdraw.c gdk/gdkpango.c gtk/gtkcolorsel.c gtk/gtkhruler.c
2704 gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkstyle.c gtk/gtkvruler.c:
2707 * gdk/gdk.symbols: Update.
2709 * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): Fix
2710 coordinate system problem that was causing the wrong portions
2713 * gtk/gtkcellrenderer.c (gtk_cell_renderer_render)
2714 gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render)
2715 gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render)
2716 gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render)
2717 gtk/gtkcellview.c (gtk_cell_view_expose)
2718 gtk/gtkdnd.c (gtk_drag_highlight_expose)
2719 gtk/gtkentry.c (gtk_entry_draw_text)
2720 gtk/gtktextview.c (text_window_invalidate_rect): Some cairoization.
2722 * gtk/gtkcalendar.[ch]: Beat into something roughly resembling
2723 GTK+ style ... use instance-private data and standard names for
2724 private structure, etc. Move function docs inline.
2726 * gtk/gtkcalendar.[ch]: Switch to drawing everything in
2727 expose. Switch drawing to Cairo.
2729 * gtk/gtkcalendar.c (gtk_calendar_freeze): Deprecate
2730 gtk_calendar_freeze/thaw
2732 2005-05-10 Tor Lillqvist <tml@novell.com>
2734 * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Check
2735 that GDK_IS_SCREEN(screen) (like the X11 backend does), not screen
2736 == gdk_screen_get_default(), as that might return NULL when this
2739 2005-05-09 Matthias Clasen <mclasen@redhat.com>
2741 * gtk/gtkalignment.c (gtk_alignment_size_allocate): Flip the
2742 padding in RTL mode. (#303572, Maciej Katafiasz)
2744 2005-05-09 Owen Taylor <otaylor@redhat.com>
2746 * gdk/gdkrgb.c (gdk_rgb_convert_0888_br, gdk_rgb_convert_8880_br):
2747 Fill in unused bits so they can be used for the depth-32 target case.
2748 Rewrite so that that gives a marginal speedup rather than a
2749 marginal slowdown. (on x86)
2751 * gdk/gdkscreen.h gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkvisual-x11.c:
2752 Add gdk_screen_get_rgba_colormap/visual to get a visual for
2753 windows with an alpha channel, if one exists.
2755 * gdk/win32/gdkscreen-win32.c gdk/linux-fb/gdkscreen-fb.c:
2756 Stub out gdk_screen_get_rgba_colormap/visual.
2758 * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors): computation of
2759 "unused" wasn't right for depth == 32, since it depended on
2762 * gdk/gdkrgb.c: Fill in alpha bits with 1s. (Based on patch from
2764 http://mail.gnome.org/archives/gtk-devel-list/2004-June/msg00080.html)
2766 * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
2767 Implement again, without using Xft.
2769 * tests/testgtk.c: Add a test for windows with an alpha channel.
2771 2005-05-09 Matthias Clasen <mclasen@redhat.com>
2773 * autogen.sh: Revert accidental commit.
2775 2005-05-08 Matthias Clasen <mclasen@redhat.com>
2777 * gdk/gdkcolor.c (gdk_cairo_set_source_color):
2782 * gdk/x11/gdkcolor-x11.c: Small documentation additions.
2784 2005-05-07 Matthias Clasen <mclasen@redhat.com>
2786 * gtk/gtkscrolledwindow.h:
2787 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_hscrollbar):
2788 (gtk_scrolled_window_get_cscrollbar): Change the return
2789 type to GtkWidget*, proposed by Owen Taylor.
2791 * gdk/x11/gdkscreen-x11.c (gdk_screen_get_width_mm)
2792 (gdk_screen_get_height_mm): Fix typos in the docs. (#303389,
2795 2005-05-07 Matthias Clasen <mclasen@redhat.com>
2797 * gtk/gtkiconview.c: Fix a copy-and-paste accident, spotted
2800 2005-05-07 Owen Taylor <otaylor@redhat.com>
2802 * gdk/gdkgc.c (gc_get_foreground): Get the foreground color, not
2803 the background color.
2805 2005-05-07 Owen Taylor <otaylor@redhat.com>
2807 * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source):
2808 Change prototype to match cairo_set_source_surface().
2810 * gdk/gdkdraw.c gdk/gdkgc.c gdk/gdkpixbuf-render.c gdk/gdkwindow.c
2811 gtk/gtkhsv.c tests/testcairo.c.
2813 2005-05-06 Federico Mena Quintero <federico@ximian.com>
2815 Merged from gtk-2-6:
2817 * gtk/gtkfilesystemunix.c (fill_in_mime_type): Don't fill the mime
2818 types if this is an AFS directory.
2819 (fill_in_names): If we are in an AFS directory, set the MIME type
2820 blindly to "x-directory/normal".
2822 2005-05-06 Matthias Clasen <mclasen@redhat.com>
2824 * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Always
2825 initialize child-visible to FALSE, otherwise we may end up
2826 with the wrong page visible initially. (#302283, Patrik Fimml)
2828 * gtk/gtktreeview.c (gtk_tree_view_draw_arrow): Make expanders
2829 appear insensitive in insensitive treeviews.
2831 2005-05-05 Matthias Clasen <mclasen@redhat.com>
2833 * gtk/gtktoolbar.c: Fix a typo in the docs. (#303024,
2836 2005-05-06 Matthias Clasen <mclasen@redhat.com>
2839 * gtk/gtkiconview.[hc]: Add DND support similar to the DND
2840 support in the tree view. (#150270)
2842 2005-05-05 Matthias Clasen <mclasen@redhat.com>
2845 * gtk/gtkwidget.h: Small cleanups.
2847 * gtk/gtktreeview.c (gtk_tree_view_get_dest_row_at_pos): Fix
2850 2005-05-04 Owen Taylor <otaylor@redhat.com>
2852 * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.h: Fix a bug
2853 in focus tracking when we move between has_pointer_focus and
2854 has_focus_window directly. (#109246, Billy Biggs, Niko Tyni
2857 * gdk/x11/gdkevents-x11.c: Also fix some confusion that could
2858 happen in the case of no window manager + keyboard grabs, by
2859 moving to a more consistent model of when we pay attention to
2860 mode=NotifyGrab/NotifyUngrab events.
2862 * docs/focus_tracking.txt: Extensive writeup about how to track
2865 Wed May 4 13:21:41 2005 Søren Sandmann <sandmann@redhat.com>
2867 * tests/testcairo.c (draw): Replace cairo_show_surface() uses with
2868 cairo_set_source_surface()/cairo_paint();
2870 2005-05-04 Tor Lillqvist <tml@novell.com>
2872 * gdk/win32/gdkdrawable-win32.c (generic_draw, blit_from_pixmap)
2873 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values,
2874 _gdk_win32_gc_new, _gdk_windowing_gc_set_clip_region,
2875 gdk_win32_hdc_get): Minor fixes to make Win32 backend compile
2878 2005-05-03 Matthias Clasen <mclasen@redhat.com>
2880 * gtk/gtkfilesystem.c:
2881 * gtk/gtkcelleditable.c:
2882 * gtk/gtktreemodel.c: Avoid getting the interface struct
2883 twice in the same function. (#300513, Billy Biggs)
2885 * gtk/gtkscrolledwindow.h:
2886 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_vscrollbar):
2887 * gtk/gtk.symbols: Add getters for the scrollbars. (#167181,
2891 * gtk/gtkdialog.c (gtk_dialog_get_response_for_widget):
2892 Make this function public. (#170748, Morten Welinder)
2894 2005-05-02 Federico Mena Quintero <federico@ximian.com>
2896 Merged from gtk-2-6:
2900 * gtk/gtkfilesystemunix.c (struct _GtkFileSystemUnix): Add fields
2901 to store struct stat for /afs and /net, and boolean fields to say
2902 whether these are valid.
2903 (struct _GtkFileFolderUnix): Added a boolean is_network_dir field.
2904 (gtk_file_system_unix_get_folder): Fill in the is_network_dir
2905 field of the folder structure.
2906 (fill_in_names): If the folder is a network directory, create a
2907 fake struct stat for its entries.
2908 (fill_in_stats): Don't stat() the children of network directories.
2910 * gtk/gtkfilechooserdefault.c (list_mtime_data_func): If the mtime
2911 is 0, use "Unknown" for the cell's displayed text.
2913 2005-04-28 Owen Taylor <otaylor@redhat.com>
2915 * gtk/gtkwidget.c: Add a draw-border style property to allow
2916 themes to draw outside the widget's allocation.
2918 * gdk/gdkwindow.c gtk/gtkstyle.c: Remove some save/restore pairs
2919 that were working around the clip-leakage bug in Cairo.
2921 * gtk/gtkstyle.c: Use cairo_fill_preserve() rathe than
2924 * gdk/gdkgc.c gdk/gdkinternals.h: Add _gdk_gc_update_context()
2925 That updates a Cairo context to match a GC.
2927 * gdk/gdkdraw.c: Use _gdk_gc_update_context() to add support
2928 for tiles/stipples/clipping to gdk_draw_glyphs(),
2929 gdk_draw_trapezoids().
2931 * gdk/gdkpango.c: Use _gdk_gc_update_context() instead of internal
2932 implementation of stipples. Use one cairo_t across the entire
2933 drawing operation. Replace cairo_matrix_create() with
2934 stack-allocated matrices.
2936 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
2937 gdk/win32/gdkgc-win32.c: Save various aspects of the
2938 GC state (fill, tile, stipple, foreground, background, clip region)
2939 in instance-private-data for future use. Add getters.
2940 Get rid of _gdk_windowing_gc_get_foreground() function implemented
2943 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
2944 gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Add
2945 _gdk_gc_init() to do initial setup of the GC from values;
2946 fixes some problems from drawable redirection.
2948 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
2949 gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Move
2950 gdk_gc_copy() and gdk_gc_set_clip_{region,rectangle}() into
2951 the generic code, add _gdk_windowing_gc_copy(),
2952 _gdk_windowing_gc_set_clip_region() to do backend specific
2955 * gdk/x11/{gdkprivate-x11.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
2956 gdk/win32/{gdkprivate-win32.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
2957 gdk/linux-fb/{gdkprivate-fb.h,gdkgc-fb.c.c,gdkdrawable-fb.c}:
2958 Don't duplicate state that now is stored by the generic code.
2960 * gdk/gdk.symbols Update
2962 2005-05-02 Matthias Clasen <mclasen@redhat.com>
2964 * tests/testiconview.c: Test cell renderers.
2966 * gtk/gtk.symbols: Add new functions.
2968 * gtk/gtkiconview.[hc]: Implement GtkCellLayout and use
2969 cell renderers for drawing and editing. (#148144, #160242)
2971 2005-05-02 Matthias Clasen <mclasen@redhat.com>
2973 * gtk/gtkcellrenderertext.c (get_size): Return a sufficient
2974 width for cases where pango_layout_get_pixel_extents() returns
2975 a rectangle with nonzero x.
2977 * gtk/gtkselection.c: Small doc fixes.
2979 * gtk/gtkmenushell.c (gtk_menu_shell_set_take_focus):
2980 (gtk_menu_shell_get_take_focus): Fix up the docs a bit.
2982 2005-05-02 Michael Natterer <mitch@imendio.com>
2984 * gtk/gtkmain.c (do_post_parse_initialization): return silently if
2985 "gtk_initialized" is TRUE. Re-enables calling GTK's init functions
2986 multiple times when using gtk_get_option_group(), just as one can
2987 call gtk_init() multiple times without doing any harm.
2989 2005-05-01 Matthias Clasen <mclasen@redhat.com>
2991 * gtk/gtktextview.c (gtk_text_view_expose_event): Propagate
2992 the event to unanchored children in the text window.
2993 (#302494, Stephen Kennedy)
2995 2005-04-30 Tor Lillqvist <tml@novell.com>
2997 * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Take
2998 multi-monitor offset into account. (#302525)
3000 2005-04-29 Matthias Clasen <mclasen@redhat.com>
3002 * gtk/gtkradioaction.c: Make the docs build. (#302230,
3005 * gtk/gtkiconview.c (gtk_icon_view_map): Get rid of this
3006 function, instead show the bin_window when it is created.
3008 * gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't
3009 grab focus to unrealized widgets. (#302240, Philip Langdale)
3011 * gtk/gtktreeview.c (gtk_tree_view_state_changed): Set
3012 background upon state changes. (#301651, Billy Biggs)
3013 (gtk_tree_view_get_path_at_pos): Take RTL into account
3014 when iterating over the columns. (#302163)
3016 * configure.in: Check for nm.
3018 * gtk/Makefile.am: Use $(NM), not nm directly. (#301299,
3019 Nguyen Thai Ngoc Duy)
3021 * gtk/gtkiconview.c (gtk_icon_view_move_cursor_start_end): Use
3022 the internal unselect_all function, since we need the unselection
3023 to happen even in browse mode. (#300995, Mathias Hasselmann)
3025 * gtk/gtkuimanager.c (update_node): Use g_object_notify() instead
3026 of triggering a ::notify by re-setting the property. (#300982,
3029 * gtk/gtkaction.c (connect_proxy): Use gtk_action_sync_tooltip().
3031 * gtk/gtkiconview.c (gtk_icon_view_scroll_to_item): Also
3032 scroll horizontally when necessary, and keep the northwest
3033 corner of the item visible. (#300913, Mathias Hasselmann)
3035 * tests/testiconview.c: Add some more tests.
3037 * gtk/gtkiconview.c (gtk_icon_view_select_path): Don't crash
3038 if the path does not point to a row in the model. (#300909,
3040 (gtk_icon_view_rows_reordered): Re-layout here. (#301009,
3043 * tests/testtext.c: Add some more attribute tests.
3045 * gtk/gtktexttag.c (gtk_text_tag_class_init): Correct the documentation
3046 of the rise property. String change, but it is more important to
3047 be correct than to be translated. (#301740)
3049 2005-04-25 Tor Lillqvist <tml@novell.com>
3051 * gtk/gtkfilesystemwin32.c
3052 (gtk_file_system_win32_volume_get_display_name): Get volume name
3053 also on Win9x. (#301798, Daniel Atallah)
3054 (canonicalize_filename): Add explicit braces to silence compiler
3057 2005-04-22 Tor Lillqvist <tml@novell.com>
3059 * gtk/gtkmain.c: Initailize gettext before use. Calling
3060 bindtextdomain() and bind_textdomain_codeset() in
3061 do_post_parse_initialization() is too late. Put the calls in a new
3062 function gettext_initialization(), and call that from
3063 gtk_init_with_args() and gtk_parse_args(). Fixes #170948 for
3064 GTK+'s part, but the same problem occurs also at least in
3065 atk. Thanks to Robert Ögren, Daniel Atallah and Kevin Stange.
3067 2005-04-19 Ivan, Wong Yat Cheung <email@ivanwong.info>
3069 * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Match
3070 character height instead of cell height. Fix #301228.
3072 2005-04-18 Federico Mena Quintero <federico@ximian.com>
3074 Merged from gtk-2-6:
3076 * gtk/gtkfilechooserdefault.c (remove_selected_bookmarks): Remove
3077 obsolete assertion that the selected row can't be a volume; this
3078 is handled by the "removable" column now. Fixes #301017.
3080 2005-04-18 Owen Taylor <otaylor@redhat.com>
3082 * gtk/gtkstyle.c gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c
3083 * gdk/gdkcolor.c gdk/gdkwindow.c gdk/gdkpixbuf-render.c
3084 gdk/gdkpango.c tests/testcairo.c: Update to new Cairo API for
3085 setting color and opacity. (#301066, Vincent Noel)
3087 2005-04-15 Federico Mena Quintero <federico@ximian.com>
3089 Merged from gtk-2-6:
3091 * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
3092 Patch from Christian Neumair <chris@gnome-de.org>; only select the
3093 first row if we are in OPEN mode. The only other case we were
3094 letting pass through was SELECT_FOLDER, but selecting the first
3095 row when changing folders confuses people when folders are
3096 actually being selected. Fixes #171885.
3098 2005-04-13 Matthias Clasen <mclasen@redhat.com>
3100 * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose):
3101 Revert the fix for #169870, adjust the documentation instead.
3103 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
3104 Revert the fix for #170727.
3106 2005-04-11 Ivan, Wong Yat Cheung <email@ivanwong.info>
3110 * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
3113 * gtk/updateiconcache.c: Guard inclusion of unistd.h and
3116 2005-04-09 Matthias Clasen <mclasen@redhat.com>
3118 * gdk/x11/gdkinput-xfree.c:
3119 * gdk/x11/gdkinput-none.c:
3120 * gdk/gtk.symbols: Some more fixes necessary to
3121 make building with gcc 4 work.
3123 Add 16x16 versions of the zoom icons and of
3124 GTK_STOCK_INDEX. Some of the images were taken from
3125 the hicolor icon theme, and were originally created
3126 by Jakub Steiner and Tuomas Kuosmanen. (#167515,
3129 * gtk/stock-icons/stock_index_16.png:
3130 * gtk/stock-icons/stock_zoom_1_16.png:
3131 * gtk/stock-icons/stock_zoom_fit_16.png:
3132 * gtk/stock-icons/stock_zoom_in_16.png:
3133 * gtk/stock-icons/stock_zoom_out_16.png: New images.
3135 * gtk/stock-icons/Makefile.am: Add the new images.
3137 * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose):
3138 Don't display too many broken images. (#169870, Roman
3139 Kagan, patch by Ivan Wong)
3141 * gtk/gtkwidget.c (gtk_widget_unparent): Remove debugging
3142 output. (#300013, Tommi Komulainen)
3144 2005-04-08 Matthias Clasen <mclasen@redhat.com>
3146 * gtk/gtkimage.c (gtk_image_expose, gtk_image_calc_size):
3147 If a stock_id is unknown, display the missing image. (#169870,
3150 * gtk/gtkiconcache.c (icon_name_hash): Use the same function
3151 as in updateiconcache.c. (spotted by Morten Welinder)
3153 2005-04-08 Carl Worth <cworth@cworth.org>
3155 * gdk/gdkpango.c: (emboss_context): Simplify matrix manipulation
3156 now that cairo exposes the cairo_matrix_t structure.
3158 * gdk/gdkpixbuf-render.c: (gdk_pixbuf_set_as_cairo_source): Track
3159 cairo API change in signedness of data argument.
3161 2005-04-08 Matthias Clasen <mclasen@redhat.com>
3163 * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make this
3164 work when called from gtk_combo_box_destroy(). (#172999,
3167 2005-04-08 Matthias Clasen <mclasen@redhat.com>
3169 Fix double-click to autosize treeview columns. This was
3170 probably broken since 2.2 ! (#169675)
3172 * gtk/gtktreeview.c (gtk_tree_view_button_press): Leave the
3173 "user-resized" state of the column on a double-click to
3175 (gtk_tree_view_button_press, gtk_tree_view_motion_resize_column):
3176 Enter the "user-resized" state of the column only if a drag
3177 actually changes the column width, not on any click.
3179 2005-04-07 Matthias Clasen <mclasen@redhat.com>
3181 * gtk/gtkmenu.c (gtk_menu_paint): Allow setting background
3182 images on menus. (#169532, Benjamin Otte)
3184 * gtk/updateiconcache.c (write_card16, write_card32): Avoid
3185 unaligned access. (#172947)
3187 * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu):
3188 Consistently use the term "Bookmarks" in the UI. (#166906,
3191 Some fixes from Morten Welinder (#172947):
3193 * gtk/updateiconcache.c (icon_name_hash): Make this compiler-
3194 and platform-independent.
3195 (is_cache_up_to_date): Don't compare mtimes is a stat call failed.
3196 (build_cache): Error out if a stat fails.
3198 2005-04-07 Matthias Clasen <mclasen@redhat.com>
3200 * gtk/gtktreeview.c (gtk_tree_view_set_expander_column): Add
3201 a hint about hiding expanders.
3203 * gtk/updateiconcache.c (is_cache_up_to_date): Return
3204 TRUE if the cache is newer than the directory. (#172852,
3207 * configure.in: Replace an explicit pkg-config by
3208 $PKG_CONFIG. (#168074, Hans-Wolfgang Loidl)
3210 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region):
3211 Ignore regions which fall completely outside the line.
3212 (#165862, Felipe Heidrich)
3214 2005-04-06 Matthias Clasen <mclasen@redhat.com>
3216 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Document
3217 -1 as possible value.
3218 (gtk_tree_view_enable_model_drag_source)
3219 (gtk_tree_view_enable_model_drag_dest): Pass the target list
3220 to the underlying dnd implementation, otherwise we miss the
3221 target info in the drag-data-received signal. (#164085, Jorn
3224 2005-04-06 Matthias Clasen <mclasen@redhat.com>
3226 * gtk/gtktreeview.c (gtk_tree_view_motion_resize_column)
3227 (gtk_tree_view_bin_expose): Avoid a few unnecessary calls
3228 to gdk_window_get_pointer(). (#168015, Billy Biggs)
3230 * po/.cvsignore, po-properties/.cvsignore: Remove
3231 Makefile.in.in. (#171092, Stepan Kasal)
3233 * gtk/gtkrc.c (gtk_rc_parse_style): Don't modify
3234 scanner->value, copy it first. (#165693, Tommi Komulainen)
3236 2005-04-05 Matthias Clasen <mclasen@redhat.com>
3238 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_grab_focus):
3239 * gtk/gtkcombobox.c (gtk_combo_box_grab_focus): Implement
3240 grab_focus for GtkComboBox and GtkComboBoxEntry. (#171912,
3243 * gtk/gtkicontheme.c: Store icon caches along with the
3244 mtimes of the toplevel directories. The previous
3245 mechanism of a hashtable-per-theme caused duplicate icon
3246 caches for the same toplevel directory to be created.
3249 2005-04-05 Matthias Clasen <mclasen@redhat.com>
3251 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_build_level):
3252 Fix a typo in a warning.
3254 * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Protect
3255 the license and credits buttons from being affected by
3256 gtk_widget_show_all(). (#172724)
3258 2005-04-05 Matthias Clasen <mclasen@redhat.com>
3260 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): Keep a
3261 reference to the item. (#167920, Hazael Maldonado Torres)
3263 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Add some
3264 more docs on interactive search.
3266 2005-04-05 Tor Lillqvist <tml@novell.com>
3268 * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Handle 16 colour
3269 display mode. For some reason, in this mode GetDeviceCaps(BITSPIXEL)
3270 returns 1 (but GetDeviceCaps(NUMCOLORS) does return 16). (#143415)
3272 * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Don't force
3273 24bpp GdkVisual on 32bpp displays. (#140706)
3275 Mon Apr 4 19:13:23 2005 Jonathan Blandford <jrb@redhat.com>
3277 Fix for #172319, Tristan Van Berkom:
3279 * gtk/gtktreeview.c (gtk_tree_view_expand_all): change to use
3280 gtk_tree_view_real_expand_row() instead of doing this by hand.
3282 2005-04-04 Johan Dahlin <johan@gnome.org>
3284 * gtk/gtktextbuffer.c: (gtk_text_buffer_class_init),
3285 (gtk_text_buffer_set_property), (gtk_text_buffer_get_property),
3286 (gtk_text_buffer_set_text): Add GtkTextBuffer::text (#172631)
3288 Mon Apr 4 14:33:55 2005 Manish Singh <yosh@gimp.org>
3290 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text):
3291 cast combo->priv->entry to GTK_ENTRY()
3293 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
3294 cast completion->priv->tree_view to GTK_TREE_VIEW()
3296 2005-04-04 Matthias Clasen <mclasen@redhat.com>
3298 * gtk/gtktextbuffer.c: Some trivial doc fixes.
3300 * gtk/gtkwidget.c (gtk_widget_set_redraw_on_allocate): Improve
3301 the wording of the doc comment. (#172422, Vincent Untz)
3303 2005-04-04 Owen Taylor <otaylor@redhat.com>
3305 * gtk/gtkstyle.c (gtk_default_draw_expander): Covert expander
3306 drawing to Cairo. Also always draw the entire triangle instead
3307 of just drawing the center for prelight. (Fixes inconsistent
3308 drawing in GtkTreeView.)
3310 2005-04-04 Johan Dahlin <johan@gnome.org>
3312 * gtk/gtk.symbols: Remove symbols accidentally added.
3313 * gtk/gtkentryprivate.h: Add boolean property popup_set_width
3314 * gtk/gtktoggletoolbutton.c: (gtk_toggle_tool_button_class_init):
3315 Use object_class instead of gobject_class
3317 Mon Apr 4 12:14:35 2005 Søren Sandmann <sandmann@redhat.com>
3319 * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Translate x, y into
3320 widget coordinates instead of root coordinates. Patch from Jorn
3323 2005-04-04 Matthias Clasen <mclasen@redhat.com>
3325 * gtk/gtktoolbar.c: Add a tooltips property.
3327 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_class_init):
3328 * gtk/gtkruler.c (gtk_ruler_class_init): Add docs.
3330 * gtk/gtktoggletoolbutton.c: Add an active property.
3332 2005-04-04 Matthias Clasen <mclasen@redhat.com>
3334 Allow completion popups to be wider than the entry. (#131916,
3337 * gtk/gtkentrycompletion.[hc]: Add a boolean popup-set-width property.
3339 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
3340 Don't force the popup to have the same width as the entry if
3341 popup-set-width is FALSE.
3343 * gtk/gtk.symbols: Add new functions.
3345 2005-04-04 Matthias Clasen <mclasen@redhat.com>
3347 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
3348 Use gtk_accel_map_change_entry(), so that reusing the same
3349 action name works. (#170727, Paolo Borelli)
3351 2005-04-04 Tor Lillqvist <tml@novell.com>
3353 * gdk/win32/gdkmain.c (_gdk_win32_cf_to_string): New debugging
3354 function, to log a clipboard format name symbolically.
3355 (_gdk_win32_data_to_string): Also new, to log random data bytes.
3357 Implement delayed rendering on Win32, specifically for transfering
3358 images through the clipboard from GTK+ apps to other
3359 apps (#168173, implementation by Ivan Wong):
3361 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
3362 Handle WM_RENDERFORMAT.
3364 * gdk/win32/gdkprivate-win32.h
3365 * gdk/win32/gdkglobals-win32.c: Add _format_atom_table,
3366 _delayed_rendering_data and _image_bmp.
3368 * gdk/win32/gdkmain-win32.c: Initialize _image_bmp.
3370 * gdk/win32/gdkproperty-win32.c (gdk_property_change):
3371 Accept formats other than GDK_TARGET_STRING or _utf8_string, and
3372 assume they are handled through delayed rendering.
3374 * gdk/win32/gdkselection-win32.c (gdk_selection_convert):
3375 Return all available formats (including those registered by GTK+
3376 apps) on request_targets.
3377 (gdk_selection_property_get): We should append a zero byte like
3379 (gdk_win32_selection_add_targets): New function, for
3380 gtkselection's use. Win32 requires that the clipboard owner
3381 registers all valid formats even if the owner wants delayed
3383 (_gdk_win32_selection_convert_to_dib): New function. Convert
3384 images to DIB using gdk-pixbuf.
3386 * gdk/win32/gdkwin32.h: Declare gdk_win32_selection_add_targets().
3388 * gtk/gtkselection.c (gtk_selection_add_target,
3389 gtk_selection_add_targets): Call gdk_win32_selection_add_targets()
3390 to register target formats.
3392 * gdk/gdk.symbols: Add gdk_win32_selection_add_targets().
3394 2005-04-03 Hans Breuer <hans@breuer.org>
3396 [merged from gtk-2-6 branch]
3397 * gdk/win32/gdkdrawable-win32.c : let dash_offset shift the start of
3398 the line pattern not the start of the line. Fixes bug #171641.
3400 * gtk/makefile.msc.in : follow .symbols changes
3402 * gdk/win32/gdkwindow-win32.c : declare and resolve GetAncestor()
3403 dynamically. (It is not available in _WIN_VER <= 0x0400)
3405 * gdk/win32/makefile.msc : removed gdkpango-win32.obj
3407 * gtk/gtkhsv.c gtk/gtkstyle.c : use G_PI instead of M_PI
3409 [also applied to gtk-2-6 branch]
3410 * gdk/makefile.msc gdk-pixbuf/makefile.msc : handle gdk*alias.def
3412 * gdk/makefile.msc.in : add gtkmnemonichash.obj
3414 * test/testgtk.c(set_parent_signal) : use g_message instead of
3415 g_print to keep the 'testgtk --bench=all' output clean
3417 2005-04-03 Matthias Clasen <mclasen@redhat.com>
3419 * gtk/gtkruler.c: Add a "metric" property.
3421 * gtk/gtkradiomenuitem.c: Add a "group" property like
3422 the one found in radio buttons.
3424 * gtk/gtkradiobutton.c (gtk_radio_button_class_init): Fix
3426 (gtk_radio_button_set_group): Add change notification.
3428 2005-04-01 Matthias Clasen <mclasen@redhat.com>
3430 * gtk/gtkselection.c: Move documentation inline, document
3431 if add_target functions append or prepend. (#172350,
3434 2005-04-01 Matthias Clasen <mclasen@redhat.com>
3436 Make gtk_combo_box_get_active_text do the right thing for
3437 GtkComboBoxEntry (#171373, Robert Staudinger)
3439 * gtk/gtkcombobox.h: Add a get_active_text vfunc.
3441 * gtk/gtkcombobox.c (gtk_combo_box_real_get_active_text): And
3444 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text):
3445 Implement get_active_text by always returning the content of
3448 2005-03-31 Sven Neumann <sven@gimp.org>
3450 Merged from gtk-2-6:
3453 * gtk/gtkiconview.c: fixed gtk-doc comments.
3455 2005-03-31 Michael Natterer <mitch@gimp.org>
3457 Allow to pop up menus without grabbing the keyboard. Useful for
3458 stuff like virtual keyboards. Fixes bug #159890
3461 * gtk/gtkmenushell.[ch]: added boolean property "take-focus"
3462 and public API gtk_menu_shell_set/get_take_focus().
3464 * gtk/gtkmenu.c (gtk_menu_popup)
3465 (popup_grab_on_window): don't grab the keyboard if take_focus
3468 * gtk/gtkmenuitem.c (_gtk_menu_item_popup_submen): propagate the
3469 parent menu_shell's take_focus property to the submenu which is
3470 about to be popped up.
3472 2005-03-30 Federico Mena Quintero <federico@ximian.com>
3474 Merged from gtk-2-6:
3478 * gtk/gtktreeview.c (gtk_tree_view_row_changed): Only stop editing
3479 if the row which changed is the same as the row being edited.
3481 2005-03-30 Matthias Clasen <mclasen@redhat.com>
3483 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
3484 Make enable_search control only typeahead, not C-f. (#170435,
3486 (gtk_tree_view_start_interactive_search): Pass keybinding == TRUE.
3488 * gdk/gdkpixbuf.h: Include cairo.h
3490 * gtk/gtkclipboard.c (gtk_clipboard_set_can_store):
3491 Don't accept n_targets == -1.
3492 (clipboard_unset): unref the old_data, not the
3493 user_data which we have just cleared. (#172038, Sven
3496 * gtk/gtkcombobox.c (gtk_combo_box_popup): Don't
3497 segfault if somebody tries to popup an unrealized
3498 combo box. (#172031, Felipe Heidrich)
3500 2005-03-30 Tor Lillqvist <tml@novell.com>
3502 * gdk/win32/gdkevents-win32.c (build_pointer_event_state): The
3503 state field should represent the state before the event, like on
3505 (gdk_event_translate): Fix event filter handling. If an event
3506 filter (global, client message filter, of window-specific) returns
3507 GDK_FILTER_CONTINUE, continue as if nothing happened. If it
3508 returns GDK_FILTER_REMOVE or GDK_FILTER_TRANSLATE, return TRUE
3509 from gdk_event_translate() which means that DefWindowProc() will
3511 (gdk_event_translate): Fix client message handling. Append a
3512 GDK_CLIENT_EVENT unless there is a filter that matches and returns
3513 something other than GDK_FILTER_CONTINUE. (#135552)
3515 2005-03-29 Matthias Clasen <mclasen@redhat.com>
3517 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_visible_func):
3518 Document the need to refilter if parameters of the visibility function
3519 change. (#169516, Olivier Sessink)
3521 Mon Mar 28 15:13:42 2005 Søren Sandmann <sandmann@redhat.com>
3523 * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Don't
3524 invalidate areas that are covered by mapped input-output child
3525 windows. Bug 141380.
3527 2005-03-28 Jeroen Zwartepoorte <jeroen.zwartepoorte@gmail.com>
3529 * gtk/gtkfilechooserdefault.c: (update_preview_widget_visibility): Make
3530 the preview label ellipsize so the dialog layout stays constant.
3533 2005-03-28 Matthias Clasen <mclasen@redhat.com>
3535 * gtk/gtktreeview.c (gtk_tree_view_key_press): Don't pop up
3536 the context menu of the search entry if it is not visible.
3537 (#169534, Billy Biggs)
3539 2005-03-27 Tor Lillqvist <tml@novell.com>
3541 * configure.in: Apparently AC_LIBTOOL_WIN32_DLL isn't deprecated
3542 after all, and in fact necessary with HEAD libtool.
3544 2005-03-26 Matthias Clasen <mclasen@redhat.com>
3547 * gdk/gdkdisplaymanager.c:
3548 Use canonical names for g_object_notify() as well.
3550 2005-03-24 Tor Lillqvist <tml@novell.com>
3552 * configure.in (GTK_EXTRA_CFLAGS): Include the -mms-bitfields flag
3553 in GTK_EXTRA_CFLAGS on Win32, so that it gets included in the
3554 gtk+-2.0.pc file and automatically used by dependents. MSVC users
3555 who use pkg-config will have to manually edit it out from
3556 gtk+-2.0.pc, sorry. Maybe pkg-config should be enhanced to support
3557 some kind of conditionals in .pc files?
3559 2005-03-23 Matthias Clasen <mclasen@redhat.com>
3561 * gtk/gtkfilechooserbutton.c (update_combo_box): Remove
3562 a call whose result was unused and leaked. (#170776,
3565 Some cleanups to the GtkDialog code: (#170746,
3567 * gtk/gtkdialog.c (action_widget_activated): Simplify,
3568 use _gtk_dialog_get_response_for_widget.
3569 (gtk_dialog_add_action_widget): Use the correct signal
3571 (gtk_dialog_set_response_sensitive):
3572 (gtk_dialog_set_default_response): Use get_response_data.
3573 (gtk_dialog_run): Don't disconnect the signals if the
3574 dialog was destroyed while running.
3576 Tue Mar 22 14:16:31 2005 Manish Singh <yosh@gimp.org>
3578 * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label):
3579 Use g_return_if_fail, not g_return_val_if_fail.
3581 2005-03-22 Matthias Clasen <mclasen@redhat.com>
3583 Implement bookmark renaming (#136216, Sean Middleditch)
3585 * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Add
3586 get_bookmark_label and set_bookmark_label vfuncs.
3588 * gtk/gtkfilesystem.h:
3589 * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label):
3590 (gtk_file_system_get_bookmark_label): Wrappers for the
3593 * gtk/gtk.symbols: Add new exported symbols.
3595 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_set_bookmark_label):
3596 (gtk_file_system_unix_get_bookmark_label): Implementations
3597 for the Unix backend.
3599 * gtk/gtkfilechooserdefault.c: Add a context menu to
3600 the bookmarks pane, and allow to rename bookmarks.
3602 2005-03-22 Matthias Clasen <mclasen@redhat.com>
3604 * gtk/gtkpathbar.c (gtk_path_bar_unmap):
3605 * gtk/gtkspinbutton.c (gtk_spin_button_unmap):
3606 * gtk/gtknotebook.c (gtk_notebook_unmap):
3607 * gtk/gtkrange.c (gtk_range_unmap): Stop scrolling when
3608 the widget is unmapped. (#168791, Ryan Lortie)
3610 2005-03-21 Matthias Clasen <mclasen@redhat.com>
3612 * gtk/gtkprivate.h: Define macros GTK_PARAM_READABLE,
3613 GTK_PARAM_WRITABLE, GTK_PARAM_READWRITE which are like
3614 their G_ counterparts, but also mark the name, nick
3615 and blurb as static.
3617 * gtk/*.c: Mark param spec strings as static, using
3620 * gtk/gtkspinbutton.h: Fix a typo.
3622 2005-03-21 Matthias Clasen <mclasen@redhat.com>
3624 * gtk/gtkcellrendererprogress.c:
3625 * gtk/gtkcellrendererpixbuf.c:
3626 * gtk/gtkcellrenderercombo.c:
3627 * gtk/gtkcellrenderer.c:
3628 * gtk/gtkcalendar.c:
3632 * gtk/gtkaspectframe.c:
3634 * gtk/gtkalignment.c:
3635 * gtk/gtkactiongroup.c:
3637 * gtk/gtkaccellabel.c:
3638 * gtk/gtkaboutdialog.c: Mark param spec strings as static.
3640 * gdk/gdkpango.c (gdk_pango_renderer_class_init):
3641 * gdk/gdkdisplaymanager.c (gdk_display_manager_class_init): Mark
3642 param spec strings as static.
3644 2005-03-21 Tor Lillqvist <tml@novell.com>
3646 * modules/engines/ms-windows/*.c: Silence gcc warnings (unused
3647 variables, unhandled enum value in switch). Use g_object_unref()
3648 instead of deprecated gdk_gc_unref() and gdk_drawable_unref().
3650 * modules/engines/ms-windows/xp_theme.c (xp_theme_map_gtk_state):
3651 Add missing "case" keyword.
3653 * modules/engines/ms-windows/Makefile.am: Link with -lgdi32
3656 2005-03-20 Tor Lillqvist <tml@novell.com>
3658 * gdk/win32/gdkdisplay-win32.c (gdk_display_get_name): Return the
3659 Terminal Services session number, window station name (always
3660 "WinSta0" in interactive processes), and desktop name (typically
3661 "Default"), concatenated with backslash separators.
3662 (gdk_display_open): Accept only NULL or the string
3663 gdk_display_get_name() returns as display name.
3665 2005-03-20 Matthias Clasen <mclasen@redhat.com>
3667 Make PLT-reduction work with gcc4, and don't include
3668 everything in gdkalias.h:
3670 * gtk/grk.symbols: Group symbols by header and source file.
3671 * gtk/makegtkalias.pl: Protect definitions by the same
3672 preprocessor symbols used to guard the headers. Move
3673 the alias declarations to a separate file which is
3674 produced when calling makegtkalias.pl -def
3675 * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate
3677 * gtk/*.c: Include gtkalias.h after the other headers,
3678 include gtkaliasdef.c at the bottom.
3679 * gtk/*.h: Small cleanups.
3681 Fri Mar 18 23:59:49 2005 Soeren Sandmann <sandmann@redhat.com>
3683 * gtk/gtkmenutoolbutton.c (arrow_button_button_press_event_cb):
3684 Make right-clicks not pop up the menu.
3686 2005-03-18 Owen Taylor <otaylor@redhat.com>
3688 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_drawable_finish):
3689 Call cairo_surface_finish()
3691 * gdk/gdkinternals.c gdk/x11/gdkdrawable-x11.c: Remoev
3692 _gdk_windowing_set_surface_device_offset().
3694 2005-03-18 Tor Lillqvist <tml@novell.com>
3696 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
3697 WM_MOUSEMOVE, don't check if this process owns the active
3698 window. This makes cross-application widget embedding work better.
3699 On WM_MOVE, don't bother checking for window visibility.
3701 * gdk/win32/gdkim-win32.c: Remove bogus empty doc comment. Remove
3702 unused variables. Add some casts to silence gcc.
3704 2005-02-24 Owen Taylor <otaylor@redhat.com>
3706 * gdk/gdkwindow.c: Use cairo_set_device_offset().
3708 * gdk/win32/gdkdrawable-win32.[ch] gdk/win32/gdkwindow-win32.c
3709 gdk/win32/gdkpixmap-win32.c:
3710 Add_gdk_win32_drawable_acquire/release_dc() to get a DC for the
3711 drawable. Add _gdk_drawable_win32_finish() to clean up resources
3712 when a drawable is destroyed.
3714 * gdk/win32/gdkgc-win32.c gdk/win32/gdkdrawable-win32.c
3715 (blit_from_pixmap) gdk/win32/gdkprivate-win32.h : Use
3716 acquire/release_dc when getting a DC to use with a GC or for
3717 blitting from a pixmap.
3719 * gdk/win32/gdkdrawable-win32.[ch]: Implement ref_cairo_surface()
3721 * gdk/win32/gdkpango-win32.c gdk/win32/gdkdrawable-win32.c Makefile.am:
3722 Remove gdk_screen_get_pango_context(), draw_glyph[_transformed]
3725 * gdk/win32/gdkdrawable-win32.c: Remove
3726 gdk_draw_rectangle_alpha_libgtk_only()
3728 2005-03-17 Owen Taylor <otaylor@redhat.com>
3730 * gdk/gdkpango.c: Fix get_stipple_surface to actually work, set
3731 EXTEND_REPEAT on the stipple pattern.
3733 2005-03-17 Matthias Clasen <mclasen@redhat.com>
3735 * gtk/gtklabel.c (gtk_label_set_markup): Fix formatting
3736 in example in the docs. (#170611, Jianfei Wang)
3738 * gtk/gtkiconview.c (gtk_icon_view_size_allocate): Clamp
3739 adjustment values on resize. (#170567, Tomislav Jonjic)
3741 * gtk/gtkicontheme.c (theme_lookup_icon): Don't crash
3742 if there is no cache. (#170652, Diego Gonzalez)
3744 * gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix):
3745 Make inline completion insert the prefix at the
3746 right spot. (#170146, Doug Quale)
3748 2005-03-17 Tor Lillqvist <tml@novell.com>
3750 * gdk/gdkkeynames.c: gdk_key is a typedef, not a struct tag.
3752 2005-03-16 Matthias Clasen <mclasen@redhat.com>
3754 * gtk/gtkprogressbar.c (gtk_progress_bar_get_ellipsize):
3755 Typo fix in the docs.
3757 * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_set_arrow_tooltip):
3758 Typo fix in the docs.
3760 * gtk/gtkiconview.c (gtk_icon_view_set_columns)
3761 (gtk_icon_view_get_columns, gtk_icon_view_set_item_width)
3762 (gtk_icon_view_get_item_width, gtk_icon_view_set_spacing)
3763 (gtk_icon_view_get_spacing, gtk_icon_view_set_row_spacing)
3764 (gtk_icon_view_set_column_spacing)
3765 (gtk_icon_view_get_row_spacing, gtk_icon_view_get_margin)
3766 (gtk_icon_view_set_margin): Add docs.
3768 * gtk/gtkcellview.c (gtk_cell_view_get_displayed_row):
3771 2005-03-15 Owen Taylor <otaylor@redhat.com>
3773 * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkpixmap.c gdk/gdkwindow.c
3774 gdk/x11/gdkdrawable-x11.c gdk/x11/gdkpixmap-x11.c gdk/x11/gdkwindow-x11.c
3775 gdk/gdkinternals.h: Switch set_cairo_target() virtual function to
3778 * gdk/gdkdrawable.h gdk/gdkdraw.h: Switch set_cairo_target() virtual
3779 function to create_cairo_context()
3781 * gdk/gdkwindow.c: Clear double buffer pixmaps with Cairo.
3783 * gdk/x11/gdkwindow-x11.c: Keep all components in GdkWindowObject.bg_color,
3786 * tests/testcairo.c: Update for create_cairo_context()
3788 * gdk/gdkdraw.c (gdk_draw_trapezoids, gdk_draw_glyphs[_transformed]):
3789 Reimplement in terms of Cairo, bypass the vtable entries.
3791 * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkdisplay-x11.[ch]
3792 gdk/x11/gdkgc-x11.c gdk/x11/gdkpango-x11.c
3793 gdk/x11/gdkprivate-x11.h gdk/x11/Makefile.am: Remove
3794 implementation of draw_trapezoids / draw_glyphs[_transformed].
3796 * gdk/gdkpango.c: Switch GdkPangoRenderer to use Cairo
3798 * gdk/gdkpango.c gdk/x11/gdkpango-x11.c: Move
3799 gdk_pango_context_get_for_screen() into the backend independent code.
3801 * gdk/x11/gdkdrawable-x11.[ch]: Remove Xft use, use RENDER directly
3804 * gdk/gdkdrawable.h gdk/x11/gdkdrawable-x11.c: Remove
3805 gdk_draw_rectangle_alpha_libgtk_only.
3807 * gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c: Add
3808 gdk_pixbuf_set_as_cairo_source()
3810 * gdk/gdk.symbols: Update
3812 * gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkruler.[ch]
3813 gtk/gtk[hv]ruler.c: Convert to Cairo rendering.
3815 * gtk/gtkstyle.c (gtk_default_draw_check, gtk_default_draw_focus,
3816 gtk_default_draw_option): Switch to Cairo. Simplify the checkbutton,
3817 radio button style for now to get something more scalable.
3819 * gtk/gtksettings.c: #if 0 out the code to use PangoXft for hinting/
3820 antialiasing/dpi settings.
3822 2005-03-16 Matthias Clasen <mclasen@redhat.com>
3824 * demos/gtk-demo/editable_cells.c: Also demonstrate
3825 GtkCellRenderer::editing-started and separators.
3827 Tue Mar 15 20:34:33 2005 Manish Singh <yosh@gimp.org>
3829 * gdk/x11/gdkinput-xfree.c: #include gdkaliasdef.c here too.
3831 2005-03-15 Matthias Clasen <mclasen@redhat.com>
3833 Make PLT-reduction work with gcc4, and don't include
3834 everything in gdkalias.h:
3836 * gdk/gdk.symbols: Group symbols by header and source file.
3837 * gdk/makegdkalias.pl: Protect definitions by the same
3838 preprocessor symbols used to guard the headers. Move
3839 the alias declarations to a separate file which is
3840 produced when calling makegdkalias.pl -def
3841 * gdk/Makefile.am (gdkaliasdef.c): Add a rule to generate this
3843 * gdk/*.c, gdk/x11/*.c: Include gdkalias.h after the other
3844 headers, include gdkaliasdef.c at the bottom.
3846 2005-03-16 Tor Lillqvist <tml@novell.com>
3848 * gdk/win32/gdkdisplay-win32.c (_win32_on_clipboard_change): Print
3849 debugging output only if asked for, not always.
3851 * gdk/win32/*.c: Use the %+d%+d format for coordinate pairs in
3852 debugging printout instead of +%d+%d. Misc other additions and
3853 cosmetic improvements to debugging printouts. Use API_CALL() and
3854 GDI_CALL() macros in more places.
3856 * gdk/win32/gdkwindow-win32.c (gdk_window_move, gdk_window_resize,
3857 gdk_window_move_resize): To detect child windows, check whether
3858 the real parent is not the desktop window, instead of relying on
3859 the GDK window type being GDK_WINDOW_CHILD. Foreign GtkPlug
3860 windows have a GDK window type GDK_WINDOW_FOREIGN, but are still
3861 de facto child windows.
3863 * gdk/win32/gdkprivate-win32.h
3864 * gdk/win32/*.c: Drop global variable _gdk_root_window, just call
3865 GetDesktopWindow(). Rename the GdkWindow* _gdk_parent_root to
3868 * gdk/win32/gdkwindow-win32.h (GdkWindowImplWin32): Add
3869 toplevel_window_type field.
3871 * gdk/win32/gdkwindow-win32.c: As there is only one root window in
3872 GDK on Win32, we can compare directly to _gdk_root instead of
3873 checking the window type.
3874 (gdk_window_reparent): When reparenting a child of the desktop
3875 clear out the window decorations. Correspondingly, when
3876 reparenting to the desktop, add decorations. As in the X11
3877 backend, save the window type of a toplevel window when
3878 reparenting, in case it is reparented back to toplevel.
3880 2005-03-15 Matthias Clasen <mclasen@redhat.com>
3882 * gtk/gtkradioaction.c (gtk_radio_action_get_group): Add an
3883 example for manually setting up a group of actions.
3885 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
3886 Document that inline completion requires text-column to be set.
3887 (gtk_entry_completion_compute_prefix): Return NULL if text-column
3890 * gtk/gtkentry.c (check_completion_callback): Call
3891 gtk_entry_completion_complete() before inserting the prefix,
3892 otherwise the prefix may depend on (random) state of the
3895 2005-03-15 Anders Carlsson <andersca@imendio.com>
3897 * docs/iconcache.txt:
3900 * gtk/gtkiconcache.c: (find_image_offset),
3901 (_gtk_icon_cache_get_icon_flags), (_gtk_icon_cache_add_icons),
3902 (_gtk_icon_cache_get_icon), (_gtk_icon_cache_get_icon_data):
3903 * gtk/gtkiconcache.h:
3904 Update to be able to fetch pixbuf data and icon metadata.
3906 * gtk/gtkicontheme.c: (theme_lookup_icon), (gtk_icon_info_free),
3907 (icon_info_ensure_scale_and_pixbuf):
3908 Use new cache functions.
3910 * gtk/updateiconcache.c: (foreach_remove_func), (load_icon_data),
3911 (maybe_cache_image_data), (scan_directory), (write_pixdata),
3912 (get_image_meta_data_size), (get_image_pixel_data_size),
3913 (get_image_data_size), (get_single_node_size), (get_bucket_size),
3914 (write_bucket), (main):
3915 Update to write pixbuf data as well as information from .icon
3918 2005-03-15 Tor Lillqvist <tml@novell.com>
3920 * gdk/win32/gdkmain-win32.c (_gdk_win32_key_to_string): New
3921 debugging function. As GetKeyNameText() returns a localized key
3922 name we need to convert it to UTF-8.
3924 * gdk/win32/gdkprivate-win32.h: Declare it.
3926 * gdk/win32/gdkevents-win32.c: Use it.
3928 * gdk/win32/gdkwindow-win32.c (gdk_window_new_internal): Fix
3929 handling of children of foreign windows. They should be child
3930 windows from Windows's perspective, even if they are toplevel GDK
3933 2005-03-13 Ivan, Wong Yat Cheung <email@ivanwong.info>
3935 * gdk/win32/gdkgeometry-win32.c (gdk_window_scroll): A further fix
3936 for big window support. Now also the test in testgtk works.
3938 2005-03-11 Matthias Clasen <mclasen@redhat.com>
3940 * gtk/gtkaboutdialog.c (add_credits_page): Don't crash on
3941 style changes. (#169334, Yury Puzis)
3943 * gtk/gtkicontheme.c (gtk_icon_theme_set_custom_theme): Fix
3944 the doc comments. (#169967, Masao Mutoh)
3946 2005-03-12 Ivan, Wong Yat Cheung <email@ivanwong.info>
3948 Big window fix for Win32. Big windows are still emulated within
3949 16-bit coordinate limits, though. Big windows now work on NT-based
3952 * gdk/win32/gdkgc-win32.c (_gdk_win32_gdkregion_to_hrgn): Use
3955 * gdk/win32/gdkgeometry-win32.c: Largely rewrite.
3957 * gdk/win32/gdkwindow-win32.c: Minor related changes.
3959 2005-03-10 Matthias Clasen <mclasen@redhat.com>
3961 * gtk/gtkliststore.c (gtk_list_store_insert_with_valuesv):
3962 Fix a doc typo. (#169873, Johan Dahlin)
3964 * gtk/gtkdialog.c (gtk_dialog_map): Don't
3965 try to focus the default_widget if there is
3966 none. (#169881, Thomas Leonard)
3968 Wed Mar 9 19:20:44 2005 Manish Singh <yosh@gimp.org>
3970 * configure.in: Remove inadvertent gail references, require
3973 2005-03-09 Matthias Clasen <mclasen@redhat.com>
3975 * configure.in: Require GLib 2.7.0
3977 2005-03-09 Matthias Clasen <mclasen@redhat.com>
3979 * gtk/gtkwidget.h (struct _GtkWidget): Typo fixes in comments.
3980 (#169728, Morten Welinder, Owen Taylor)
3982 * gtk/gtkwidget.c (gtk_widget_add_mnemonic_label): Fix a typo
3983 in the docs. (#169729, Morten Welinder)
3985 * gtk/gtkimage.c (gtk_image_class_init): Fix a typo.
3987 * gtk/gtkiconview.c (gtk_icon_view_set_model): Queue a resize
3988 when the model is unset. (#169528, Tomislav Jonjic)
3990 2005-03-09 Matthias Clasen <mclasen@redhat.com>
3992 * gtk/gtkviewport.c (gtk_viewport_class_init):
3993 * gtk/gtkuimanager.c (gtk_ui_manager_class_init):
3994 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_class_init):
3995 * gtk/gtktipsquery.c (gtk_tips_query_class_init):
3996 * gtk/gtktext.c (gtk_text_class_init):
3997 * gtk/gtkstatusbar.c (gtk_statusbar_class_init):
3998 * gtk/gtkspinbutton.c (gtk_spin_button_class_init):
3999 * gtk/gtktoggleaction.c (gtk_toggle_action_class_init):
4000 * gtk/gtkoptionmenu.c (gtk_option_menu_class_init):
4001 * gtk/gtkoldeditable.c (gtk_old_editable_class_init):
4002 * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init):
4003 * gtk/gtktoolbutton.c (gtk_tool_button_class_init):
4004 * gtk/gtktoolitem.c (gtk_tool_item_class_init):
4005 * gtk/gtkimage.c (gtk_image_class_init):
4006 * gtk/gtkruler.c (gtk_ruler_class_init):
4007 * gtk/gtkiconview.c (gtk_icon_view_class_init):
4008 * gtk/gtkprogressbar.c (gtk_progress_bar_class_init):
4009 * gtk/gtkprogress.c (gtk_progress_class_init):
4010 * gtk/gtkmenu.c (gtk_menu_class_init):
4011 * gtk/gtkscale.c (gtk_scale_class_init):
4012 * gtk/gtkpaned.c (gtk_paned_class_init):
4013 * gtk/gtkhandlebox.c (gtk_handle_box_class_init):
4014 * gtk/gtkfontbutton.c (gtk_font_button_class_init):
4015 * gtk/gtkfontsel.c (gtk_font_selection_class_init):
4016 * gtk/gtkfilesel.c (gtk_file_selection_class_init):
4017 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
4018 * gtk/gtkcurve.c (gtk_curve_class_init):
4019 * gtk/gtkcombo.c (gtk_combo_class_init):
4020 * gtk/gtkcombobox.c (gtk_combo_box_class_init):
4021 * gtk/gtkcolorbutton.c (gtk_color_button_class_init):
4022 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init):
4023 * gtk/gtkmenuitem.c (gtk_menu_item_class_init):
4024 * gtk/gtkcheckbutton.c (gtk_check_button_class_init):
4025 * gtk/gtktogglebutton.c (gtk_toggle_button_class_init):
4026 * gtk/gtkcellview.c (gtk_cell_view_class_init):
4027 * gtk/gtktoolbar.c (gtk_toolbar_class_init):
4028 * gtk/gtkmenubar.c (gtk_menu_bar_class_init):
4029 * gtk/gtkclist.c (gtk_clist_class_init):
4030 * gtk/gtkctree.c (gtk_ctree_class_init):
4031 * gtk/gtkcolorsel.c (gtk_color_selection_class_init):
4032 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init):
4033 * gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init):
4034 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_class_init):
4035 * gtk/gtkcalendar.c (gtk_calendar_class_init):
4036 * gtk/gtkbbox.c (gtk_button_box_class_init):
4037 * gtk/gtktable.c (gtk_table_class_init):
4038 * gtk/gtkaspectframe.c (gtk_aspect_frame_class_init):
4039 * gtk/gtkframe.c (gtk_frame_class_init):
4040 * gtk/gtkaction.c (gtk_action_class_init):
4041 * gtk/gtkaccellabel.c (gtk_accel_label_class_init):
4042 * gtk/gtkaboutdialog.c (gtk_about_dialog_class_init):
4043 * gtk/gtkdialog.c (gtk_dialog_class_init): More of the same.
4045 2005-03-08 Matthias Clasen <mclasen@redhat.com>
4047 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init):
4048 * gtk/gtkrange.c (gtk_range_class_init):
4049 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init):
4050 * gtk/gtktexttag.c (gtk_text_tag_class_init):
4051 * gtk/gtktextview.c (gtk_text_view_class_init):
4052 * gtk/gtkscrollbar.c (gtk_scrollbar_class_init):
4053 * gtk/gtknotebook.c (gtk_notebook_class_init):
4054 * gtk/gtkentry.c (gtk_entry_class_init):
4055 * gtk/gtkexpander.c (gtk_expander_class_init):
4056 * gtk/gtkarrow.c (gtk_arrow_class_init):
4057 * gtk/gtkalignment.c (gtk_alignment_class_init):
4058 * gtk/gtkbutton.c (gtk_button_class_init):
4059 * gtk/gtklabel.c (gtk_label_class_init):
4060 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init):
4061 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
4062 * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init):
4063 * gtk/gtktreeview.c (gtk_tree_view_class_init):
4064 * gtk/gtkbox.c (gtk_box_class_init):
4065 * gtk/gtkwindow.c (gtk_window_class_init, gtk_window_class_init):
4066 * gtk/gtkcontainer.c (gtk_container_class_init):
4067 * gtk/gtkwidget.c (gtk_widget_class_init):
4068 * gtk/gtkobject.c (gtk_object_class_init): Use canonical names
4069 when registering param specs.
4071 * demos/gtk-demo/editable_cells.c: Use GtkCellRendererCombo
4072 (#169607, Mark McLoughlin)
4074 * gtk/gtk.symbols: Add the new attributes here, too.
4077 * gtk/gtktreeview.h:
4078 * gtk/gtktreeviewcolumn.h:
4079 * gtk/gtktextbuffer.h:
4081 * gtk/gtkfilechooserdialog.h:
4083 * gtk/gtkcontainer.h:
4084 * gtk/gtkcelllayout.h:
4085 * gtk/gtkaboutdialog.h: Use G_GNUC_NULL_TERMINATED where
4086 appropriate. (#165682, Marc Meissner)
4088 2005-03-07 Matthias Clasen <mclasen@redhat.com>
4090 Convert the gdk keyval-keyname tables to a big string
4091 + offsets. (#168901)
4093 * gdk/gen-keyname-table.pl: Perl script inspired by
4094 pango/tools/gen-color-table.pl to create the
4095 gdk_keys_by_keyval and gdk_keys_by_name tables as lists
4096 of offsets pointing into a big const string.
4098 * gdk/keynames.txt: List of keyval-keyname pairs.
4099 * gdk/keyname-table.h: Generated tables.
4101 * gdk/gdkkeynames.c: Include keyname-table.h and don't
4102 generate the inverse table at runtime.
4104 2005-03-07 Matthias Clasen <mclasen@redhat.com>
4106 * gtk/gtkstyle.c: Document which parameters may be NULL.
4107 (#166855, Frank Naumann)
4109 2005-03-07 Matthias Clasen <mclasen@redhat.com>
4111 * AUTHORS: Add original authors of incorporated software.
4113 Thu Mar 3 16:59:44 2005 Manish Singh <yosh@gimp.org>
4115 * configure.in: URL escape the '+' in gtk+ in the bugzilla URL.
4117 2005-03-03 Matthias Clasen <mclasen@redhat.com>
4119 * gtk/gtksettings.c (gtk_settings_get_property):
4120 * gtk/gtkrc.c (gtk_rc_parse_assignment): Don't leak
4121 the values here. (#169047, Philip Langdale)
4123 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
4124 Don't warn if a stock icon cannot be found. (#168830,
4127 2005-03-03 Matthias Clasen <mclasen@redhat.com>
4129 * gtk/gtkwidget.c (gtk_widget_reparent_subwindows):
4130 Avoid warnings if gtk_widget_reparent() is called at
4131 unusual times. (#168966, Christian Persch)
4133 Tue Mar 1 14:04:08 2005 Manish Singh <yosh@gimp.org>
4135 * gdk/x11/gdkproperty-x11.c (virtual_atom_check_init): Cast to avoid
4136 const warnings on data structure seeding.
4138 Tue Mar 1 13:53:56 2005 Manish Singh <yosh@gimp.org>
4140 * gtk/xdgmime/xdgmime.[ch]: revert previous change, maintain ABI.
4142 2005-03-01 Matthias Clasen <mclasen@redhat.com>
4144 * gtk/gtkmenutoolbutton.c (button_state_changed_cb):
4145 Fix prelighting. (#157392, Vincent Noel, patch by
4148 * gtk/gtkicontheme.c (theme_lookup_icon): Make
4149 icon data caching work again. (#168851, Alexander Larsson)
4151 * gdk-pixbuf/gdk-pixbuf.c:
4152 * gdk-pixbuf/gdk-pixbuf-features.h.in:
4153 Revert the previous change, since it breaks
4156 2005-03-01 Matthias Clasen <mclasen@redhat.com>
4159 * gdk/gdkpixbuf-drawable.c
4161 * gdk/x11/gdkdnd-x11.c
4162 * gdk/x11/gdkevents-x11.c
4163 * gdk/x11/gdkproperty-x11.c
4164 * gdk/x11/gdkvisual-x11.c
4165 * gdk-pixbuf/gdk-pixbuf.c
4166 * gdk-pixbuf/gdk-pixbuf-features.h.in
4169 * gtk/gtkcolorbutton.c
4171 * gtk/gtkcontainer.c
4172 * gtk/gtkfilechooserdefault.c
4176 * gtk/gtkinputdialog.c
4177 * gtk/gtkitemfactory.c
4181 * gtk/gtktreedatalist.c
4182 * gtk/gtkuimanager.c
4183 * gtk/tree_minus.xpm
4185 * gtk/xdgmime/xdgmime.c
4186 * gtk/xdgmime/xdgmime.h:
4187 Move constant data to .rodata.
4189 2005-02-27 Matthias Clasen <mclasen@redhat.com>
4191 * gtk/gtkaction.c (connect_proxy): Improve the handling
4192 of buttons as action proxys. (#165534, Milosz Derezynski)
4194 * gtk/gtklabel.c (gtk_label_size_request): Fix a typo.
4195 (#168646, Vincent Untz)
4197 * gtk/gtkfilechooserdefault.c (save_folder_combo_create):
4198 Unset "focus-on-click" for the save folder combo. (#168688,
4201 2005-02-25 Matthias Clasen <mclasen@redhat.com>
4203 * demos/testpixbuf.c (main): Remove a C++ comment. (#168531,
4206 * gtk/gtkcombobox.c (gtk_combo_box_menu_fill_level): Don't leak a
4207 path here. (#168443, Morten Welinder)
4209 2005-02-24 Robert Ögren <gtk@roboros.com>
4211 Implement better handling of Wintab tablet context overlap on
4214 * gdk/win32/gdkinput-win32.c (_gdk_input_set_tablet_active): New
4215 function that brings any tablet contexts to the top of the overlap
4217 * gdk/win32/gdkinput-win32.h: Declare _gdk_input_set_tablet_active ()
4218 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
4219 Call _gdk_input_set_tablet_active when a window is activated (on
4222 2005-02-24 Matthias Clasen <mclasen@redhat.com>
4224 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_select_path):
4225 Don't leak parent_path. (#168435, Morten Welinder)
4227 Thu Feb 24 14:20:16 2005 Søren Sandmann <sandmann@redhat.com>
4229 * gtk/gtkstyle.c: Add
4231 g_return_if_fail (style->depth == gdk_drawable_get_depth(window));
4235 2005-02-24 Matthias Clasen <mclasen@redhat.com>
4237 * gtk/gtkcombobox.c: Consistently use gtk_tree_row_reference_valid().
4238 (gtk_combo_box_model_row_deleted): Update the displayed row in
4239 the cell_view. (#167842, Gustavo Carneiro)
4241 2005-02-24 Matthias Clasen <mclasen@redhat.com>
4243 Fix #167259, reported by Christian Persch:
4245 * gtk/gtkwidget.c (gtk_widget_unparent): Unmap the reparented
4246 widget, even if we avoid the unrealizing.
4247 (gtk_widget_reparent_subwindows): Make reparenting work for
4248 !NO_WINDOW widgets which have other windows which are siblings
4249 of widget->window (as e.g. GtkSpinButton).
4251 2005-02-24 Matthias Clasen <mclasen@redhat.com>
4253 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed):
4254 Don't emit a warning if a parent node is filtered out. (#164726,
4257 2005-02-23 Matthias Clasen <mclasen@redhat.com>
4259 * gtk/gtklabel.c (gtk_label_style_set): Revert the last
4260 change, since gtk_widget_set_style_internal() already
4263 2005-02-23 Matthias Clasen <mclasen@redhat.com>
4265 * gtk/gtklabel.c (gtk_label_style_set): Queue a resize, since
4266 fonts may have changed. (#164128, Phil Blundell)
4268 * gtk/gtkaboutdialog.c (gtk_about_dialog_init)
4269 (gtk_about_dialog_new): Move initialization code from _new to
4270 _init. (#168249, Murray Cumming)
4272 Wed Feb 23 17:34:01 2005 Jonathan Blandford <jrb@redhat.com>
4274 * gtk/gtktreeview.c (gtk_tree_view_node_queue_redraw): Patch from
4275 jorn@nl.linux.org (Jorn Baayen) to notice changes to fixed-height
4278 2005-02-23 Tor Lillqvist <tml@novell.com>
4280 * gdk/win32/gdkkeys-win32.c (update_keymap): Workaround for bug in
4281 MapVirtualKey(VK_DIVIDE, 0) in some Windows versions. (#142998)
4283 Tue Feb 22 13:49:09 2005 Manish Singh <yosh@gimp.org>
4285 * gtk/updateiconcache.c: #include <config.h>
4287 2005-02-22 Federico Mena Quintero <federico@ximian.com>
4289 Merged from gtk-2-6:
4291 Fix #164940, patch by Ben Maurer and Tommi Komulainen.
4293 * gdk/gdkrgb.c (gdk_rgb_convert_565_d): Constify the "dmp" variable.
4294 (gdk_rgb_convert_565_d): Likewise.
4295 (DM_565): Made a static const precomputed array to avoid
4296 allocating it at runtime.
4297 (gdk_rgb_preprocess_dm_565): #ifdef out.
4299 2005-02-20 Matthias Clasen <mclasen@redhat.com>
4302 * gtk/gtkclipboard.c: Fix links to freedesktop.org specs
4303 in the documentation.
4305 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
4306 Set have_render_with_trapezoids to GDK_YES when we have
4307 a new enough Render extension. (#167965,Billy Biggs)
4309 * gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
4310 the last user interaction when focusing the window. (#166379,
4313 Thu Feb 17 14:58:16 2005 Manish Singh <yosh@gimp.org>
4315 * gtk/gtkuimanager.c (start_element_handler): make sure expand
4316 is initialized, cast to GTK_SEPARATOR_TOOL_ITEM.
4318 Thu Feb 17 14:52:57 2005 Manish Singh <yosh@gimp.org>
4320 * gtk/gtkcombobox.c: Pass gtk_widget_get_toplevel() a GTK_WIDGET.
4322 2005-02-16 Matthias Clasen <mclasen@redhat.com>
4324 * docs/iconcache.txt: Add some information about the
4325 icon cache format (since I can't locate it at freedesktop.org)
4327 Fixes for #143829, Tommi Komulainen, Christian Persch:
4329 * gtk/gtktreeview.c (gtk_tree_view_destroy): Remove the
4330 typeselect_flush_timeout when destroying the widgets
4332 (gtk_tree_view_ensure_interactive_directory): Add the
4333 popup to the window group of the toplevel it belongs to.
4335 * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget)
4336 (gtk_combo_box_popup): Do the same here.
4338 2005-02-14 Matthias Clasen <mclasen@redhat.com>
4340 * configure.in: Kill --enable-ansi (#164394)
4342 2005-02-11 Matthias Clasen <mclasen@redhat.com>
4344 * gtk/gtkpathbar.c (gtk_path_bar_finalize): Stop scrolling
4345 when the pathbar goes away. (#167094, Rodney Dawes)
4346 (change_icon_theme): Use GTK_ICON_SIZE_MENU here as
4349 2005-02-11 Matthias Clasen <mclasen@redhat.com>
4351 Support vertical menubars (#166632):
4353 * gtk/gtkenums.h (GtkPackDirection): New enumeration for pack
4354 directions, with values for left-to-right, right-to-left,
4355 top-to-bottom and bottom-to-top.
4359 * gtk/gtkmenubar.c: Add two properties, pack-direction and
4360 child-pack-direction, which specify how children and
4361 grandchildren of a menubar are packed, with getters and setters.
4363 * gtk/gtkmenubar.c (gtk_menu_bar_set_property):
4364 (gtk_menu_bar_get_property): Implement set_property and get_property.
4366 * gtk/gtkmenubar.c (gtk_menu_bar_size_request):
4367 (gtk_menu_bar_size_allocate): Take pack direction into account.
4369 * gtk/gtkmenubar.c (gtk_menu_bar_move_current): Implement
4370 move_current here move all the menubar-specific direction
4371 tweaking from the generic menushell implementation here.
4373 * gtk/gtkmenu.c (gtk_menu_move_current): Move menu-specific
4374 direction tweaking from the generic menushell implementation here.
4376 * gtk/gtkmenuitem.c (gtk_menu_item_size_request):
4377 (gtk_menu_bar_size_allocate): Take pack direction into account.
4379 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_size_request)
4380 (gtk_image_menu_item_size_allocate):
4381 (gtk_image_menu_item_toggle_size_request): Take child pack
4382 direction into account and pack the image vertically if
4385 * gtk/gtkmenushell.c (gtk_menu_shell_real_select_item):
4386 Set the submenu direction to left-right for menuitems in
4388 (gtk_real_menu_shell_move_current): Simplify by moving
4389 direction tweaking to menu- and menubar-specific
4390 implementations. Take pack direction into account when
4393 * tests/testmenubars.c: Test menubars in various packing
4394 direction combinations.
4396 * tests/Makefile.am (noinst_PROGRAMS): Add testmenubars.
4398 2005-02-11 Matthias Clasen <mclasen@redhat.com>
4400 Complete the fix for #165770, Vincent Noel:
4402 * gtk/gtkfilechooserbutton.c (FALLBACK_ICON_SIZE): Make the
4403 fallback size be 16, to be equal to the default for
4404 GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
4405 (gtk_file_chooser_button_init):
4406 (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
4407 GTK_ICON_SIZE_SMALL_TOOLBAR.
4409 2005-02-09 Matthias Clasen <mclasen@redhat.com>
4411 * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): Fix RTL
4412 keynav for going from menubar to menu.
4414 2005-02-08 Christian Rose <menthos@menthos.com>
4416 * configure.in: Added "xh" to ALL_LINGUAS.
4418 2005-02-08 Matthias Clasen <mclasen@redhat.com>
4420 * gtk/gtkuimanager.c (start_element_handler): Accept
4421 the "expand" attribute and set a flag in the node if it
4423 (update_node): If the expand flag is set, make separator
4424 toolitems non-drawn and expanding. (#166489, Christian Persch)
4426 2005-02-05 Hans Breuer <hans@breuer.org>
4428 * gdk/makefile.msc gdk/win32/makefile.msc gtk/makefile.msc.in :
4429 build with Cairo dependency. The patch to acually use Cairo
4430 on win32 will be on gtk-devel-list soon.
4431 * tests/makefile.msc : add testcairo building
4433 * gtk/stock-icons/makefile.msc : split command line into two to
4434 work with the shells default
4436 Fri Feb 4 14:16:31 2005 Manish Singh <yosh@gimp.org>
4438 * gtk/gtkaccelgroup.c (substitute_underscores): remove unused
4441 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
4442 Add some extra parens for bitop order of operations disambiguiation.
4444 * gtk/gtkstock.c: Fix const confusion, make our own copy of the
4445 domain when setting a translate function.
4447 * tests/testcombo.c: removed unused variable.
4449 2005-02-04 Matthias Clasen <mclasen@redhat.com>
4451 * gtk/gtkstock.c (gtk_stock_lookup): Handle item->translation_domain
4452 being NULL. (#166179, Diego Gonzalez)
4454 2005-02-04 Owen Taylor <otaylor@redhat.com>
4456 * configure.in: Revert gtk_binary_version to 2.4.0. Fix
4457 up comment to talk only about backwards compat, not
4458 forward/backwards compat. (#166293, reported by Vincent Noel)
4460 2005-02-04 Matthias Clasen <mclasen@redhat.com>
4462 * gtk/gtkpaned.c (gtk_paned_compute_position): Work better
4463 when there is not enough space. This avoids a nasty size
4464 allocation loop in the file chooser. (#154007, reported
4465 by Milosz Derezynski, patch by Robert Ögren)
4467 2005-02-04 Matthias Clasen <mclasen@redhat.com>
4469 * gtk/gtkentry.c (gtk_entry_create_layout): Avoid spurious
4470 selection of RTL direction if the widget does not have
4471 focus. (#164125, Frederic Crozat)
4473 Thu Feb 3 19:15:55 2005 Manish Singh <yosh@gimp.org>
4475 * gdk/x11/gdkdrawable-x11.c: #include cairo-xlib.h
4477 2005-02-03 Owen Taylor <otaylor@redhat.com>
4479 * gdk/gdkdrawable.[ch] gdkpixmap.c gdkwindow.c: Add
4480 gdk_drawable_set_cairo_target().
4482 * tests/testtreeflow.c (enum): Use grand not rand as a variable
4483 name because one of the cairo headers is pulling in stdlib.h.
4485 * tests/testcairo.c tests/Makefile.am: Add a simple cairo based
4488 * configure.in: Bump release to 2.7.0, gtk_binary_version to 2.7.0.
4490 * Require libpangocairo for all backends.
4492 2005-02-03 Tor Lillqvist <tml@novell.com>
4494 * modules/input/gtkimcontextime.c (get_pango_attr_list): Use the
4495 wide character version of ImmGetCompositionString() here,
4496 too. (#165278, Takuro Ashie)
4498 2005-02-03 Matthias Clasen <mclasen@redhat.com>
4500 * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Don't do
4501 one roundtrip per motion event. (#166173, pointed out
4502 by Chris Lee, patch by Søren Sandmann)
4506 * gtk/gtkstock.c (gtk_stock_set_translate_func):
4507 New function which allows to change the function used for
4508 translation stock labels, on a per-domain basis. Use this
4509 functionality to switch the GTK+ stock items to use Q_()
4510 prefixed msgids. (#166179, Funda Wang)
4512 * gdk/gdkkeynames.c: Make the gdk_key array const (#166075,
4515 2005-02-02 Federico Mena Quintero <federico@ximian.com>
4517 Merged from gtk-2-6:
4519 * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
4520 Don't select the first row if the chooser is not mapped. This
4521 happens when it's acting on behalf of GtkFileChooserButton. Also,
4522 don't select the first row if we are in SAVE or CREATE_FOLDER
4523 modes --- I had missed that (see the ChangeLog entry from
4524 2005-01-18). Fixes #165264.
4526 2005-02-02 Tor Lillqvist <tml@novell.com>
4528 Implement lazy extended input initialization on Win32, by Robert
4529 Ögren. Fixes #163163, possibly #162334. Lazy initialization would
4530 be a good idea in any case even if it didn't fix any visible
4533 The Wacom tablet driver seems to get confused if Wintab is
4534 initialized but no window is shown before the process exits. This
4535 is the case for some GIMP plug-ins, for instance.
4537 * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Made
4538 non-static (and renamed).
4539 (_gdk_input_init): Don't call _gdk_input_wintab_init_check().
4541 * gdk/win32/gdkinput-win32.h: Declare _gdk_input_wintab_init_check().
4543 * gdk/win32/gdkinput.c (gdk_devices_list,
4544 gdk_display_list_devices, gdk_input_set_extension_events): Call
4545 _gdk_input_wintab_init_check() here instead.
4547 2005-02-02 Ivan, Wong Yat Cheung <email@ivanwong.info>
4549 * gdk/win32/gdkselection.c: Use a FIFO list for storing GdkSelProp
4550 of a single window so that gtk_clipboard_request_contents() can be
4551 called inside a GtkClipboardReceivedFunc(). (#163844)
4553 2005-02-01 Matthias Clasen <mclasen@redhat.com>
4555 * gtk/gtkicontheme.c (gtk_icon_theme_init): Look for icons
4556 in XDG_DATA_DIRS/pixmaps. (#165950, Thomas Zajic)
4558 * gtk/gtkwindow.c (gtk_window_set_icon_name): Set info->icon_list
4559 to NULL after freeing it. (#165800, Damon Chaplin)
4561 2005-02-01 Michael Natterer <mitch@gimp.org>
4563 * configure.in: depend on stable pango-1.8, not unstable 1.7
4565 2005-02-01 Federico Mena Quintero <federico@ximian.com>
4567 Merged from gtk-2-6:
4569 * gtk/gtkfilechooserdefault.c
4570 (browse_files_model_finished_loading_cb): Don't
4571 g_assert_not_reached() if we are in any other state. Another code
4572 path may have triggered a folder reload. Fixes #165556.
4574 2005-02-01 Federico Mena Quintero <federico@ximian.com>
4576 Merged from gtk-2-6:
4580 * gtk/gtkfilechooserdefault.c (FALLBACK_ICON_SIZE): Make the
4581 fallback size be 16, to be equal to the default for
4582 GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
4583 (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
4584 GTK_ICON_SIZE_SMALL_TOOLBAR.
4586 2005-02-01 Matthias Clasen <mclasen@redhat.com>
4588 * */*.c: Fix many instances of "the the" in docs and
4589 comments. (#165815, Masao Mutoh)
4591 * gtk/updateiconcache.c (main): Add a --quiet option.
4593 2005-02-01 Tor Lillqvist <tml@novell.com>
4595 * gdk/win32/gdkkeys-win32.c (handle_special, set_shift_vks,
4596 reset_after_dead, handle_dead): New functions, code blocks
4597 refactored out of update_keymap(). No functionality change.
4599 (update_keymap): Use ToUnicodeEx() when available (on NT-based
4600 Windows) instead of ToAsciiEx(). Makes keyboard input work in
4601 Unicode-only input locales that don't have any ANSI codepage, for
4602 instance Hindi and Bengali. Use _gdk_input_codepage only on
4605 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
4606 WM_INPUTLANGCHANGE, use GetLocaleInfo() instead of
4607 TranslateCharsetInfo() to get the input locale's corresponding
4610 2005-01-31 Matthias Clasen <mclasen@redhat.com>
4612 * modules/input/gtkimcontextxim.c: Use NULL, not 0 to terminate
4613 NULL-terminated va lists. (#165683)
4615 2005-01-29 Matthias Clasen <mclasen@redhat.com>
4617 * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_set_draw):
4618 Typo fix. (#165581, Masao Mutoh)
4620 Thu Jan 27 14:25:45 2005 Manish Singh <yosh@gimp.org>
4622 * README.cvs-commits: update ancient IRC info.
4624 2005-01-27 Federico Mena Quintero <federico@ximian.com>
4626 Merged from gtk-2-6:
4628 * gtk/gtkfilechooserdefault.c
4629 (gtk_file_chooser_default_select_path): Oops, don't assert that we
4630 can't reach the end of the function; this happens if we are still
4631 loading but don't need a path change. Fixes #165213.
4633 2005-01-27 Matthias Clasen <mclasen@redhat.com>
4635 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
4636 Make wrapping work in RTL mode.
4638 * gtk/gtkaboutdialog.c: Some visual tweaks to the about dialog,
4639 obey HIG spacing a bit more, add a hand cursor when over the
4640 link button. (#163979, Jorn Baayen)
4642 2005-01-26 Matthias Clasen <mclasen@redhat.com>
4644 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
4645 Don't allow -1 as minimum-key-length.
4646 (gtk_entry_completion_set_model): Add missing notification.
4647 (gtk_entry_completion_set_minimum_key_length): Add missing
4648 notification, allow setting minimum-key-length to 0. (#165194,
4651 2005-01-26 Matthias Clasen <mclasen@redhat.com>
4653 * gtk/gtkaboutdialog.c (display_license_dialog): Make sure
4654 the license dialog is initially displayed without a horizontal
4656 (gtk_about_dialog_class_init): Document the fact that the
4657 license text is not wrapped. (#165012, Christian Rose)
4659 2005-01-25 Matthias Clasen <mclasen@redhat.com>
4661 * gtk/gtkbutton.c (gtk_button_set_image): Fix docs. (#165180,
4664 * gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): Fix
4665 docs. (#165163, Jeff Franks)
4667 * gtk/gtkimage.c (gtk_image_get_property): Use the correct setter
4668 for a string GValue. (#165203, Damon Chaplin)
4670 2005-01-24 Matthias Clasen <mclasen@redhat.com>
4672 * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display):
4673 Initialize user_time from DESKTOP_STARTUP_ID. (#165131,
4676 2005-01-24 Federico Mena Quintero <federico@ximian.com>
4678 * gtk/gtkfilechooserdefault.c: Removed leftover comments.
4680 2005-01-24 Federico Mena Quintero <federico@ximian.com>
4682 Merged from gtk-2-6:
4684 Fix #147785 and clean up the loading code:
4686 * gtk/gtkfilechooserdefault.c (LoadState): Make the set of states
4687 be EMPTY, PRELOAD, LOADING, FINISHED.
4688 (gtk_file_chooser_default_init): Start in the LOAD_EMPTY state.
4689 (struct _GtkFileChooserDefault): Added a pending_select_paths
4691 (load_remove_timer): Add the new states.
4692 (load_setup_timer): Likewise.
4693 (load_timeout_cb): Likewise. Switch to the LOAD_LOADING state.
4694 (browse_files_model_finished_loading_cb): Switch to the
4695 LOAD_FINISHED state.
4696 (enum PendingOp): Removed.
4697 (struct _GtkFileChooserDefault): Removed the pending_op and
4698 pending_select_path fields.
4699 (pending_select_paths_free): New utility function.
4700 (pending_select_paths_add): New utility function.
4701 (gtk_file_chooser_default_finalize): Call
4702 pending_select_paths_free().
4703 (pending_op_queue): Removed.
4704 (pending_op_process): Removed.
4705 (pending_select_paths_process): New function.
4706 (browse_files_model_finished_loading_cb): Call
4707 pending_select_paths_process().
4708 (center_selected_row_foreach_cb): Handle multiple selection by
4709 only centering the first row.
4710 (get_is_file_filtered): Constify.
4711 (gtk_file_chooser_default_select_path): Queue into a list of paths
4712 to select if we are not finished loading.
4713 (show_and_select_paths): New utility function.
4714 (up_folder_handler): Use pending_select_paths_add().
4715 (gtk_file_chooser_default_should_respond): Do not call
4716 pending_op_queue(); free the pending_selected_paths instead.
4717 (gtk_file_chooser_default_initial_focus): Don't queue a pending
4718 operation, and don't select the first row unconditionally --- this
4719 will happen when the folder is done loading.
4720 (shortcuts_row_activated_cb): Free the pending_select_paths.
4721 (pending_select_paths_store_selection): New utility function.
4722 (gtk_file_chooser_default_map): Call
4723 pending_select_paths_store_selection() to save the selection
4724 before reloading the folder.
4725 (select_func): Umm? Call gtk_tree_selection_select_iter(). Don't
4726 move the cursor here; it will be done when processing the pending paths.
4728 * tests/testfilechooser.c (main): Add a button to the command
4729 window to unmap and remap the file chooser.
4731 2005-01-24 Matthias Clasen <mclasen@redhat.com>
4733 * docs/tutorial/gtk-tut.sgml:
4734 * docs/tutorial/gtk_tut.sgml:
4735 * docs/reference/gtk/tmpl/gtkliststore.sgml:
4736 * gtk/gtkactiongroup.c:
4737 * gtk/gtksizegroup.c:
4738 * gtk/gtksizegroup.h:
4739 * gtk/gtktogglebutton.c: Replace "effect" by "affect" where
4740 appropriate. (#165108, Dan Winship)
4742 2005-01-24 Matthias Clasen <mclasen@redhat.com>
4744 * gtk/gtkwidget.c (gtk_widget_class_init): Document
4745 GtkWidget::style-set. (#164222, Alex Graveley)
4747 2005-01-22 Matthias Clasen <mclasen@redhat.com>
4749 * gdk/gdkdisplay.h (gdk_display_add_client_message_filter_full):
4750 Remove the accidentally added prototype for this unimplemented
4751 function. (#164893, Jeff Franks)
4753 * gtk/gtktreeview.c (gtk_tree_view_leave_notify): Avoid spurious
4756 2005-01-23 Tor Lillqvist <tml@novell.com>
4758 * gdk/win32/gdkkeys-win32.c (update_keymap): Handle Greek tonos
4759 dead accent key. (#164859, reported and fix verified by Daniel
4762 * gtk/gtkimcontextsimple.c (gtk_compose_seqs): Handle
4763 GDK_Greek_accentdieresis (tonos and dialytika) combining with iota
4766 * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_volume_get_display_name):
4767 Don't call GetVolumeInformation() for network drives. They might
4768 be disconnected, and calling GetVolumeInformation() will then
4769 cause long delays. (#164448, reported by Dave Neary.) It seems to
4770 be very hard to reliably find out whether a network drive is
4771 connected or not, so it's easier to just not try getting the
4772 volume name for them. See the bug report for discussion.
4774 Make volume name display formats translatable.
4776 Fix for #163702, from Ivan Wong:
4778 * gdk/win32/gdkprivate-win32.h
4779 * gdk/win32/gdkglobals-win32.c: New flag _ignore_destroy_clipboard.
4781 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle
4782 WM_DESTROYCLIPBOARD. Unless _ignore_destroy_clipboard, generate a
4783 GDK_SELECTION_CLEAR event.
4785 * gdk/win32/gdkselection-win32.c
4786 (gdk_selection_owner_set_for_display): Set _ignore_destroy_clipboard
4787 when emptying the clipboard ourselves.
4789 (gdk_selection_send_notify_for_display): Remove the artifical
4790 GDK_SELECTION_CLEAR event generation.
4792 2005-01-21 Matthias Clasen <mclasen@redhat.com>
4794 * gtk/gtkwidget.c (gtk_widget_get_accessible): More details
4795 provided by Bill Haneman.
4797 2005-01-20 Matthias Clasen <mclasen@redhat.com>
4799 * gtk/gtkwidget.c (gtk_widget_get_accessible): Add docs. (#164725,
4802 * gtk/gtkdialog.c (gtk_dialog_map): Don't loop forever
4803 here, even if the only focusable widgets are labels.
4805 2005-01-20 Matthias Clasen <mclasen@redhat.com>
4807 Support tinting in GtkCellRendererPixbuf (#162903, Jorn Baayen):
4809 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init)
4810 Add a follow-state property which when TRUE causes the pixbuf
4811 to be tinted according to state.
4813 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
4814 Use follow-state and colorize the pixbuf when appropriate.
4816 2005-01-20 Matthias Clasen <mclasen@redhat.com>
4818 Support wrapping in GtkCellRendererText (#163608):
4820 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
4821 Add wrap-mode and wrap-width properties which cause a
4822 text cell to break to a specified width when set.
4824 * gtk/gtkcellrenderertext.c (get_layout): Use wrap-mode
4825 and wrap-width when they are set.
4827 2005-01-20 Matthias Clasen <mclasen@redhat.com>
4829 * gtk/gtkmodules.c (load_module): Don't reverse the order
4830 of modules when putting them in gtk_modules. (#162676, Dennis
4831 Cranston, patch by Remus Draica)
4833 * gtk/gtktreeview.c (gtk_tree_view_search_move): Don't crash
4834 if the tree is empty. (#164669, Priit Laes)
4836 Wed Jan 19 18:57:02 2005 Manish Singh <yosh@gimp.org>
4838 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call
4839 GDK_DISPLAY_XDISPLAY with a display, not a window. Clean up the
4842 Wed Jan 19 17:17:31 2005 Manish Singh <yosh@gimp.org>
4844 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Squash
4845 strict aliasing warning in _NET_VIRTUAL_ROOTS code.
4847 2005-01-19 Tor Lillqvist <tml@novell.com>
4849 * gdk/win32/gdkkeys-win32.c (update_keymap,
4850 gdk_keymap_translate_keyboard_state): Handle keyboards with
4851 ShiftLock (and not CapsLock) correctly. (#161814)
4853 2005-01-19 Matthias Clasen <mclasen@redhat.com>
4855 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
4856 In save mode, don't return paths containing nonexisting
4857 directories. (#162443, Jean Marie Favreau)
4859 * gtk/gtkobject.c (gtk_object_add_arg_type): Use GLib limit
4860 macros to avoid sparse warnings. Pointed out by Kjartan Maraas.
4862 * gdk/x11/gdkdisplay-x11.c: Precache the _NET_VIRTUAL_ROOTS
4865 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents):
4866 Support _NET_VIRTUAL_ROOTS. (#163910, Carsten Haitzler)
4870 * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_get_user_time):
4871 Add a function to obtain the last user interaction
4872 time. (#163119, Elijah Newren)
4874 Tue Jan 18 13:56:09 2005 Manish Singh <yosh@gimp.org>
4876 * gtk/gtkfilechooserdefault.c (pending_op_queue): Actually assign
4879 Tue Jan 18 13:46:46 2005 Manish Singh <yosh@gimp.org>
4881 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
4882 disambiguate nested if/else.
4884 2005-01-18 Federico Mena Quintero <federico@ximian.com>
4886 Merged from gtk-2-6:
4888 * gtk/gtkfilechooserdefault.c (pending_op_queue): Don't queue an
4889 operation to select the first file if we are in SAVE or
4890 CREATE_FOLDER modes. Executing that operation would overwrite the
4891 contents of the save-name entry.
4893 2005-01-18 Matthias Clasen <mclasen@redhat.com>
4896 * gdk/x11/gdkwindow-x11.c (gdk_display_warp_pointer):
4897 * gdk/win32/gdkwindow-win32.c (gdk_display_warp_pointer): Add
4898 pointer warping to GDK. (#160437)
4900 * gtk/gtkcolorsel.c (key_press): Use gdk_display_warp_pointer.
4902 2005-01-18 Matthias Clasen <mclasen@redhat.com>
4904 * gtk/gtkstyle.c (gtk_default_draw_check)
4905 (gtk_default_draw_option, gtk_default_draw_handle): Add some
4906 more NULL checks, patch by Michael Natterer.
4908 Tue Jan 18 10:55:47 2005 Søren Sandmann <sandmann@redhat.com>
4910 * gtk/gtkstyle.c (gtk_default_draw_handle): Check for NULL detail
4913 * gtk/gtkstyle.c (gtk_default_draw_box): Check for NULL detail and
4914 NULL widget. (#164477, Michael Natterer)
4916 2005-01-18 Matthias Clasen <mclasen@redhat.com>
4918 Avoid X errors when running against servers which
4919 implement XRender < 0.4. (#164427, Albert Chin)
4921 * gdk/x11/gdkprivate-x11.h:
4922 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
4923 New function to check for trapezoid support in XRender.
4924 (gdk_x11_draw_trapezoids, _gdk_x11_drawable_draw_xtrapezoids):
4927 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a
4928 separate have_render_with_trapezoids field.
4930 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize it.
4932 2005-01-17 Matthias Clasen <mclasen@redhat.com>
4934 * gtk/gtkiconview.c: Remove debug output. (#164376, Jens Finke)
4936 Mon Jan 17 16:44:36 2005 Jonathan Blandford <jrb@redhat.com>
4938 * docs/Makefile.am (EXTRA_DIST): add tree-column-sizing.png to
4941 2005-01-17 Matthias Clasen <mclasen@redhat.com>
4943 * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmarks): Save
4944 and restore the selected row in the bookmark list and the
4945 save folder combo. (#164290)
4947 2005-01-16 Matthias Clasen <mclasen@redhat.com>
4949 * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new_with_backend):
4950 Fix argument order in docs.
4952 2005-01-15 Matthias Clasen <mclasen@redhat.com>
4954 * gtk/gtktextview.c (gtk_text_view_check_keymap_direction):
4955 * gtk/gtkentry.c (gtk_entry_create_layout): Prefer LTR over RTL
4956 if the keymap is neutral. (#164125, Phil Blundell)
4958 2005-01-14 Matthias Clasen <mclasen@redhat.com>
4960 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Allow to
4961 reset the property to its default value -1.
4962 (gtk_tree_view_get_search_column): Return the default value in
4963 the g_return_val_if_fail() check. (#163864, Richard Hult)
4965 * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_set_value):
4966 Add a translator hint. (#163889)
4968 * configure.in: Check for _NL_TIME_FIRST_WEEKDAY too, since it
4969 is an enum value, not a define. Pointed out by Tommi Komulainen.
4970 * gtk/gtkcalendar.c (gtk_calendar_init): Adapt.
4972 2005-01-13 Matthias Clasen <mclasen@redhat.com>
4974 * configure.in: Check for nl_langinfo()
4975 * gtk/gtkcalendar.c (gtk_calendar_init): Use nl_langinfo() when it's
4976 available to determine first day of week (#163842, Vincent Untz)
4978 * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Add hints about
4979 the lifecycle of widgets. (#159503, Christian Persch)
4981 * demos/gtk-demo/main.c (create_text): Use monospace for the
4982 source code view. (#163526, Theerud Lawtrakul)
4984 * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Use R as mnemonic
4985 for the Credits button to avoid duplicate. (#163465, Tim-Philipp
4988 * configure.in: Add an OS_LINUX conditional.
4990 * gdk/Makefile.am (TESTS):
4991 * gdk-pixbuf/Makefile.am (TESTS):
4992 * gtk/Makefile.am (TESTS): Only run abicheck on Linux. (#163917,
4995 2005-01-13 Matthias Clasen <mclasen@redhat.com>
4997 * gtk/gtktreeview.c: (gtk_tree_view_class_init),
4998 (gtk_tree_view_set_headers_clickable): Make the headers-visible
4999 property readwrite instead of just writable, and remove the
5000 g_return_if_fail check that there is a model when setting this
5001 property. Also improve the blurb. (#163851, Richard Hult)
5003 2005-01-12 Owen Taylor <otaylor@redhat.com>
5005 * configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on
5006 initialization of gdktarget, that was causing it to be
5007 evaluated before host was set. Simplify --with-gdktarget help
5010 * gtk/Makefile.am: Use grep | head -n 1 instead of grep -m 1
5011 which doesn't work with slightly older versions of GNU grep
5012 in install-libtool-import-lib rule.
5014 2005-01-12 Tor Lillqvist <tlillqvist@novell.com>
5016 Fix for #162790, by Iwan Wong:
5018 * gdk/win32/gdkdrawable-win32.c: Implement dashed lines
5019 correctly. Simplify the interface to render_line_horizontal() and
5020 render_line_vertical(). Need to draw lines "manually" also on
5021 NT-based Windowses if we have a dash offset or are drawing
5022 double-dashed lines.
5024 * gdk/win32/gdkprivate-win32.h: Keep also the dash offset,
5025 double-dash flag, and a brush for the background colour (used by
5026 the odd dashes in the double-dash line style) in the GdkGCWin32
5029 * gdk/win32/gdkgc-win32.c: Set up above new fields.
5031 2005-01-10 Federico Mena Quintero <federico@ximian.com>
5035 * gtk/gtkfilesystemunix.c (STAT_NEEDED_MASK): Take out
5036 GTK_FILE_INFO_IS_HIDDEN; we don't need to stat() to know this.
5037 (gtk_file_system_unix_get_folder): Make error reporting more
5038 accurate. Don't bail out if we can't read the directory.
5039 (fill_in_stats): Don't return an error; just assume we don't have
5040 stat info for this folder's files.
5041 (fill_in_names): Don't create the hash table for the names if we
5042 can't open the directory.
5043 (gtk_file_folder_unix_list_children): Don't emit the
5044 "finished-loading" signal --- we don't do asynchronous loads, so
5045 we are always finished loading.
5046 (gtk_file_folder_unix_get_info): Use helper functions; handle the
5047 case where we can't stat '/'.
5048 (get_icon_type_from_path): Don't call fill_in_stats() here; only
5049 use the info we have.
5050 (fill_in_mime_type): Don't return an error. Don't do anything if
5051 we don't have the stat info.
5053 2005-01-10 Owen Taylor <otaylor@redhat.com>
5055 * Makefile.am (EXTRA_DIST): Adding missing ChangeLog.pre*
5058 2005-01-10 Matthias Clasen <mclasen@redhat.com>
5060 * gtk/gtkaccelgroup.c (gtk_accel_group_class_init): Document
5061 signals. (#163319, Murray Cumming)
5063 2005-01-09 Tor Lillqvist <tlillqvist@novell.com>
5065 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Set current
5066 cursor also when changing the cursor of a window that is the first
5067 ancestor of the window containing the pointer that has a cursor
5068 defined. (#163035, Ivan Wong)
5070 2005-01-09 Anders Carlsson <andersca@gnome.org>
5072 * gtk/gtkcellrenderertext.c: (get_size):
5073 * gtk/gtklabel.c: (gtk_label_size_request):
5074 * gtk/gtkprogressbar.c: (gtk_progress_bar_size_request):
5075 Don't pass NULL to pango_context_get_metrics. Use
5076 pango_context_get_language instead, which is way faster.
5078 2005-01-08 Matthias Clasen <mclasen@redhat.com>
5080 * configure.in: Bump version
5082 * === Released 2.6.1 ===
5084 * gdk-pixbuf-2.0.pc.in: Require gmodule-no-export-2.0
5086 2005-01-07 Tor Lillqvist <tml@iki.fi>
5088 * gdk/win32/gdkselection-win32.c (_gdk_selection_property_store):
5089 Fix braino. (#163232, Arnaud Charlet)
5091 2005-01-06 Matthias Clasen <mclasen@redhat.com>
5093 * gtk/gtkiconview.c: Make markup_column work, and fix some
5094 layout issues when either icon or text is missing. (#163065)
5096 2005-01-06 Federico Mena Quintero <federico@ximian.com>
5098 * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu): Add an
5099 "Open _Location" item. Fixes #148839.
5101 2005-01-06 Matthias Clasen <mclasen@redhat.com>
5103 * README.in: Fix a typo. (#163128, kentaro fukuchi)
5105 2005-01-06 James M. Cape <jcape@ignore-your.tv>
5107 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new)
5108 (gtk_file_chooser_button_new_with_backend): Use default title if
5111 * docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Make examples
5114 2005-01-05 Federico Mena Quintero <federico@ximian.com>
5118 * gtk/gtkfilechooserdefault.c (shortcuts_row_activated_cb): Queue
5119 a pending operation to select the first row.
5121 2005-01-05 Federico Mena Quintero <federico@ximian.com>
5123 * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Don't call
5124 button_data_free() explicitly; the button is weak-reffed and the
5125 callback will free the button data. Fixes #163010.
5126 (_gtk_path_bar_set_path): Don't ref/sink the button. And for the
5127 failure case, call gtk_widget_destroy() on it.
5129 * gtk/gtkfilechooserdefault.c (check_is_folder): Use
5130 gtk_file_system_get_folder() again (see the ChangeLog entry from
5131 2004-08-25). We can't first get the parent folder and then
5132 request the info for the path in question, as the parent folder
5133 may not be readable. See bug #162617.
5134 (gtk_file_chooser_default_set_current_folder): Assert that the
5135 passed-in path is not null.
5136 (shortcuts_find_current_folder): Likewise.
5137 (shortcuts_add_current_folder): Likewise.
5138 (set_list_model): Likewise.
5139 (gtk_file_chooser_default_map): Only reload the current folder if
5141 (bookmarks_check_add_sensitivity): Check for the current folder
5143 (browse_files_select_first_row): Don't set the cursor if there is
5146 2005-01-05 Matthias Clasen <mclasen@redhat.com>
5148 * gtk/gtkfilechooserdefault.c: Don't construct errors from
5149 the GTK_FILE_SYSTEM_ERROR domain. Partial fix for #162911.
5150 (get_file_info, check_is_folder): Translate errors from
5151 the filesystem into the GTK_FILE_CHOOSER_ERROR domain. Rest
5152 of the fix for #162911, noticed by Murray Cumming.
5154 Wed Jan 5 11:42:49 2005 Søren Sandmann <sandmann@redhat.com>
5156 * gtk/gtkviewport.c (gtk_viewport_realize):
5157 * gtk/gtktextview.c ((text_window_realize): Set the background of
5158 the windows to None instead of adding EXPOSURE_MASK, as suggested
5161 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Update
5162 the user time when receiving a WM_DELETE message. (#162980,
5165 Tue Jan 4 16:52:14 2005 Jonathan Blandford <jrb@redhat.com>
5167 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
5168 only reorder on button 1, part of #141937
5170 Tue Jan 4 11:36:43 2005 Søren Sandmann <sandmann@redhat.com>
5174 * gtk/gtktextview.c (text_window_realize): Add GDK_EXPOSURE_MASK
5175 to win->window's event_mask
5177 * gtk/gtkviewport.c (gtk_viewport_realize): Add GDK_EXPOSURE_MASK
5178 to viewport->view_window.
5180 2005-01-04 Matthias Clasen <mclasen@redhat.com>
5182 * demos/testpixbuf.c (main): Remove the size_prepared callback,
5183 to test incremental display.
5184 (new_testrgb_window): Return the drawing area, not the window,
5185 since we want to queue draws on the drawing area.
5187 2005-01-03 Matthias Clasen <mclasen@redhat.com>
5189 * examples/*: Re-extract.
5191 * docs/tutorial/gtk-tut.sgml: Small corrections.
5193 * docs/tutorial/gtk-tut.sgml: Some updates for the drawing
5194 section. (#161414, Robert Ancell)
5196 * docs/tutorial/gtk-tut.sgml: Make it build.
5198 * gtk/gtkdialog.c (gtk_dialog_run): Some clarification
5199 regarding modality. (#112903, Dave Bordoley)
5201 * gtk/gtkfixed.c (gtk_fixed_set_has_window):
5202 Add a little motivation. (#145556, Tommi Komulainen)
5204 * docs/tutorial/gtk-tut.sgml: Clarify section on
5205 g_signal_connect_swapped. (#120543, David Bourguignon)
5207 Make gtk_icon_theme_load_icon() work independent of
5208 icon factory initialization. (#162791, Tristan Van Berkom)
5210 * gtk/gtkiconfactory.[hc]: Rename ensure_default_icons to
5211 _gtk_icon_factory_ensure_default_icons, and make it non-static.
5213 * gtk/gtkicontheme.c (find_builtin_icon): ..and call it here.
5215 2005-01-02 Matthias Clasen <mclasen@redhat.com>
5217 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_remove_shortcut_folder):
5218 Don't add a shortcut here. (#162752, Tor Lillqvist)
5220 2005-01-02 Tor Lillqvist <tml@iki.fi>
5222 * gtk/Makefile.am (libgtk_target_ldflags): Add -lole32, needed for
5223 CoTaskMemFree in get_special_folder() below.
5225 * gtk/gtkfilesystem.h: Implement case-insensitive path compare on
5226 Win32 using _gtk_file_system_win32_path_compare().
5228 * gtk/gtk.symbols: Add _gtk_file_system_win32_path_compare.
5230 * gtk/gtkfilechooserbutton.c (model_add_special)
5231 * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Use
5232 _gtk_file_system_win32_get_desktop() to get correct Desktop folder
5235 * gtk/gtkfilesystemwin32.c: Remove unnecessary includes. Do
5236 consider all drives "mounted", including floppies. Trying to
5237 inspect the contents of a nonexistent floppy will cause errors
5238 later that are handled normally, no need to avoid them
5239 completely. Keep the drive type in the GtkFileSystemVolume.
5240 Support UNC paths. (#161797, #137874) Fix error message
5241 capitalizations as in gtkfilesystemunix.c.
5243 (gtk_file_system_win32_init): Start one timeout per
5246 (gtk_file_system_win32_finalize): Remove the timeout.
5248 (get_special_folder): Copied from GLib.
5250 (_gtk_file_system_win32_get_desktop): New function, uses
5251 get_special_folder().
5253 (gtk_file_system_win32_list_volumes): Don't start a timeout at
5254 each call to this function. Don't assume A: and B: are floppies.
5256 (gtk_file_system_win32_get_volume_for_path): Don't assume all
5257 volumes are drive roots, i.e. support share roots of UNC paths
5260 (gtk_file_system_win32_get_folder): Don't assume errno is set
5261 after g_file_test() returns FALSE. It isn't on Win32 (and even on
5262 Unix I don't think one should assume anything about errno after
5265 (gtk_file_system_win32_volume_get_is_mounted): Always return TRUE.
5267 (gtk_file_system_win32_volume_get_display_name): Don't call
5268 GetVolumeInformation() on drives A: or B: if they are removable,
5269 as they might then be floppies, causing an unnecessary
5272 (gtk_file_system_win32_volume_render_icon): Use network icon for
5273 unrecognized drive types.
5275 (canonicalize_filename, gtk_file_system_win32_parse): Don't get
5276 confused by UNC paths.
5278 (bookmarks_serialize): Use _gtk_file_system_win32_path_compare()
5279 for case-insensitive UTF-8 path comparison.
5281 (extract_icon): Use SHGetFileInfo() which is faster than
5282 ExtractAssociatedIcon(). Icon extraction is still slow, though,
5285 (win32_pseudo_mime_lookup): Don't use the same icon for all
5286 shortcuts or executables. Cache only other file type icons.
5288 (gtk_file_system_win32_render_icon): Use network stock icon for
5289 remote drives and UNC server share roots. Compare home directory
5290 case-insensitively. Do lookup icons also for executable files,
5291 after all, it's these files that can have individual icons in the
5292 first place. Yes, it can be slow. Needs work.
5294 (filename_is_drive_root): Require also the slash after the colon.
5296 (filename_is_server_share): New function.
5298 (_gtk_file_system_win32_path_compare): New function, does
5299 case-folded UTF-8 comparison.
5301 * gtk/gtkfilesystemwin32.h: Declare
5302 _gtk_file_system_win32_path_compare().
5304 2005-01-01 Matthias Clasen <mclasen@redhat.com>
5306 * gtk/gtkbutton.c (gtk_button_set_image): Allow unsetting the
5307 custom image by passing NULL.
5308 (gtk_button_init): Initialize image_is_stock to TRUE, fixing
5309 a problem with changing stock labels. (#162273, Marcin
5312 2005-01-01 Tor Lillqvist <tml@iki.fi>
5314 * gtk/gtkmodules.c (get_module_path)
5315 * gtk/gtkrc.c (gtk_rc_make_default_dir, gtk_rc_get_im_module_file,
5316 gtk_rc_get_theme_dir, gtk_rc_add_initial_default_files): With
5317 g_getenv() now returning UTF-8 on Win32, no need to call
5320 2004-12-31 Matthias Clasen <mclasen@redhat.com>
5322 * gtk/gtkkeyhash.c (_gtk_key_hash_lookup_keyval)
5323 (_gtk_key_hash_lookup): Don't sort a list of values as if
5324 it was a list of entries. This fixes crashes during mnemonic
5325 activation in the presence of multiple keymaps. (#162488,
5328 2004-12-30 Matthias Clasen <mclasen@redhat.com>
5330 * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Fix
5331 state propagation when making an insensitive combo box sensitive
5332 again. (#162524, Carlos Garnacho Parro)
5334 * gtk/gtkfilechooserdefault.c: Use secondary text for error
5337 * gtk/gtkfilesystemunix.c: Clean up some cases of errno handling
5338 (#162496, noted by Tor Lillqvist), and use g_filename_display_name()
5339 for error messages. Also mark some error messages for translation,
5340 fix capitalization of error messages.
5342 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
5343 Use g_value_get_boolean() for ellipsize_set. (#162447,
5346 2004-12-30 Tor Lillqvist <tml@iki.fi>
5348 * gtk/gtkicontheme.c (gtk_icon_theme_init): Use /usr/share/pixmaps
5351 2004-12-28 Matthias Clasen <mclasen@redhat.com>
5353 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Inherit
5354 submenu direction from the parent menu.
5356 * gtk/gtkmenushell.c (gtk_menu_shell_select_submenu_first):
5357 Return a boolean indicating whether an item in the submenu
5359 (gtk_real_menu_shell_move_current): When going in child
5360 direction, don't get stuck at completely insensitive
5361 submenus. (#162055, Billy Biggs)
5363 2004-12-27 Matthias Clasen <mclasen@redhat.com>
5365 Make the clipboard image API more robust (#162357,
5366 Torsten Schoenfeld):
5368 * gtk/gtkclipboard.c (clipboard_image_received_func): Don't
5369 ref the pixbuf if it is NULL.
5371 * gtk/gtkselection.c (gtk_selection_data_set_pixbuf):
5372 NULL-terminate the varargs in the call to
5373 gdk_pixbuf_save_to_buffer().
5374 (gtk_selection_data_get_pixbuf): Only use a pixbuf loader
5375 if there is data to load.
5377 2004-12-27 Matthias Clasen <mclasen@redhat.com>
5379 * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
5380 Set x_root and y_root in button and motion events from
5381 extended input devices. (#148715, Robert Ögren)
5383 * gtk/gtktreeview.c (gtk_tree_view_class_init): Fix a
5384 typo. (#162339, Alessio Dessi)
5386 * gtk/gtkadjustment.c (gtk_adjustment_class_init): Document
5387 properties as new since 2.4. (#156101, Billy Biggs)
5389 * configure.in: Add a warning about the linux-fb
5390 target. (#155488, Zeeshan Ali)
5392 * gtk/gtkmain.c (gtk_init_with_args): Typo fix. (#162278,
5395 2004-12-26 Matthias Clasen <mclasen@redhat.com>
5397 * gtk/gtkfilechooser.c (gtk_file_chooser_set_action):
5398 Typo fix. (#162219, Masao Mutoh)
5399 (gtk_file_chooser_set_preview_widget_active):
5400 Another typo. (#162218, Masao Mutoh)
5402 2004-12-23 Matthias Clasen <mclasen@redhat.com>
5404 * gtk/gtkliststore.c (gtk_list_store_iter_children):
5405 Return TRUE if there are children. (#162134, Iñigo Serna,
5406 patch by John Finlay)
5408 * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed):
5409 Transfer state from the button to the cell view to get
5410 prelighting right. (#156327, Ricardo Veguilla)
5412 Wed Dec 22 14:22:19 2004 Søren Sandmann <sandmann@redhat.com>
5414 * tests/testtoolbar.c (timeout_cb): Add sensitivity-changing
5415 timeout. Written by Christian Persch.
5417 Wed Dec 22 14:14:02 2004 Søren Sandmann <sandmann@redhat.com>
5421 * gdk/x11/gdkwindow-x11.c (tmp_{re,un}set_bg): Only set/reset the
5422 background for windows that get expose events.
5424 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Remove
5425 hack to repaint !expose windows.
5427 Wed Dec 22 11:35:41 2004 Søren Sandmann <sandmann@redhat.com>
5429 Bug #147497, make menu items activate immediately when you release
5432 * gtk/gtkmenu.c (gtk_menu_enter_notify, menu_motion_notify): Make
5433 items activate immediately.
5435 * gtk/gtkmenu.c (definitely_within_item): New function
5436 * gtk/gtkmenu.c (check_threshold): New function
5438 2004-12-22 Matthias Clasen <mclasen@redhat.com>
5440 * gtk/gtklabel.c (gtk_label_setup_mnemonic): Don't forget to
5441 null the mnemonic_menu when unsetting a mnemonic, reported
5444 2004-12-21 Matthias Clasen <mclasen@redhat.com>
5446 * gtk/gtkliststore.c (generate_order): Generate the order the
5447 way it is supposed to be, order[new_pos] == old_pos.
5448 (gtk_list_store_reorder): Invert the order before using it.
5450 2004-12-22 Matthias Clasen <mclasen@redhat.com>
5452 Fix sorting of list stores. (#161886, Marcin Krzyzanowski)
5454 * gtk/gtkliststore.c (generate_order): Generate the order the
5455 way it is supposed to be, order[new_pos] == old_pos.
5456 (gtk_list_store_reorder): Invert the order before using it.
5458 * gtk/gtkiconview.c (gtk_icon_view_rows_reordered): Adapt to the
5461 Wed Dec 22 01:24:01 2004 Jonathan Blandford <jrb@redhat.com>
5463 * gtk/queryimmodules.c (main): print out the version and binary
5464 name in the header comment. Problem reported by Seth Nickell.
5466 2004-12-20 Matthias Clasen <mclasen@redhat.com>
5468 * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): Pass a
5469 root path to gtk_tree_model_rows_reordered(). (#161720,
5470 Marcin Krzyzanowski)
5472 * gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't
5473 translate NULL messages. (#161789, Morten Welinder)
5475 * gtk/gtkmessagedialog.c (setup_primary_label_font): Don't show
5476 the secondary label on show_all(). (#161707, Christian Persch)
5478 2004-12-19 Tor Lillqvist <tml@iki.fi>
5480 * gdk/win32/gdkdnd-win32.c (resolve_link, gdk_dropfiles_filter):
5481 Use wide character API when available. Use UTF-8 for filenames.
5483 * gdk/win32/gdkselection-win32.c (_gdk_dropfiles_store): Include
5484 the string's trailing zero byte in the property's length, just for
5487 2004-12-18 Matthias Clasen <mclasen@redhat.com>
5489 * gtk/gtkfilechooserentry.c (check_completion_callback)
5490 (load_directory_callback): Add missing GDK_THREADS_ENTER/LEAVE.
5492 * gtk/gtkfilechooserdefault.c (edited_idle_cb)
5493 (shortcuts_drag_outside_idle_cb): Add missing
5494 GDK_THREADS_ENTER/LEAVE. (#161604)
5496 * gtk/gtkfilechooserdefault.c (selection_check_foreach_cb):
5497 (list_select_func): Don't call gtk_file_info_get_is_folder()
5500 * gtk/gtkaboutdialog.c (gtk_about_dialog_get_logo_icon_name):
5501 (gtk_about_dialog_init): Add missing initializations. (#161646,