1 2005-08-01 Tor Lillqvist <tml@novell.com>
3 * gdk/win32/gdkwindow-win32.c (gdk_window_set_urgency_hint):
4 Implement using FlashWindowEx(). (#309423)
6 2005-07-30 Hans Breuer <hans@breuer.org>
8 * gtk/makefile.msc.in tests/makefile.msc : updated
10 2005-07-30 Johan Dahlin <jdahlin@async.com.br>
12 * gtk/gtkctree.c (gtk_ctree_class_init): Do not use |
13 G_PARAM_STATIC_NAME in the type field, makes subclassing possible.
15 2005-07-29 Claudio Saavedra <csaavedra@alumnos.utalca.cl>
17 * docs/reference/gtk/migrating-GtkAction.sgml: Declaring the
18 GtkActionEntry arrays static const. Fixes #301612.
20 2005-07-29 J. Ali Harlow <ali@juiblex.co.uk>
22 * gtk/Makefile.am: Include gtkwin32embed.h in EXTRA_DIST
23 unconditionally. Fixes #311972.
25 2005-07-28 Federico Mena Quintero <federico@ximian.com>
27 * perf/README: Update for the new API of the profiler.
29 * perf/gtkwidgetprofiler.[ch]: New files with a widget profiler
30 object. This is the old content of timers.[ch] turned into a nice
31 object, with signals for creation and reporting. The profiler
32 needs to maintain some state when reusing the widget, so it's
33 useful to turn it into a real object.
35 Break down timing show_all into GTK_WIDGET_PROFILER_REPORT_MAP and
36 GTK_WIDGET_PROFILER_REPORT_EXPOSE.
38 * perf/main.c: Refactor to use GtkWidgetProfiler.
40 * perf/appwindow.c (content_area_new): Make this just create a
41 notebook, instead of a complex arrangement of panes.
43 * perf/widgets.h: New header file for all the "create a widget"
46 * perf/treeview.c: New file. Moved the tree view part from
47 appwindow.c over to here; GtkTreeView really needs its own tests.
48 (tree_view_new): Set the shadow type to IN.
50 * perf/textview.c: Likewise moved over from appwindow.c, but for
52 (text_view_new): Set the shadow type to IN.
54 * perf/Makefile.am (testperf_SOURCES): Add the new source files;
55 remove appwindow.h and timers.[ch].
57 * perf/timers.[ch]: Removed.
59 * perf/appwindow.h: Removed.
61 2005-07-29 Tor Lillqvist <tml@novell.com>
63 * gdk/win32/gdkevents-win32.c: Remove ifdeffed out code relating
64 to the gdk-ping message. Use the global _gdk_display instead of
65 calling gdk_display_get_default() or gdk_drawable_get_display()
66 which would return _gdk_display anyway.
67 (append_event, apply_filters, gdk_event_translate): Drop any
68 GdkDisplay parameter as we only have one display anyway. Use
69 _gdk_display where needed.
70 (gdk_event_apply_filters): Delete, move the code into its only
71 caller, apply_filters().
72 (generate_button_event): Factor out code from two places in
73 gdk_event_translate().
74 (gdk_event_translate): Call generate_button_event() in place of
77 * gdk/win32/gdkevents-win32.c (generate_grab_broken_event): New
78 static function to generate and append the GDK_GRAB_BROKEN events.
79 (gdk_pointer_grab, gdk_keyboard_grab): Generate grab broken events
80 when overriding a grab inside the application, like in the X11
81 backend. Final bits of the fix for #107320, hopefully.
82 (print_event): Handle also GDK_SETTING, GDK_OWNER_CHANGE and
83 GDK_GRAB_BROKEN events.
84 (gdk_event_translate): Call generate_grab_broken_event() in place
87 * gdk/win32/gdkdrawable-win32.c (blit_inside_drawable): Rename
88 from blit_inside_window(), as it now does blitting inside a
89 bitmap, too. No code change, still just call BitBlt().
90 (_gdk_win32_blit): Check for source equalling destination
91 first. (#169508, #131977)
92 Do away with the superfluous local draw_impl variable, the
93 parameter to this function is already a GdkDrawableImplWin32*, no
94 need to copy and cast it.
96 2005-07-28 Robert Ögren <gtk@roboros.com>
98 Avoid spurious core pointer events when the tablet pen is lifted.
101 * gdk/win32/gdkinput-win32.c (set_ignore_core): New static function,
102 handles delayed unsetting of _gdk_input_ignore_core.
103 (_gdk_input_other_event): Call set_ignore_core instead of setting
104 _gdk_input_ignore_core directly.
106 2005-07-28 Dom Lachowicz <cinamod@hotmail.com>
108 * modules/engines/ms-windows/*: Re-sync with gtk-wimp CVS. Notable
109 changes include: menu/toolbars have a gradient applied to them; better
110 handling of menu/toolbar shadows, tracking theme settings;
111 sliders/scales now use XP theming; status bar grippies drawn properly;
112 convincing toolbar grippies are drawn for the Win2k theme; notebook
113 tabs now have that orange stripe across their top; a host of scrollbar
116 2005-07-27 Tor Lillqvist <tml@novell.com>
118 * gdk/win32/gdkmain-win32.c (_gdk_win32_psstyle_to_string): Handle
121 * gdk/win32/gdkmain-win32.c (gdk_screen_get_height_mm): Fix for
122 multi-monitor cases. (#311677, Tim Evans)
124 2005-07-26 Owen Taylor <otaylor@redhat.com>
126 * gtk/gtknotebook.c (gtk_notebook_page_allocate): Fix to be
127 monotonic in the original size (#308145, Morten Welinder)
129 2005-07-26 Elijah Newren <newren@gmail.com>
131 Revert part of patch from #166379; don't have gtk_window_present()
132 change a window's desktop, but rather leave it up to the WM.
135 * gtk/gtkwindow.c (gtk_window_present_with_time): Don't change a
138 2005-07-26 Tor Lillqvist <tml@novell.com>
140 * gtk/gtkplug-win32.c: Declare GetAncestor() and define GA_PARENT
141 if missing (MSVC6). (#311633)
143 2005-07-26 Federico Mena Quintero <federico@ximian.com>
145 * perf/: New directory with the start of a framework for testing
148 * Makefile.am (SRC_SUBDIRS): Added the perf directory.
150 * configure.in (AC_OUTPUT): Generate perf/Makefile.
152 2005-07-26 Matthias Clasen <mclasen@redhat.com>
154 * gtk/gtkfilechooserdefault.c: Fix up includes on Win32.
155 (#311630, Kazuki Iwamoto)
157 * gtk/gtkimcontextsimple.c: Add ISO_Level3_Shift to
158 the list of keysyms to ignore for composition, since
159 AltGr keys produce it in some keyboard layouts. (#307283)
162 * gtk/gtk.symbols: Remove G_GNUC_NULL_TERMINATED from
163 gtk_widget_new as well, pointed out by Kjartan Maraas.
165 2005-07-25 Matthias Clasen <mclasen@redhat.com>
167 * gtk/gtkhsv.c (paint_triangle): Pad out the full width, in
168 an attempt to work around bug #311225.
170 * gtk/gtktreemodelsort.c: Trivial doc fixes.
172 * gtk/gtktreesortable.c: Talk about comparison functions, not
173 sort functions in some places. (#311398, Fabrice Bauzac)
176 * gtk/gtkobject.[hc]:
177 * gtk/gtkfilechooserdialog.[hc]
178 * gtk/gtkdialog.[hc]: Remove the G_GNUC_NULL_TERMINATED marker
179 from a number of varargs functions where we allow to omit the
180 varargs completely. (#311465, Callum McKenzie)
182 2005-07-22 Matthias Clasen <mclasen@redhat.com>
184 * === Released 2.7.4 ===
188 * gtk/gtkmessagedialog.c (gtk_message_dialog_format_secondary_markup):
189 Point out escaping oversight. (#311260, Owen Taylor)
191 2005-07-21 Matthias Clasen <mclasen@redhat.com>
193 * gtk/gtkcombobox.c (gtk_combo_box_list_destroy): Cleanup
194 a possible resize idle. (#311141, Robert Ögren)
196 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_changed):
197 (gtk_tree_model_sort_sort_level): Ref the level while using it,
198 otherwise it may get nuked by gtk_tree_model_sort_increment_stamp.
199 (gtk_tree_model_sort_row_deleted): Don't leak the root level
200 here. (#300089, James Bramford, Markku Vire)
202 2005-07-21 Federico Mena Quintero <federico@ximian.com>
204 * gtk/gtkfilechooser.c (gtk_file_chooser_set_filename): Clarify
205 the usage of this function.
206 (gtk_file_chooser_set_uri): Likewise.
207 (gtk_file_chooser_set_current_name): Likewise.
209 * gtk/gtkfilechooserdefault.c (set_file_system_backend):
210 Instrument this function for profiling as well.
211 (gtk_file_chooser_default_init): Likewise; just to have a marker
212 of where instance initialization begins.
214 2005-07-21 Owen Taylor <otaylor@redhat.com>
216 * gtk/gtkwidget.c (update_pango_context): Fix a couple of leaks.
218 2005-07-21 Christian Rose <menthos@menthos.com>
220 * configure.in: Added "hy" to ALL_LINGUAS.
222 2005-07-21 Matthias Clasen <mclasen@redhat.com>
226 * gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Be
227 a bit more careful to not shrink the label to a negative
228 width. (#311175, Thomas Vander Stichele)
230 * gtk/gtk.symbols: mark gtk_socket_steal as deprecated.
232 * configure.in: Bump the cairo requirement.
234 2005-07-19 Owen Taylor <otaylor@redhat.com>
236 * gtk/gtksettings.c gtk/gtkwidget.c: Change machinery for
237 following font rendering xsettings to set cairo font
238 options on PangoContext
240 * gdk/x11/gdkxftdefaults.c gdk/x11/gdkevents-x11.c gdkscreen-x11.h
241 gdkprivate-x11.h: Get default values for rendering options
242 (such as antialiasing, dpi) from the Xft resources for the
243 display, borrowing a bit of code from Xft.
245 * gtk/gtksettings.c (gtk_settings_class_init): Fix docs for
246 values of gtk-xft-hintstyle.
248 2005-07-21 Tor Lillqvist <tml@novell.com>
250 Make GtkPlug/Socket cross-platform: Add Win32 implementation,
251 splice out X11 implementation to separate files. (#58541)
253 * gtk/gtk.symbols: Make GtkPlug/Socket API available with all
256 * gtk/Makefile.am: Changes to build GtkPlug/Socket with all
260 * gtk/gtkplug.c: Splice out backend-dependend parts to separate
263 * gtk/gtksocketprivate.h
264 * gtk/gtkplugprivate.h: New files. Declare the backend-specific
265 functions, and the private backend-independent functions they call
268 * gtk/gtksocket-stub.c
270 * gtk/gtksocket-x11.c
272 * gtk/gtksocket-win32.c
273 * gtk/gtkplug-win32.c
274 * gtk/gtkwin32embed.h
275 * gtk/gtkwin32embed.c: New files, containing the backend-specific
276 parts of GtkPlug/Socket.
279 * gtk/gtkxembed.c (_gtk_xembed_message_name): New function, used
280 in error messages and debugging output.
282 * gtk/gtkwindow.c (gtk_window_show): No need for ifdef, can now
283 use GTK_IS_PLUG() with all backends.
285 * tests/testsocket_common.c: Make it work on Win32, too.
287 2005-07-21 Tor Lillqvist <tml@novell.com>
289 * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Use
290 wide-char API when available. (#311079, Peter Zelezny)
292 2005-07-21 Matthias Clasen <mclasen@redhat.com>
294 * gtk/gtkwidget.c (gtk_widget_modify_bg, gtk_widget_modify_base):
295 Add hints on how to handle "no window" widgets. (#136347)
297 2005-07-20 Keith Packard <keithp@keithp.com>
299 * gdk/x11/gdkdrawable-x11.c: (gdk_x11_ref_cairo_surface):
301 Follow change in cairo API to add Screen* to
302 cairo_xlib_create_surface_for_bitmap
304 2005-07-20 Matthias Clasen <mclasen@redhat.com>
306 * gtk/gtkicontheme.c (load_svg_at_size): Explicitly use the
307 svg loader, if available. This should help with the fact that
308 svg is not reliably sniffable with the current gdk-pixbuf sniffing
311 * gtk/gtkstyle.c (gtk_default_draw_expander): Make sure expanded
312 expanders are not fuzzy. (#310172, reported by Alexander Larsson,
313 patch by Owen Taylor)
315 * gtk/gtkdnd.c (gtk_drag_begin_internal): Don't fail if we
316 can't get a keyboard grab. (#168351)
318 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_[sg]et_property):
319 Add GTK_FILE_CHOOSER_PROP_DO_OVERWRITE_CONFIRMATION.
321 2005-07-19 Federico Mena Quintero <federico@ximian.com>
323 * gtk/gtkfilechooserdefault.c: Added a few utility functions for
324 profiling; instrument the code, make it conditional.
326 2005-07-19 Kristian Rietveld <kris@gtk.org>
328 * gtk/gtkentry.c (gtk_entry_move_forward_word): don't iterate
329 past the end of the string, so pango_layout_get_cursor_pos() won't
330 complain. (#309211, Tommi Komulainen).
332 2005-07-19 Tor Lillqvist <tml@novell.com>
334 * gtk/gtkmain.c (check_sizeof_GtkWindow, check_sizeof_GtkBox):
335 Don't bother mentioning the -fnative-struct (used by GCC 2) switch
336 in the error message any longer.
338 2005-07-18 Matthias Clasen <mclasen@redhat.com>
340 * gdk/gdkpixbuf-render.c: Small formatting fixes in doc comments.
342 * gtk/gtkcombobox.c (gtk_combo_box_model_row_deleted)
343 (gtk_combo_box_model_row_inserted): Remove useless calls
344 to gtk_tree_row_reference_inserted/deleted, since we
345 don't use manual row references here.
347 * gtk/gtkmain.c (gtk_parse_args, gtk_init_with_args): Call
348 gettext_initialization before checking gtk_initialized, otherwise
349 there are scenarios where it is not called at all. For an
350 example, see tests/testfilechooserbutton.c. (#310323,
353 2005-07-18 Tor Lillqvist <tml@novell.com>
355 * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get): Be sure to remove
356 any possible leftover clipping region in the DC if we don't want
357 any clipping. Thanks to Robert Ögren. (#309823)
359 * configure.in (GDK_EXTRA_LIBS): [Win32] Bypass libtool, use
360 -Wl,-luuid. This avoids a libtool warning as libuuid is static.
362 2005-07-18 Matthias Clasen <mclasen@redhat.com>
364 * gtk/gtkcombobox.c (gtk_combo_box_set_focus_on_click): Propagate
365 the focus-on-click value to the button. (#310543, Christian Persch)
367 * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a note
368 about the need to handle expose events. We really need a chapter
369 on the GTK+ drawing model that we can refer to here... (#310765,
372 2005-07-16 Tor Lillqvist <tml@novell.com>
374 * configure.in (GDK_EXTRA_LIBS): [Win32] Put -luuid back, it is
375 needed in case one builds without the ie55 stuff. (#310582)
377 2005-07-15 Matthias Clasen <mclasen@redhat.com>
379 * configure.in: Bump version
381 * === Released 2.7.3 ===
383 * gdk/gdkdraw.c (gdk_draw_drawable): Add better docs.
384 (#310192, Owen Taylor)
386 2005-07-15 Matthias Clasen <mclasen@redhat.com>
390 * gtk/gtkentry.c (gtk_entry_move_forward_word):
391 (gtk_entry_move_backward_word): Don't treat whitespace as
392 words for keynav, pointed out by Owen Taylor.
394 2005-07-15 Federico Mena Quintero <federico@ximian.com>
396 * gtk/gtkfilechooserdefault.c
397 (should_respond_after_confirm_overwrite): Take the parent folder
398 path instead of the display name, to avoid doing duplicated work
399 in gtk_file_chooser_default_should_respond().
401 2005-07-15 Federico Mena Quintero <federico@ximian.com>
403 * gtk/gtkfilechooserdefault.c
404 (confirm_dialog_should_accept_filename): Take the display name of
405 the folder as well so that we can present a better message. Use a
406 stock cancel button, "_Replace", and GTK_STOCK_SAVE_AS.
407 (gtk_file_chooser_default_should_respond): Pass the file part and
408 folder display name directly to the function above. Oops, only do
409 the confirmation dialog if the file exists.
411 2005-07-15 Federico Mena Quintero <federico@ximian.com>
413 * gtk/gtkfilechooserdefault.c
414 (confirm_dialog_should_accept_filename): Use header capitalization
415 for the buttons, per the HIG.
417 * gtk/gtk.symbols: Add the new functions.
419 * tests/testfilechooser.c (confirm_overwrite_cb): Add a test for
420 the confirm-overwrite signal.
422 * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Remove the
423 stub documentation for the "confirm-overwrite" signal.
424 (gtk_file_chooser_set_do_overwrite_confirmation): Add "Since: 2.8"
426 (gtk_file_chooser_get_do_overwrite_confirmation): Likewise.
428 2005-07-14 Federico Mena Quintero <federico@ximian.com>
430 Add overwrite confirmation for SAVE mode. Fixes bug #152850:
432 * gtk/gtkfilechooser.h: Add prototypes for
433 gtk_file_chooser_set/get_do_overwrite_confirmation().
434 (GtkFileChooserConfirmation): New enum for the result of the
435 "confirm-overwrite" signal.
437 * gtk/gtkmarshalers.list: Add ENUM:VOID.
439 * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Add a
440 "do-overwrite-confirmation" boolean property.
441 (gtk_file_chooser_set_do_overwrite_confirmation): Implement.
442 (gtk_file_chooser_get_do_overwrite_confirmation): Implement.
443 (confirm_overwrite_accumulator): New accumulator for the signal.
445 * gtk/gtkfilechooserutils.h (GtkFileChooserProp): Add
446 GTK_FILE_CHOOSER_PROP_DO_OVERWRITE_CONFIRMATION.
448 * gtk/gtkfilechooserutils.c
449 (_gtk_file_chooser_install_properties): Override the
450 do-overwrite-confirmation property.
452 * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserIface): Add a
453 confirm_overwrite signal to the vtable.
455 * gtk/gtkfilechooserdefault.c
456 (gtk_file_chooser_default_set_property): Handle the new property.
457 (gtk_file_chooser_default_get_property): Likewise.
458 (get_selected_file_info_from_file_list): New helper function; code
459 taken from list_selection_changed().
460 (list_selection_changed): Use get_selected_file_info_from_file_list().
461 (should_respond_after_confirm_overwrite): New function.
462 (gtk_file_chooser_default_should_respond): Confirm when necessary.
464 2005-07-14 Matthias Clasen <mclasen@redhat.com>
466 * gtk/gtk.symbols: Add new exported symbols.
468 2005-07-14 Tor Lillqvist <tml@novell.com>
470 * gtk/gtkfilesystemwin32.c (filename_get_info): Implement getting
471 the MIME type of a file. Look it up in the Registry. Bug reported
474 2005-07-14 Tor Lillqvist <tml@novell.com>
476 * configure.in (GDK_EXTRA_LIBS): Don't need -luuid on Win32. It
477 was some leftover, and in fact occasionally caused issues with
478 libtool as it made its way into the libgdk-win32-2.0.la file and
479 that way into the .la files of all libraries that depend on
480 GDK. (This happened only when building from CVS and not using a
481 full "make install" which would run the sanitize-la.sh script.)
483 2005-07-14 Matthias Clasen <mclasen@redhat.com>
485 * gdk/x11/gdkevents-x11.c (set_screen_from_root): Don't assert if
486 the xrootwin is invalid. (#309997, Barbie LeVille)
487 (gdk_event_translate): Ignore events with an invalid root field.
489 * configure.in: Set interface age to 0.
491 * gtk/gtkimmodule.h: Move G_BEGIN_DECLS to the right spot, noticed
494 2005-07-14 Kristian Rietveld <kris@gtk.org>
496 * gtk/gtktreeviewcolumn.[ch] (gtk_tree_view_column_queue_resize): new
497 function (fixes #169961, reported by Morten Welinder).
499 2005-07-14 Kristian Rietveld <kris@gtk.org>
501 * gtk/gtktreeview.[ch] (gtk_tree_view_get_visible_range): new
502 function. (fixes #105252, suggestion from Mikael Hallendal).
504 2005-07-13 Manish Singh <yosh@gimp.org>
506 * demos/gtk-demo/iconview_edit.c: remove unused variable.
508 2005-07-13 Kristian Rietveld <kris@gtk.org>
510 * gtk/gtktreemodel.[ch] (gtk_tree_row_reference_get_model): new
511 function. (#160879, Stefan Kost).
513 2005-07-13 Kristian Rietveld <kris@gtk.org>
515 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): paint a flat box
516 on the area the treeview got allocated extra vertically (fixes
517 #142063, reported by Brian Bober).
519 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
520 make this function calculate real_cell_area and real_background_area
521 correctly. (fixes #309249, reported by Bernd Demian).
523 2005-07-13 Matthias Clasen <mclasen@redhat.com>
525 * gtk/gtkcalendar.c (calendar_realize_arrows): Fix an
526 unintentional case of width-for-height... (#310133, Luis Villa)
528 2005-07-13 Kristian Rietveld <kris@gtk.org>
530 * gtk/gtktreeview.c (gtk_tree_view_new_column_width): let's take
531 the MIN of width and max_width here, not width and max_width != -1.
532 (fixes #144480, reported by Mikael Magnusson).
534 2005-07-13 Matthias Clasen <mclasen@redhat.com>
536 * gtk/gtkicontheme.c (load_themes): Don't keep the caches
537 for unthemed directories in a separate list, instead append
538 them at the end of the dir_mtimes list, so that we can check
539 them for staleness like the other caches. (#310221, Mark
542 * configure.in: Check that we have a new enough Cairo.
544 2005-07-13 Robert Ögren <gtk@roboros.com>
546 Fix handling of Aiptek and Aiptek-like graphical tablets such as Trust
547 on Windows. (#167004, thanks to "pnohant" for testing)
549 Code cleanup: Remove the unused and unmaintained code for using a
550 non-system tablet context (USE_SYSCONTEXT ifdef:s), suggested
553 * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Handle
554 tablet drivers that don't support WTI_DDCTXS/WTI_DSCTXS gracefully.
555 Sligthly reorganize and simplify the code to support this.
556 (_gdk_input_wintab_init_check, _gdk_input_other_event): Remove
557 USE_SYSCONTEXT ifdef:s and the code for the case it was not defined.
558 (gdk_input_window_find_within): Removed.
560 2005-07-13 Matthias Clasen <mclasen@redhat.com>
562 * gdk/win32/bdfcursor.c: Add Copyright/License information.
564 2005-07-13 Kristian Rietveld <kris@gtk.org>
566 * gtk/gtktreeview.c (validate_row): when !separator, don't add
567 the focus_line_width to width/height (happens in
568 _column_cell_get_size), but do add the vertical-separator to height,
569 we weren't taking this into account before.
571 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
572 take vertical-separator into account. (#309137, Ross Burton).
574 2005-07-13 Matthias Clasen <mclasen@redhat.com>
576 * tests/treestoretest.c:
577 * tests/testxinerama.c:
578 * tests/testtreeview.c:
579 * tests/testtreefocus.c:
580 * tests/testtreeflow.c:
581 * tests/testtreeedit.c:
582 * tests/testtreecolumns.c:
584 * tests/testtextbuffer.c:
585 * tests/testspinbutton.c:
586 * tests/testsocket_common.c:
587 * tests/testsocket_child.c:
588 * tests/testsocket.c:
589 * tests/testmultiscreen.c:
590 * tests/testmultidisplay.c:
593 * tests/testmenubars.c:
594 * tests/testicontheme.c:
595 * tests/testfilechooser.c:
596 * tests/testentrycompletion.c:
598 * tests/testcombochange.c:
599 * tests/testactions.c:
603 * gtk/gtktexttypes.h:
604 * gtk/gtktexttypes.c:
605 * gtk/gtktexttagprivate.h:
606 * gtk/gtktextsegment.h:
607 * gtk/gtktextiterprivate.h:
608 * gtk/gtktextchildprivate.h:
609 * gtk/gtktextbtree.h: Add Copyright/License information.
611 * gtk/gtkicontheme.c (gtk_icon_theme_get_default)
612 (gtk_icon_theme_get_for_screen): Add a warning about
613 unreffing icon themes. (#310163, Rodney Dawes)
615 2005-07-13 Kristian Rietveld <kris@gtk.org>
617 * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): quit
618 maintaining the iter on every iteration, only get the iter when
619 we are about to call the foreach_func. Gives us a 10x speedup,
620 since maintaining iters is a lot more expensive than maintaining
621 paths. We lose a bit of sanity checking though. Thanks go to
622 Billy Biggs for pointing this out.
624 2005-07-12 Matthias Clasen <mclasen@redhat.com>
626 * tests/testcairo.c (draw): Fix the same confusion here, too.
628 * gdk/gdkgc.c (make_stipple_tile_surface): Fix
629 cairo_content_t <-> cairo_format_t confusion. (#310086,
630 Carlos Garnacho Parro)
632 * gtk/gtkfilesystemunix.c
633 (gtk_file_system_unix_volume_get_display_name): Follow
634 the Nautilus change and rename "Filesystem" to "File System",
635 string change. (#310047, Vincent Noel)
637 2005-07-12 Matthias Clasen <mclasen@redhat.com>
639 * demos/gtk-demo/iconview.c: Rename this demo.
641 * demos/gtk-demo/iconview_edit.c: Add a demo for icon view
642 editing and drag-and-drop.
644 * demos/gtk-demo/geninclude.pl.in: Accept dashes in demo titles.
646 2005-07-12 Matthias Clasen <mclasen@redhat.com>
648 * gtk/theme-bits/decompose-bits.c:
649 * gtk/gtkfilechooserembed.c:
650 * gtk/gtktextmarkprivate.h:
651 * gtk/gtktexttagtable.h:
652 * gtk/gtktexttagtable.c:
653 * gtk/gtkrc.key.emacs: Add Copyright/License information.
655 * gdk/linux-fb/gdkrender-fb.c:
656 * gdk/linux-fb/gdkpango-fb.c:
657 * gdk/linux-fb/gdkdrawable-fb2.c:
658 * gdk/linux-fb/gdkgc-fb.c:
659 * gdk/linux-fb/gdkfbswitch.c: Add Copyright/License information.
663 * gdk/gdkselection.h:
664 * gdk/gdkselection.c:
678 * gdk/gdkcolor.h: Add Copyright/License information.
680 2005-07-11 Matthias Clasen <mclasen@redhat.com>
682 * modules/input/imm-extra.h: Add Copyright/License information.
684 2005-07-11 Matthias Clasen <mclasen@redhat.com>
686 * gtk/gtktexttag.c (gtk_text_tag_class_init)
687 (gtk_text_tag_set_property): Remove the runtime warning about
688 the invisible property, add a warning about possible remaining
689 problems to the documentation of the property. (#66194)
691 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Don't
692 ever go unconditionally to the buffer ends; that doesn't work
693 if the initial or final portion of the buffer are invisible.
695 2005-07-11 Kristian Rietveld <kris@gtk.org>
697 * gtk/gtktreeview.c (gtk_tree_view_class_init): add binding entry
698 for ctrl + backspace (move focus to parent without affecting
700 (gtk_tree_view_real_select_cursor_parent): implement ctrl+backspace
701 and simplify the function a bit. (#309296, Kathy Fernandes).
703 2005-07-11 Matthias Clasen <mclasen@redhat.com>
705 Make gtk_window_present() move the window to the current
706 desktop, instead of letting the WM change the current
707 desktop to where the window is. (#166379, Elijah Newren)
711 * gdk/x11/gdkwindow-x11.c (gdk_x11_window_move_to_current_desktop):
712 New function to move a window to the current desktop.
714 * gtk/gtkwindow.c (gtk_window_present_with_time): Move the
715 window to the current desktop before giving it focus.
717 2005-07-11 Matthias Clasen <mclasen@redhat.com>
719 When dragging text, use a drag icon showing the (ellipsized)
720 text that is being dragged: (#161132, Kevin Duffus, patch
721 by Carlos Garnacho Parro)
724 * gtk/gtktextutil.c (_gtk_text_util_create_drag_icon): Add
725 a function to create a pixmap for use when dragging text.
727 * gtk/gtktextview.c (gtk_text_view_start_selection_dnd):
728 * gtk/gtklabel.c (gtk_label_motion):
729 * gtk/gtkentry.c (gtk_entry_motion_notify): Use a drag icon
730 showing the text being dragged.
732 2005-07-11 Matthias Clasen <mclasen@redhat.com>
734 * gtk/gtkentry.c (gtk_entry_move_forward_word)
735 (gtk_entry_move_backward_word): Match the text view change
736 to allow selecting whitespace with double-click.
738 * gtk/gtktextview.c (extend_selection): Make double-clicking
739 between words select whitespace. (#309860, Mike Miller, patch
742 * gtk/gtkiconview.c: Documentation improvements. (#309946,
745 2005-07-10 Kristian Rietveld <kris@gtk.org>
747 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): remove
748 unneeded check for negative window_y.
750 2005-07-10 Kristian Rietveld <kris@gtk.org>
752 * gtk/gtktreeview.c (gtk_tree_view_search_key_press_event): also move
753 to the next match when ctrl+g is pressed. (#156657, Matt T. Proud).
755 2005-07-10 Kristian Rietveld <kris@gtk.org>
757 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): rework
758 function to make page up/down behave the same as in GtkTextView.
759 (Fixes #101220, Owen Taylor).
761 2005-07-09 Kristian Rietveld <kris@gtk.org>
763 Fix #305737, patch from Tomislav Jonjic. This makes the
764 gtk_tree_store_insert* family of functions emit row_has_child_toggled
765 when needed (they didn't do that before).
767 * gtk/gtktreestore.c (gtk_tree_store_insert): emit
768 row_has_child_toggled when needed,
769 (gtk_tree_store_insert_before): fix a possible memleak,
770 emit row_has_child_toggled when needed,
771 (gtk_tree_store_insert_after): ditto.
773 2005-07-09 Kristian Rietveld <kris@gtk.org>
775 * gtk/gtktreeview.c (gtk_tree_view_real_expand_row): when
776 open_all is TRUE, traverse the newly built tree to emit
777 row_expanded for the subitems. (rev 1.444, patch in #172319
778 broke this). Fixes #305582, reported by Billy Biggs.
780 2005-07-09 Tor Lillqvist <tml@novell.com>
782 * configure.in: Look for windres on Win32. Drop build/* from
785 * Makefile.am: Drop build from SUBDIRS.
787 * gdk/win32/rc/Makefile.am
789 * gtk/Makefile.am: Don't use the scripts in build/win32 to compile
790 the rc files into resource object files. (This means we lose the
791 build number increment magic, but I doubt it was that useful
792 anyway.) Instead use windres directly. To pass a normal .o file
793 produced by windres through libtool, which would want a .lo file,
794 pass it directly to the linker using a -Wl option.
796 * gdk/win32/rc/gdk.rc.in
797 * gtk/gtk-win32.rc.in: Replace BUILDNUMBER with 0.
799 2005-07-08 Kristian Rietveld <kris@gtk.org>
801 Fixes #165034, reported by Jorn Baayen.
803 * gtk/gtkrbtree.[ch] (_gtk_rbtree_set_fixed_height): add a
804 mark_valid parameter (so we can mark all nodes as valid when we
805 are setting them to the fixed height).
807 * gtk/gtktreeview.c (initialized_fixed_height_mode): mark all
808 nodes as valid when setting the fixed height,
809 (do_validate_rows): update call to _set_fixed_height,
810 (gtk_tree_view_row_inserted): mark node as valid when fixed
811 height mode is enabled and a height has been set,
812 (gtk_tree_view_build_tree): if fixed height mode is enabled,
813 mark new nodes as valid in addition to setting the height.
815 2005-07-08 Matthias Clasen <mclasen@redhat.com>
817 * configure.in: Bump version
819 * === Released 2.7.2 ===
823 * gtk/gtkcelllayout.c (gtk_cell_layout_pack_start):
824 (gtk_cell_layout_pack_end): Add a note about reusing cell
827 * gtk/gtkdnd.c (gtk_drag_update_cursor): Pass a GdkDragAction to
828 gtk_drag_get_cursor. (#309784, Sebastian Bacher)
830 2005-07-08 Tor Lillqvist <tml@novell.com>
832 * gtk/gtkfilesel.c: Use g_get_host_name().
834 2005-07-07 Matthias Clasen <mclasen@redhat.com>
836 * configure.in: Add -DHPPEX -DSHMLINK to CFLAGS for HP-UX.
837 (#162979, Paul Cornett)
839 * gtk/gtkhscale.c (gtk_hscale_new_with_range):
840 (gtk_vscale_new_with_range): Add some additional docs on
841 precision here too. (#309238, Steve Chaplin)
843 * gdk/x11/gdkmain-x11.c (generate_grab_broken_event): Don't
844 generate events on destroyed windows.
846 Implement Drag-and-Drop to the file list. (#145121, Sven Neumann)
848 * gtk/gtkfilechooserdefault.c (file_list_drag_data_received_cb)
849 (file_list_drag_drop_cb, file_list_drag_motion_cb): New functions
850 to handle drag-and-drop on the file list.
851 (create_file_list): Set up drag-and-drop handlers on the file list.
853 2005-07-07 Matthias Clasen <mclasen@redhat.com>
855 Fix #157787, reported by Jonathan Blandford:
857 * gtk/gtkfilechooserdefault.c
858 (gtk_file_chooser_default_set_current_folder): Don't leave a
859 "trail" behind when set_current_folder is called explicitly.
860 (gtk_file_chooser_default_update_current_folder): New function
861 that is called to update the current folder in response to
864 * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Add a boolean
865 keep_trail argument, and don't leave a "trail" behind unless
868 2005-07-06 Manish Singh <yosh@gimp.org>
870 * demos/gtk-demo/menus.c: change_orientation() should return void,
871 remove unused variable in do_menus().
873 2005-07-06 Tor Lillqvist <tml@novell.com>
875 * gdk/win32/gdkcursor-win32.c
876 (gdk_win32_icon_to_pixbuf_libgtk_only): Don't create the GdkPixbuf
877 until we know that we have something to put in it.
879 2005-07-05 Matthias Clasen <mclasen@redhat.com>
881 * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range): Add some
882 additional docs on precision. (#309238, Steve Chaplin)
884 * modules/input/imime.c: Fix includes. (#309462, Kazuki IWAMOTO)
886 2005-07-05 Matthias Clasen <mclasen@redhat.com>
888 * doc/tools/widgets.c: Actually generate a file-button
891 2005-07-06 Tor Lillqvist <tml@novell.com>
893 * gdk/win32/gdkcursor-win32.c: Add comment about the current named
894 cursor implementation, and what it maybe really should do.
895 (gdk_win32_icon_to_pixbuf_libgtk_only): New function, code moved
896 here from gtk/gtkfilesystemwin32.c:extract_icon().
897 (gdk_cursor_get_image): Use
898 gdk_win32_icon_to_pixbuf_libgtk_only().
901 * gdk/win32/gdkwin32.h: Declare gdk_win32_icon_to_pixbuf_libgtk_only().
903 * gtk/gtkfilesystemwin32.c (extract_icon): Use
904 gdk_win32_icon_to_pixbuf_libgtk_only().
906 2005-07-05 Matthias Clasen <mclasen@redhat.com>
908 * gtk/gtkmenu.c (gtk_menu_grab_notify): Take window
909 groups into account. (#309473, Diego Gonzalez)
911 * gtk/gtkwindow.[hc]: Add a non-exported function to
912 get the grab widget of a window group.
914 2005-07-05 Kristian Rietveld <kris@gtk.org>
916 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): in the
917 'main' expose loop, add back the calls to _set_cell_data
918 removed earlier. (#309221, Matthias Clasen).
920 2005-07-05 Matthias Clasen <mclasen@redhat.com>
922 * demos/gtk-demo/menus.c: Demonstrate vertical menubars.
925 * gtk/gtkaboutdialog.[hc]: Add a wrap-license property
926 with getter and setter. (#165012, Christian Rose,
927 based on a patch by Christian Persch)
929 2005-07-05 Matthias Clasen <mclasen@redhat.com>
931 * gdk/Makefile.am: Distribute the keyname-table.h header
932 and the files that are used to construct it. (#309421,
935 2005-07-04 Matthias Clasen <mclasen@redhat.com>
937 * gtk/gtkmenubar.c (gtk_menu_bar_set_pack_direction)
938 (gtk_menu_bar_set_child_pack_direction): Queue a resize
939 on the contained menuitems as well.
941 * demos/gtk-demo/appwindow.c: Break some overlong lines.
943 2005-07-03 Hans Breuer <hans@breuer.org>
945 * **/makefile.msc[.in] : updated
946 * gtk/gtkiconcache.c : <io.h> for open()
947 * gtk/gtkstyle.c : use G_PI instead of M_PI
949 * gdk/win32/gdkcursor-win32.c : implement gdk_cursor_new_from_name()
950 by mapping the lower case win32 api name to the respective cursor.
951 E.g. pass "wait" to get the IDC_WAIT cursor. Also allows to load
952 cursors from named resources in the executable.
953 (gdk_cursor_get_image) : just return NULL for now.
955 * gdk/win32/gdkgeometry-win32.c : implement gdk_window_move_region()
956 by delegation to ScollWindowEx(), untested.
958 * gdk/win32/gdkwindow-win32.c : stub for gdk_window_set_urgency_hint()
960 2005-07-03 Matthias Clasen <mclasen@redhat.com>
962 * gtk/gtkimagemenuitem.c: Hmm, when committing my vertical
963 menubar patch, I forgot the GtkImageMenuItem changes. And I
964 managed to do 2 releases without noticing that...
966 * gtk/gtksettings.c (gtk_settings_class_init): Correct the
967 blurb for the icon-sizes setting. String change.
968 (#309355, Benjamin Berg)
970 2005-07-01 Matthias Clasen <mclasen@redhat.com>
972 * configure.in: Bump version.
974 * === Released 2.7.1 ===
978 2005-07-01 Matthias Clasen <mclasen@redhat.com>
980 * gtk/gtkfilesel.c (cmpl_init_state): Prevent an infinite
981 loop when G_FILENAME_ENCODING is invalid. (#309280, Padraig Brady)
983 Thu Jun 30 14:17:24 2005 Manish Singh <yosh@gimp.org>
985 * gdk/x11/gdkprivate-x11.h: declare _gdk_xgrab_check_button_event.
987 * gtk/gtkbutton.c: fix signature of gtk_button_grab_broken.
989 2005-06-30 Matthias Clasen <mclasen@redhat.com>
991 * gdk/x11/gdkvisual-x11.c (gdk_visual_decompose_mask): Avoid
992 infinite loop if a mask is zero. (#309222, David Saxton)
994 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_fetch_child):
995 Clarify the code, gcc 4 complains about predecrement in MAX().
997 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize): Don't
998 prematurely unregister callbacks.
1002 2005-06-29 Matthias Clasen <mclasen@redhat.com>
1004 * gtk/gtkbutton.c (gtk_button_grab_broken): Handle broken
1007 * gtk/gtkrange.c (gtk_range_grab_broken): Handle broken
1010 * gdk/gdkevents.h: Add a boolean to specify wether the broken
1013 * gdk/x11/gdkdisplay-x11.c (gdk_display_pointer_is_grabbed):
1014 As the documentation states, don't return TRUE for
1017 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
1018 a boolean field to store wether a pointer grab is implicit.
1020 * gdk/x11/gdkmain-x11.c (_gdk_xgrab_check_button_event):
1021 Track implicit grabs.
1023 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Call
1024 _gdk_xgrab_check_button_event for button events.
1026 2005-06-28 Matthias Clasen <mclasen@redhat.com>
1028 * gtk/gtkiconview.c (gtk_icon_view_calculate_item_size2):
1029 Make sure that cell boxes are always completely inside
1032 2005-06-27 Matthias Clasen <mclasen@redhat.com>
1034 * demos/gtk-demo/main.c (create_tree): Make the list of
1037 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end):
1038 Fix positioning at the end of the line for lines ending
1039 in invisible characters.
1040 (gtk_text_layout_get_line_display): Set display->layout
1041 to a PangoLayout, even for totally invisible lines.
1043 * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Ignore
1044 GrabBroken events which are caused by overgrabbing inside
1045 the application; menus rely on these for their operation.
1047 * gdk/gdkevents.h (struct _GdkEventGrabBroken): Add a
1050 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Set
1051 grab_window to NULL when generating GrabBroken events for
1052 WM_KILLFOCUS messages.
1054 * gdk/x11/gdkmain-x11.c (_gdk_xgrab_check_unmap)
1055 (_gdk_xgrab_check_destroy): Set grab_window to NULL when
1056 generating GrabBroken events when the grab window becomes
1057 unviewable or is destroyed.
1059 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab, gdk_keyboard_grab):
1060 Generate GrabBroken events when overriding a grab inside
1061 the application. In this case, set grab_window to the new
1064 2005-06-27 Matthias Clasen <mclasen@redhat.com>
1066 * gtk/gtkbutton.c (gtk_real_button_activate): Continue
1067 to activate even if we can't grab the keyboard.
1068 (gtk_button_finish_activate): Only ungrab when we have
1069 a keyboard grab. (#172998, William Jon McCann)
1071 2005-06-27 Matthias Clasen <mclasen@redhat.com>
1073 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
1074 Avoid a segfault. (#309054)
1076 2005-06-27 Matthias Clasen <mclasen@redhat.com>
1078 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
1079 fields for grab timestamps.
1081 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab, gdk_keyboard_grab):
1082 Store grab timestamps when grabbing.
1084 * gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard_ungrab)
1085 (gdk_display_pointer_ungrab): Don't unset the grab_window
1086 if the timestamps indicate that the ungrab will fails.
1088 * gtk/gtkmenu.c (gtk_menu_grab_notify): Cancel menus when
1089 they are grab-shadowed by something thats not a
1090 submenu. (#145416, Euan MacGregor)
1092 2005-06-27 Owen Taylor <otaylor@redhat.com>
1094 * gtk/gtk[hv]ruler.c (gtk_[hv]ruler_draw_ticks):
1097 2005-06-27 Kjartan Maraas <kmaraas@gnome.org>
1099 * gtk/gtkhruler.c: (gtk_hruler_draw_ticks): Fix leaks
1100 * gtk/gtkvruler.c: (gtk_vruler_draw_ticks): Same
1103 2005-06-27 Matthias Clasen <mclasen@redhat.com>
1105 * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Use
1108 * configure.in: Require GLib 2.7.1
1110 2005-06-26 Matthias Clasen <mclasen@redhat.com>
1112 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
1113 Unregister XIM callbacks here. (#309054)
1115 * modules/input/gtkimcontextxim.h: Small cleanup.
1117 * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
1118 scroll offset when drawing the box. (#308834, Tom von
1121 2005-06-26 Tor Lillqvist <tml@novell.com>
1124 * gtk/Makefile.am: Current GNU tools do understand the PRIVATE
1125 keyword, so no need to remove those entries from the import
1126 library. libtool installs the .dll.a import library itself, so no
1127 need to do it here. Install the .def file.
1129 Sun Jun 26 00:04:36 2005 Manish Singh <yosh@gimp.org>
1131 * gdk/gdkevents.c (gdk_event_get_time, gdk_event_get_state): add
1132 GDK_GRAB_BROKEN to the switch cases.
1134 * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): remove unused
1137 * gtk/gtkpaned.c (gtk_paned_grab_broken): return TRUE.
1139 2005-06-26 Matthias Clasen <mclasen@redhat.com>
1141 * gtk/gtktreeview.c (gtk_tree_view_grab_broken): Stop column
1142 header drag operations if the grab is broken.
1144 * gtk/gtkhsv.c (gtk_hsv_grab_broken): Stop the drag if
1147 * gtk/gtkcombobox.c (gtk_combo_box_popdown): Don't do
1148 explicitly ungrab pointer and keyboard. We're unmapping
1149 the grab window anyway.
1150 (gtk_combo_box_popup): Handle grab failures.
1152 2005-06-25 Matthias Clasen <mclasen@redhat.com>
1154 * gdk/x11/gdkmain-x11.c (gdk_keyboard_grab, gdk_pointer_grab):
1155 Don't emit grab-broken for overgrabbing, until we figure
1156 out how to do that without breaking the menu code.
1158 2005-06-25 Matthias Clasen <mclasen@redhat.com>
1160 Add a GrabBroken event to GDK, and a grab-broken-event
1161 signal to GtkWidget. (#107320, Simon Cooke, initial patch
1164 * gdk/gdkevents.h: Add a GDK_GRAB_BROKEN event type,
1165 define a GdkEventGrabBroken event struct.
1167 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
1168 Generate GrabBroken events in response to WM_KILLFOCUS.
1170 * gdk/x11/gdkmain-x11.c: Generate GrabBroken events
1171 when a grab is broken by the window becoming unviewable,
1172 or by another grab from the same client.
1174 * gtk/gtkwidget.h (GtkWidgetClass): Add grab_broken_event.
1176 * gtk/gtkwidget.c (gtk_widget_event_internal): Translate
1177 GrabBroken events into grab_broken_event signals.
1179 * gtk/gtkmain.c (gtk_main_do_event): Propagate GrabBroken
1182 * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Deactivate
1183 the menu when the grab is broken.
1185 * gtk/gtkcolorsel.c (gtk_color_selection_grab_broken): Stop
1186 the color picker if the grab is broken.
1188 * gtk/gtkpaned.c (gtk_paned_grab_broken): Stop the drag if
1191 2005-06-25 Matthias Clasen <mclasen@redhat.com>
1193 Add some new stock items. (#166480, Kristof Vansant)
1195 * gtk/stock-icons/stock_fullscreen_16.png:
1196 * gtk/stock-icons/stock_fullscreen_24.png:
1197 * gtk/stock-icons/stock_leave_fullscreen_16.png:
1198 * gtk/stock-icons/stock_leave_fullscreen_24.png:
1199 * gtk/stock-icons/stock_info_16.png:
1200 * gtk/stock-icons/stock_info_24.png: New icons.
1202 * gtk/stock-icons/Makefile.am: Add new icons.
1204 * gtk/gtkstock.h: Define names for the new icons.
1206 * gtk/gtkstock.c (builtin_items): Register new stock items.
1208 * gtk/gtkiconfactory.c (get_default_icons): Register new
1211 2005-06-24 Owen Taylor <otaylor@redhat.com>
1213 * gdk/gdkrgb.c (gdk_rgb_select_conv): Fix up selection of
1214 conversion functions for MSB machines: convert_0888[_br]
1215 now work on bytes so are endian independent.
1216 (Reported by David Zeuthen)
1218 2005-06-24 Matthias Clasen <mclasen@redhat.com>
1220 * gtk/gtktextview.c (gtk_text_view_scroll_hpages): Don't
1221 jump to the next line if we are at the end of the line.
1222 (gtk_text_view_move_cursor_internal): Make movement by
1223 paragraphs up/down symmetric. (#307055, Behnam Esfahbod)
1225 2005-06-23 Tor Lillqvist <tml@novell.com>
1227 Improve and simplify line segment rendering on Win32, especially
1228 the implementation of GDK_CAP_NOT_LAST, and dashed lines. Fixes
1229 bugs #306396 and #308413.
1231 * gdk/win32/gdkprivate-win32.h (GdkGCWin32): Save the GdkGC's
1232 line_style, cap_style and join_style as such in the
1233 GdkGCWin32. Don't need to keep the pen_double_dash flag, we can
1234 check the line_style.
1236 * gdk/win32/gdkgc-win32.c (fixup_pen): New internal function. Sets
1237 up the GDI pen type, style, end cap and join attributes to use
1238 based on the pen width, GDK line style, end cap style, and join
1241 For a narrow (zero-width) GDK pen with the GDK_CAP_NOT_LAST end
1242 cap style, which typically are used for XOR drawing where it is
1243 essential that the last pixel is not drawn, use a GDI cosmetic
1244 pen. Only for a cosmetic pen does GDI not draw the last pixel. I
1245 deduced this by experimetation, the documentation is rather vague.
1247 For other GDK pens use a geometric GDI pen. If the width is 0 or 1
1248 and the GDK end cap style is GDK_CAP_BUTT, and the line style is
1249 GDK_LINE_SOLID, use PS_ENDCAP_ROUND. This ensures that also
1250 single-pixel length lines are drawn. (For sngle-pixel width lines
1251 roundness as such is of course irrelevant.) For dashed lines, use
1254 For wide lines use PS_ENDCAP_FLAT, _ROUND or _SQUARE,
1255 respectively, for GDK_CAP_BUTT, GDK_CAP_ROUND and GDK_CAP_PROJECTING.
1257 For one pixel on-off dashed lines, use PS_ALTERNATE, it seems to
1258 work better than PS_USERSTYLE. For other dashed lines, use
1259 PS_USERSTYLE and the dashes as set by the user (or the default
1260 four-pixel on-off style).
1262 (gdk_win32_gc_values_to_win32values, gdk_win32_gc_set_dashes):
1263 Call fixup_pen() to do the pen settings after modifying some of
1264 the GDK GC attributes that affect pens.
1266 * gdk/win32/gdkdrawable-win32.c (render_line_horizontal,
1267 render_line_vertical, draw_segments): Check GdkGCWin32::line_style
1268 instead of the the removed pen_double_dash member. Don't use
1269 PATCOPY unconditionally in the PatBlt() call, use a raster op
1270 code that depends on the GC function in use.
1272 (draw_rectangle, draw_segments, draw_lines): Be more careful in
1273 deciding when to do the manual dash rendering.
1275 (draw_segments): Don't do any manual "last point" drawing at
1276 all. The above changes takes care of narrow line segments being
1277 drawn correctly in most cases, at least on NT-based Windows.
1279 2005-06-23 Matthias Clasen <mclasen@redhat.com>
1281 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder):
1282 Fix an error in the cache timeout logic. (#166601, Morten
1285 * gtk/gtktreeview.c (gtk_tree_view_key_press): Change the
1286 keynav for header reordering and resizing to Alt-arrows and
1287 Shift-Alt-arrows, following a proposal by the keynav
1288 authority. (#308666, Calum Benson)
1290 * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Remove
1291 a leftover debugging envvar.
1293 2005-06-23 Owen Taylor <otaylor@redhat.com>
1295 * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix the
1296 big endian case for 3-channel source. (Reported by
1299 2005-06-23 Matthias Clasen <mclasen@redhat.com>
1301 * gtk/gtkbutton.c (gtk_button_construct_child): Don't
1302 trigger warnings if there are extra references to the
1303 hbox. (#308677, Dan Winship)
1305 * gtk/gtkfilesystemunix.c (bookmark_list_write): Use
1306 g_file_set_contents(). (#308722, Morten Welinder)
1308 2005-06-22 Matthias Clasen <mclasen@redhat.com>
1310 * gdk/x11/gdkdnd-x11.c (xdnd_finished_filter): Set the
1311 time field in the event. (#308573, Morten Welinder)
1313 * gtk/gtkfilesystemunix.c: Remove gratitious differences
1314 between the stable branch and HEAD, which sneaked in with
1315 the bookmark renaming.
1317 2005-06-22 Kjartan Maraas <kmaraas@gnome.org>
1319 * gtk/gtkhsv.c: (gtk_hsv_expose): Don't leak the cairo context
1322 2005-06-21 Matthias Clasen <mclasen@redhat.com>
1327 * gtk/gtkpixmap.c: Modify all of the GtkMisc widgets to round down
1328 on centering calculations to match the behaviour of other parts
1329 of GTK+. (#307419, Ryan Lortie)
1331 2005-06-21 Matthias Clasen <mclasen@redhat.com>
1333 * gtk/gtkdnd.c (gtk_drag_source_set): Connect to
1334 button-release-event as well, to handle touchscreen
1335 scenarios better. (#171490, Markku Vire)
1337 * gtk/*.h: Trivial cleanups. (#169647, #303455,
1338 Fabricio Barros Cabral, Benoit Carpentier)
1342 * gdk/x11/gdkgeometry-x11.c (gdk_window_move_region): New
1343 function which can be used to implement scrolling in
1344 non-window widgets. (#135165, Søren Sandmann)
1346 2005-06-20 Matthias Clasen <mclasen@redhat.com>
1348 * gtk/gtkiconcache.c: Handle MAP_FAILED. (#308449, Georg
1351 2005-06-20 Matthias Clasen <mclasen@redhat.com>
1353 * configure.in: Bump version number.
1355 * === Released 2.7.0 ===
1357 2005-06-20 Matthias Clasen <mclasen@redhat.com>
1361 * gtk/gtkwindow.c (gtk_window_present_with_time): Variant of
1362 gtk_window_present which takes a timestamp. (#166379, Elijah Newren)
1364 2005-06-19 Matthias Clasen <mclasen@redhat.com>
1366 * gtk/gtk.symbols: Add a forgotten symbol
1370 2005-06-19 Kristian Rietveld <kris@gtk.org>
1372 * gtk/gtktreeview.c (gtk_tree_view_clamp_node_visible): added a
1373 check which avoids processing updates on bin_window and scrolling
1374 if the node is already visible. (#170600, Billy Biggs).
1376 2005-06-19 Kristian Rietveld <kris@gtk.org>
1378 * gtk/gtktreeview.c (validate_visible_area): only keep the
1379 row at the same position if the full row is visible. (#304623,
1382 2005-06-19 Kristian Rietveld <kris@gtk.org>
1384 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set dy to zero
1385 if treeview's height is smaller than the current page_size (just
1386 like we do elsewhere).
1388 2005-06-19 Kristian Rietveld <kris@gtk.org>
1390 Make mousewheel scrolling possible in typeahead mode, suggestion
1391 from Reinout van Schouwen (#307898).
1393 * gtk/gtktreeview.c (gtk_tree_view_ensure_interactive_directory):
1394 connect treeview search window to scroll_event signal,
1395 (gtk_tree_view_search_scroll_event): implement.
1397 2005-06-19 Kristian Rietveld <kris@gtk.org>
1399 * gtk/gtktreeview.c (gtk_tree_view_search_button_press_event): pass
1400 the event on to treeview, so it has a change of selecting a row, etc.
1401 (#169677, Kirk Bridger).
1403 2005-06-19 Kristian Rietveld <kris@gtk.org>
1405 This commit includes a fix for #169463, Stefan Kost.
1407 * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_get_size):
1408 when cell_area is set, return cell_area width/height as width/height,
1409 so the focus rectangle will be drawn correctly.
1411 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): drop unneeded get
1412 of focus-line-width property,
1413 (validate_row): take focus_line_width into account.
1415 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
1416 also take focus_line_width into account when calculating the cell_area
1417 y and height (before, we only took it into account when calculating
1420 2005-06-19 Matthias Clasen <mclasen@redhat.com>
1423 * gtk/gtksizegroup.[hc]: Add an ignore-hidden property
1424 with getter and setter. (#171612, Christian Neumair)
1426 2005-06-18 Matthias Clasen <mclasen@redhat.com>
1428 * gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Make this
1429 work for inserting before/after an existing menuitem or
1430 toolitem. (#155946, Christian Persch)
1432 * tests/testmerge.c (delayed_toggle_dynamic): Test the
1433 "insert after" functionality of gtk_ui_manager_add_ui.
1435 * gtk/gtkuimanager.c: Allow to construct menu tool buttons.
1436 (#300678, Sven Neumann)
1438 * demos/gtk-demo/appwindow.c: Demonstrate menu tool buttons
1439 constructed with GtkUIManager.
1443 * gtk/gtkimage.c (gtk_image_clear): Make this function
1444 public. (#64792, Havoc Pennington)
1446 2005-06-18 Kristian Rietveld <kris@gtk.org>
1448 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): undo merging
1449 of the separate loop setting cell data with cell drawing loop
1450 (introduced in revision 1.280), since this breaks focus handling
1453 Sat Jun 18 04:22:51 2005 Manish Singh <yosh@gimp.org>
1455 * gdk/gdkcursor.h: remove GDK_CURSOR and GDK_IS_CURSOR, instance
1456 checks don't work on boxed types.
1458 * gdk/x11/gdkcursor-x11.c:
1459 * gdk/gdkcursor.c: make return_if_fail checks != NULL instead of
1462 Sat Jun 18 04:21:58 2005 Manish Singh <yosh@gimp.org>
1464 * gtk/gtktreeview.c (do_presize_handler): remove unused variable
1467 2005-06-18 Matthias Clasen <mclasen@redhat.com>
1469 * gtk/gtkcellrenderertoggle.c:
1470 * gtk/gtktextview.c:
1471 * gtk/gtktreeview.c: Typo fixes in comments.
1473 * gtk/gtkpaned.c (gtk_paned_add): Barf if more than
1474 2 children are added. (#308111, Morten Welinder)
1476 * gtk/gtkcalendar.c (gtk_calendar_init): _NL_FIRST_WEEKDAY is
1477 1-based. (#163842, Pierre Ossman)
1479 2005-06-17 Kristian Rietveld <kris@gtk.org>
1481 Fix #160281, testcase from Peter Bloomfield.
1483 * gtk/gtktreeview.c (do_presize_handler): always size request
1484 and update adjustments in fixed height mode,
1485 (gtk_tree_view_build_tree): if a fixed height is set, set this
1486 height on newly added nodes.
1488 2005-06-17 Tor Lillqvist <tml@novell.com>
1490 * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Set the actions
1491 and suggested_action fields in the GdkDragContext to
1492 GDK_ACTION_COPY. Otherwise apps that check the suggested_action
1493 field, like eog, won't accept dropped files.
1495 2005-06-17 Matthias Clasen <mclasen@redhat.com>
1497 Support the ICCCM urgency hint. (#61858, Havoc Pennington)
1500 * gtk/gtkwindow.[hc]: Add a GtkWindow::urgency-hint property
1501 with getter and setter.
1505 * gdk/x11/gdkwindow-x11.c (gdk_window_set_urgency_hint):
1506 Add a setter for the urgency hint.
1508 * gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Store
1511 * gdk/x11/gdkwindow-x11.c (update_wm_hints): Set the urgency
1512 hint in the WM_HINTS property when appropriate.
1514 2005-06-17 Matthias Clasen <mclasen@redhat.com>
1516 * gdk/gdkcursor.h: Define GDK_IS_CURSOR() and GDK_CURSOR().
1518 * gdk/x11/gdkcursor-x11.c:
1519 * gdk/gdkcursor.c: Improve some return_if_fail checks,
1520 and add the missing non-Xcursor fallback for
1521 _gdk_x11_cursor_update_theme(), noticed by Jeroen
1524 * gtk/gtkbutton.c (gtk_button_class_init): Document
1525 several button signals as not useful.
1527 * gtk/gtkentrycompletion.c (gtk_entry_completion_complete):
1528 Resize the popup if necessary. (#308076, Vincent Noel)
1530 * gtk/gtkwindow.c (gtk_window_real_set_focus): Queue a
1531 draw on the old and new focus widgets, if their defaultness
1532 changes. (#305607, Billy Biggs)
1534 2005-06-17 Kristian Rietveld <kris@gtk.org>
1536 * gtk/gtktreeview.c (validate_visible_area): make sure the row
1537 above 'above_path' is always in a validated state, so it does
1538 not mess up scrolling. (#303319, testcase from Billy Biggs).
1540 2005-06-17 Matthias Clasen <mclasen@redhat.com>
1542 * gdk/x11/gdkprivate-x11.h:
1543 * gdk/x11/gdkcursor-x11.c: Handle cursor theme changes
1544 for cached cursors which are not associated with a window
1545 at the time of the theme change, by storing a serial
1546 number in each cursor, and updating the theme_serial
1547 counter whenever the cursor theme changes.
1549 * gdk/x11/gdkcursor-x11.c (_gdk_x11_cursor_update_theme):
1550 Private function to update a cursor to the current
1551 cursor theme if necessary.
1553 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab):
1554 * gdk/x11/gdkwindow-x11.c (gdk_window_set_cursor): Call
1555 _gdk_x11_cursor_update_theme() here.
1557 2005-06-17 Owen Taylor <otaylor@redhat.com>
1559 * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix
1560 #if G_BYTE_ORDER == GDK_LSB_FIRST.
1562 2005-06-17 Kristian Rietveld <kris@gtk.org>
1564 * gtk/gtktreeview.c (validate_visible_area): don't try to update
1565 the top_row rowref ourselves here, but just have _dy_to_top_row()
1567 (gtk_tree_view_scroll_to_cell): handle scrolling via
1568 validate_visible_area() if the treeview is not visible or needs
1569 reallocation. (#165246, Nickolay V. Shmyrev).
1571 2005-06-17 Kristian Rietveld <kris@gtk.org>
1573 Fixes #307914 (Alexander Larsson), fixing some breakage caused
1574 by my previous commit.
1576 * gtk/gtktreeview.c (validate_visible_area): force dy to be zero
1577 when it fits on a single page,
1578 (scroll_sync_handler): same here.
1580 Thu Jun 16 15:33:42 2005 Manish Singh <yosh@gimp.org>
1582 * gdk/x11/gdkcursor-x11.c (update_cursor): remove unused variable.
1584 * gdk/x11/gdkwindow-x11.c (_gdk_x11_window_get_cursor): use
1585 g_return_val_if_fail.
1587 * gtk/gtkdnd.c (gtk_drag_get_cursor): initialize hot_x and hot_y
1590 * gtk/gtkfilechooserdefault.c (button_new): gtk_button_set_image
1591 takes a GtkWidget, not a GtkImage.
1593 2005-06-16 Matthias Clasen <mclasen@redhat.com>
1595 * gtk/gtkfilechooserdefault.c (button_new): Simplify
1596 the code and respect the show-button-images setting.
1597 (#307941, Vincent Noel)
1599 * gtk/gtkdnd.c: Update the RGBA cursor if an
1600 icon is set after the cursor has been constructed.
1601 Also handle repeated setting of icons correctly.
1603 2005-06-16 Matthias Clasen <mclasen@redhat.com>
1605 * gtk/gtkbutton.c (gtk_button_set_image): Add some more
1606 docs. (#307818, Christian Persch)
1608 2005-06-15 Matthias Clasen <mclasen@redhat.com>
1610 * gdk/gdkwindow.c (gdk_window_process_updates_internal):
1611 Initialize all fields of the expose event. (#151693,
1614 2005-06-15 Matthias Clasen <mclasen@redhat.com>
1616 * gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image): Get
1617 red and blue in place.
1619 * gtk/gtkwindow.c (gtk_window_parse_geometry): Fox doc
1620 formatting, pointed out by Kjartan Maraas.
1622 * gtk/gtksettings.c: Add two new settings,
1623 gtk-cursor-theme-name and gtk-cursor-theme-size to
1624 control the cursor theme.
1626 * gdk/x11/gdkevents-x11.c: Add two new X settings,
1627 Gtk/CursorThemeName and Gtk/CursorThemeSize, and map
1628 these to the gtk settings.
1630 * tests/testgtk.c (create_cursors): Add a cursor theme
1633 * gdk/x11/gdkwindow-x11.[hc]: Keep a reference to the
1634 GdkCursor and add a private getter for it, so that we can
1635 update the cursor when the cursor theme changes.
1639 * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme):
1640 New function to change the cursor theme.
1642 * gdk/x11/gdkwindow-x11.c: Remove a lot of pointless
1643 g_return_if_fail() non-NULL checks.
1645 2005-06-15 Matthias Clasen <mclasen@redhat.com>
1647 * gdk/abicheck.sh: Use uniq to filter out duplicates.
1648 * gdk/gdk.symbols: Fix a define.
1650 2005-06-14 Matthias Clasen <mclasen@redhat.com>
1652 * gtk/gtkwindow.c (gtk_window_parse_geometry):
1653 Fix up the example. (#307699, Michal Suchanek)
1655 2005-06-14 Matthias Clasen <mclasen@redhat.com>
1657 * gtk/gtkcalendar.c: Update num_marked_dates as we
1658 used to do. (#307689, Thorsten Schoenfeld)
1660 2005-06-14 Federico Mena Quintero <federico@ximian.com>
1662 Merged from gtk-2-6:
1666 * gtk/gtkfilechooserdefault.c (list_selection_changed): Emit
1667 "selection-changed" and do the normal housekeeping even if we are
1668 in SAVE mode and there is nothing selected. We didn't emit that
1669 signal if we were in SAVE mode and unselect_all() got called.
1670 (gtk_file_chooser_default_unselect_all): Call
1671 pending_select_paths_free() so that we cancel any asynchronous
1673 (gtk_file_chooser_default_set_current_name): Likewise.
1675 2005-06-14 Federico Mena Quintero <federico@ximian.com>
1677 Merged from gtk-2-6:
1681 * gtk/gtkfilechooserdefault.c
1682 (gtk_file_chooser_default_should_respond): Oops, I broke SAVE
1683 mode. If the parent path is a folder, only create a subfolder if
1684 we are in CREATE_FOLDER mode; if we are in SAVE mode, just return
1685 and respond. Also, pick up the case where the user types
1686 "dirname/" instead of "dirname".
1687 (check_save_entry): Make the return type void. Add some return
1688 parameters so that we can do more thorough checking.
1689 (gtk_file_chooser_default_get_paths): If the file part is empty
1690 and we are in SAVE mode, return an empty selection.
1692 2005-06-15 Kristian Rietveld <kris@gtk.org>
1694 Patch for #163214 (reported by Tommi Komulainen) and fixes some
1695 other scrolling/validation related bugs along the why.
1697 * gtk/gtktreeview.c (gtk_tree_view_size_request): run
1698 do_validate_rows once and don't queue a size request there,
1699 (gtk_tree_view_size_allocate): don't update vadj value without
1700 reason, sync top_row/dy after the window sizes and adjustments
1702 (validate_visible_area): always update dy when scrolling,
1703 manually set top_row here after changing the vadj (don't depend
1704 on _adjustment_changed and top_row/dy sync to do this), since we
1705 now always set top_row here correctly, we can always free
1706 scroll_to_path at the end which avoids infinite expose loops,
1707 (do_validate_rows): add queue_resize boolean, remove top_row/dy
1708 sync here, we cannot do it safely at this place since the
1709 window sizes and adjustments are out of sync,
1710 (validate_rows), (validate_rows_handler): update call to
1713 2005-06-14 Matthias Clasen <mclasen@redhat.com>
1715 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_name): Add a
1716 stub for the no-Xcursor case. (noticed by Luis Villa)
1718 Use named cursors for the DND cursors, the names are "dnd-none",
1719 "dnd-copy", "dnd-link", "dnd-move" and "dnd-ask". Also use an RGBA
1720 cursor instead of cursor+window when possible. This saves
1721 roundtrips during the drag operation, and makes translucent icons
1724 * gtk/gtkdndcursors.h: New file, containing inlined pixbufs
1725 for the default dnd cursors.
1727 * gtk/gtkdnd.c (struct _GtkDragSourceInfo): Store the cursors
1728 used during the drag here, also store the icon pixbuf here.
1730 * gtk/gtkdnd.c (drag_cursors): Store the cursor names here. Also
1731 switch the default cursors from xbm to inlined pixbufs.
1733 * gtk/gtkdnd.c (gtk_drag_get_cursor): This function now takes the
1734 GtkDragSourceInfo as well, since it has to composite the
1735 drag-specific cursors. The cursors combined from the image of
1736 the themed cursor and the icon_pixbuf stored in the info.
1738 * gtk/gtkdnd.c (gtk_drag_begin_internal): Don't set the default
1739 icon if there is an icon_pixbuf, which will be composited into
1742 * gtk/gtkdnd.c (set_icon_stock_pixbuf): If appropriate, store
1743 the pixbuf in the info struct for later compositing into the
1744 cursor instead of creating an icon window.
1746 * gtk/gtkdnd.c (gtk_drag_drop_finished): If we used an
1747 RGBA cursor for the drag, and need to display the cancel
1748 animation, construct the icon window here.
1750 * gtk/gtkdnd.c (gtk_drag_source_info_destroy): Unref the
1751 drag-specific cursors and the icon_pixbuf when done with
1754 2005-06-14 Matthias Clasen <mclasen@redhat.com>
1756 * gtk/gtkcolorsel.c (make_picker_cursor): Use a named cursor
1757 with the name "color-picker", when available.
1761 * gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image)
1762 (gdk_cursor_new_from_name): New functions to construct named
1763 cursors and to get the image used for a cursor.
1765 2005-06-13 Matthias Clasen <mclasen@redhat.com>
1767 * gtk/gtkpathbar.[hc]: Rework the way in which rerooting of the
1768 path bar is done, implementing the following principles:
1769 (#137289, patch by Benjamin Otte)
1771 1. Re-root only if $HOME is an ancestor of the current path.
1773 2. When re-rooting, make sure the Left arrow appears in the path
1774 bar, so that you can navigate up from $HOME to /. In that case,
1775 make sure the Right arrow doesn't appear if the sub-hierarchy from
1776 $HOME to the cwd fits in the window.
1778 3. Make sure that hitting Alt-Up takes you always one folder up,
1779 even when the path bar is re-rooted.
1781 * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
1782 Try harder not to modify readonly strings. (#307541, Torsten Schoenfeld)
1784 * gtk/gtkfilechooserbutton.c (model_update_current_folder):
1785 Free the data of the row before overwriting it. (#307490,
1788 2005-06-13 Kjartan Maraas <kmaraas@gnome.org>
1790 * gtk/gtkcalendar.c: (calendar_paint_arrow): Don't
1791 leak the cairo context. Closes bug #307426.
1793 2005-06-13 Matthias Clasen <mclasen@redhat.com>
1795 Make invisible text work a bit better (#66194, patch by
1796 Jeroen Zwartepoorte)
1799 * gtk/gtktextiter.[hc]: Add function to move by
1802 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal):
1803 Skip invisible text when moving by paragraphs.
1805 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_visually):
1806 Skip invisible lines here too.
1808 2005-06-12 Matthias Clasen <mclasen@redhat.com>
1810 * gtk/gtkselection.c (gtk_target_list_add_image_targets):
1811 Don't leak the format names. (#307190, Morten Welinder)
1813 2005-06-12 Kjartan Maraas <kmaraas@gnome.org>
1815 * gdk/x11/gdkasync.c: (send_event_handler): Plug
1816 a leak. Closes bug #307281.
1818 2005-06-12 Matthias Clasen <mclasen@redhat.com>
1820 * gtk/gtkcalendar.c (calendar_paint_header):
1821 (gtk_calendar_size_request): Allow localization of the
1822 format in which the year is displayed. (#135451, Paisa
1825 * gdk/*.h: Cleanup. (#169648, Fabricio Barros Cabral)
1827 * gdk/gdkcairo.c: Small doc additions.
1829 * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row):
1830 Check start_button_mask before starting a drag. (#149058,
1833 * gtk/gtkfilesystemunix.c: Support .hidden files. (#129170,
1834 Sayamindu Dasgupta, patch by Jan Arne Petersen)
1836 2005-06-11 Matthias Clasen <mclasen@redhat.com>
1840 * gtk/gtkwidget.c (gtk_widget_set_app_paintable): More docs
1841 provided by Owen Taylor.
1844 * gtk/gtkiconview.h:
1845 * gtk/gtkiconview.c (gtk_icon_view_get_visible_range):
1846 Add a function to determine what parts of the model are
1847 visible. (#306726, Jonathan Blandford)
1849 * gtk/gtkfilesystemunix.c (create_file_info): Treat backup
1850 files the same way as hidden files, to be closer to what
1851 Nautilus does. (#136196, Sean Middleditch)
1853 2005-06-10 Matthias Clasen <mclasen@redhat.com>
1855 * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
1856 Don't modify strings returned from gettext().
1858 Fri Jun 10 19:06:03 2005 Manish Singh <yosh@gimp.org>
1860 * gtk/gtktextdisplay.c (render_para): don't use deprecated
1861 gdk_gc_unref function.
1863 2005-06-10 Matthias Clasen <mclasen@redhat.com>
1865 Allow setting paragraph background. (#81045, Gustavo
1866 Carneiro, patch by Jeroen Zwartepoorte)
1868 * gtk/gtktextlayout.c (set_para_values): Propagate
1869 pg_bg_color to the display struct.
1870 (gtk_text_layout_free_line_display): Free it here.
1872 * gtk/gtktextdisplay.c (render_para): If pg_bg_color
1873 is set, draw a rectangle in that color behind
1876 * gtk/gtktexttag.c (gtk_text_tag_class_init): Add
1877 paragraph-background, paragraph-background-gdk and
1878 paragraph-background-set properties.
1879 (set_pg_bg_color): A setter for paragraph-background.
1881 * gtk/gtktextlayout.h (struct _GtkTextLineDisplay): Add
1884 * gtk/gtktexttag.h (struct _GtkTextAttributes): Add
1886 (struct _GtkTextTag): Add pg_bg_color_set.
1888 2005-06-10 Kjartan Maraas <kmaraas@gnome.org>
1890 * gdk/gdkcairo.c: (gdk_cairo_set_source_pixbuf): Destroy the
1891 cairo surface when done with it. Plugs a fairly large leak in
1893 ==6014== 1999824 (115640 direct, 1884184 indirect) bytes in
1894 826 blocks are definitely lost in loss record 25239 of 25250
1895 Like this from nautilus.
1897 2005-06-10 Michael Natterer <mitch@imendio.com>
1900 * gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function
1901 to get an action's accel_closure (Fixes #141750 and #148106).
1903 2005-06-10 Matthias Clasen <mclasen@redhat.com>
1905 * gdk/gen-keyname-table.pl: Generate N_() calls for
1906 translatable key names.
1908 * gdk/keynames.txt: Mark some key names as translatable.
1910 * gdk/keyname-table.h: Regenerated.
1912 * gtk/gtkaccellabel.c (gtk_accel_label_class_init): Add
1913 some context to the msg ids for keyboard modifiers and
1915 (_gtk_accel_label_class_get_accelerator_label): Try to
1916 translate key names. (#300224, Christian Rose)
1918 2005-06-10 Federico Mena Quintero <federico@ximian.com>
1920 Merged from gtk-2-6:
1924 * gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't return
1925 immediately if we are in CREATE_FOLDER mode, so that we can fill
1926 the entry with the newly-selected folder.
1927 (gtk_file_chooser_default_set_property): Warn against turning on
1928 multiple selection for CREATE_FOLDER mode, or about setting that
1929 action while multiple selection is on.
1930 (update_chooser_entry): Change the entry's contents as well if we
1931 are in CREATE_FOLDER mode. If nothing is selected, clear the
1933 (trap_activate_cb): Don't trap enter/space if modifiers are
1934 pressed. This lets one use Ctrl-space to toggle rows in multiple
1936 (gtk_file_chooser_default_should_respond): Clean up the if-chain
1937 mess of special cases by using an array to determine what to do.
1938 Also, for the save-entry case in CREATE_FOLDER mode, actually fix
1939 the bug where the file chooser would switch to an existing folder
1940 rather than confirming with it, and create the folder ourselves.
1941 (error_creating_folder_over_existing_file_dialog): New function.
1943 * gtk/gtkfilechooserentry.c (check_completion_callback): Only
1944 insert the common prefix if we are in an "open" mode. Use a
1946 (append_common_prefix): New helper function; code moved over from
1947 check_completion_callback().
1948 (find_common_prefix): New helper function.
1949 (gtk_file_chooser_entry_focus): Append the common prefix if the
1950 user requests it explicitly.
1952 2005-06-10 Matthias Clasen <mclasen@redhat.com>
1954 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_expand):
1955 * gtk/gtktoolbar.c (gtk_toolbar_get_show_arrow):
1956 * gtk/gtktextview.c (gtk_text_view_get_iter_at_position):
1957 * gtk/gtkstock.c (gtk_stock_set_translate_func):
1958 * gtk/gtkspinbutton.c (gtk_spin_button_get_adjustment):
1959 * gtk/gtkscrolledwindow.h:
1960 * gtk/gtkmenushell.c (gtk_menu_shell_get_take_focus):
1962 * gtk/gtkiconview.c (gtk_icon_view_set_margin):
1963 * gtk/gtkicontheme.c (gtk_icon_info_load_icon):
1964 * gtk/gtkcalendar.c (gtk_calendar_thaw): Doc fixes.
1966 2005-06-09 Matthias Clasen <mclasen@redhat.com>
1968 * gdk/x11/gdkwindow-x11.c: Small markup fixes.
1970 * gtk/gtkwidget.c (gtk_widget_set_app_paintable): Add docs.
1971 (#306212, Steve Chaplin, docs provided by Billy Biggs)
1973 * gtk/gtktextbtree.c (_gtk_text_btree_char_is_invisible): Small
1974 cleanup. (#305539, Paolo Borelli)
1976 2005-06-09 Rodrigo Moya <rodrigo@novell.com>
1978 * configure.in: added cairo to list of $GTK_PACKAGES.
1980 2005-06-09 Matthias Clasen <mclasen@redhat.com>
1982 * gdk/x11/gdkdnd-x11.c (motif_drop_start, xdnd_drop_filter): Update
1983 the user time on the window when a drop happens. (#169364, Alexander
1984 Hunziker, patch by Elijah Newren)
1986 * gdk/x11/gdkwindow-x11.c: Small markup fixes.
1989 * gtk/gtkiconview.h:
1990 * gtk/gtkiconview.c (gtk_icon_view_scroll_to_path): New function
1991 to scroll to a path. (#306838, Jonathan Blandford)
1993 2005-06-08 Matthias Clasen <mclasen@redhat.com>
1995 * gtk/gtkiconview.c (gtk_icon_view_set_cursor): Scroll to the
1996 item. (#306839, Jonathan Blandford)
1998 * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): Check for
1999 negative before appending the index, to avoid double error
2000 message. (#306393, Morten Welinder)
2002 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
2003 Don't crash if search_window is NULL. (#304914, Victor Osadci,
2004 testcase by Olaf Vitters)
2006 * gtk/gtkimage.c: Make the file property readable.
2007 (#170674, Lorenzo Gil Sanchez)
2010 2005-06-08 Matthias Clasen <mclasen@redhat.com>
2012 * gtk/gtkfilesystem.c (gtk_file_info_get_display_key): Use
2013 g_utf8_collate_key_for_filename().
2015 2005-06-07 Kjartan Maraas <kmaraas@gnome.org>
2017 * gtk/gtkfilechooserbutton.c: (update_label_and_image):
2018 Merge leak fix from stable. Bug 306754.
2020 2005-06-05 Tor Lillqvist <tml@novell.com>
2022 * gdk/win32/gdkscreen-win32.c
2023 (_gdk_windowing_substitute_screen_number): Return NULL unless
2024 screen number is zero. We have only one screen on Win32.
2025 (gdk_screen_make_display_name): Call gdk_display_get_name() and
2028 * modules/engines/Makefile.am
2029 * modules/input/Makefile.am: Decide whether to build the
2030 ms-windows theme engine based on the GDK backend, not based on
2031 platform. (I.e., if building for Cygwin with the X11 backend, we
2032 shouldn't build the ms-windows engine, but if building for Cygwin
2033 but with the Win32 backend, we should.) Ditto for the IME
2034 (Windows) input module. (#305832)
2036 2005-06-04 Tor Lillqvist <tml@novell.com>
2038 * gdk/win32/gdkcursor-win32.c
2039 * gdk/win32/gdkwindow-win32.c
2040 * gdk/win32/gdkprivate-win32.h: Support full-colour cursors.
2041 Support cursors with alpha on XP. Use code in common with the
2042 support for alpha icons that already was present. (#306101, Tim
2045 * modules/engines/ms-windows/msw_style.c: Render insensitive icons
2046 in a way that more closely matches Windows. (#305986, Tim Evans).
2048 * modules/engines/ms-windows/Makefile.am (LDADDS): Link with
2051 2005-06-03 Dom Lachowicz <cinamod@hotmail.com>
2053 * modules/engines/ms-windows/msw_style.c: Re-sync with gtk-wimp
2054 * modules/engines/ms-windows/xp_theme.c: Ditto
2055 * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Ditto
2057 Thu May 26 16:43:27 2005 Manish Singh <yosh@gimp.org>
2059 * gtk/gtkentrycompletion.h: Add declarations for
2060 gtk_entry_completion_{get,set}_popup_single_match.
2062 2005-05-26 Matthias Clasen <mclasen@redhat.com>
2065 * gtk/gtkentrycompletion.c: Add a property to suppress the
2066 popup for single matches. (#154711)
2068 * gtk/gtkentry.c (gtk_entry_completion_timeout): Respect it here.
2070 * gtk/gtkfilechooserentry.c (_gtk_file_chooser_entry_set_action):
2073 * gtk/gtktextbtree.c (_gtk_text_btree_tag): Queue the
2074 redisplay after modifying the tag in the btree, otherwise
2075 we end up showing the old tags until the next redraw comes
2076 around. (#143537, Gary Kramlich, Peter Wainwright)
2078 * gtk/gtkcombobox.c (gtk_combo_box_list_auto_scroll): Make
2079 autoscrolling work at the bottom of the screen.
2081 2005-05-26 Maciej Katafiasz <email@mathrick.org>
2083 * docs/reference/gtk/tmpl/gtkentry.sgml:
2084 Point to GtkTextView instead of GtkText. Fixes bug #305535
2086 2005-05-26 Sven Neumann <sven@gimp.org>
2088 * gtk/gtkselection.c (gtk_selection_data_set_pixbuf): use a less
2089 aggressive PNG compression level (bug #305340).
2091 2005-05-26 Tor Lillqvist <tml@novell.com>
2093 * gdk/win32/gdkdrawable-win32.c (_gdk_win32_blit): If blitting
2094 from the root window, take the multi-monitor offset into
2097 2005-05-25 Matthias Clasen <mclasen@redhat.com>
2099 * demos/gtk-demo/appwindow.c (do_appwindow): Set the window
2102 * gtk/gtkfilesystem.c (gtk_file_folder_is_finished_loading):
2103 Remove another C99ism.
2105 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Draw the
2106 background of rows insensitive when the treeview is insensitive.
2107 (pointed out by Billy Biggs)
2109 * demos/gtk-demo/clipboard.c: Demonstrate image copy-and-paste
2110 and DND, and clipboard persistency.
2112 * gtk/gtkselection.c (gtk_target_list_add_image_targets):
2113 Make sure png comes first, otherwise dnd may use bmp by
2114 default, loosing transparency.
2116 2005-05-25 Michael Natterer <mitch@imendio.com>
2118 * gtk/gtktextview.c (blink_cb): block the text_layout's "changed"
2119 handler when changing cursor visibility because it would expose
2120 the whole paragraph where the cursor is. Instead, expose the
2121 cursors' areas manually. (#173047).
2123 (text_window_invalidate_cursors): new function which exposes the
2126 * gtk/gtkstyle.c (draw_insertion_cursor): added comment that the
2127 same cursor size calculation is in text_window_invalidate_cursors().
2129 2005-05-25 Matthias Clasen <mclasen@redhat.com>
2131 * demos/gtk-demo/editable_cells.c (create_items_model): Also
2132 demonstrate GtkCellRendererProgress.
2134 * demos/gtk-demo/Makefile.am (demos):
2135 * demos/gtk-demo/combobox.c: Add a demo showing combo box
2138 * demos/gtk-demo/Makefile.am (demos):
2139 * demos/gtk-demo/pickers.c: Add a demo showing all picker widgets.
2141 2005-05-24 Matthias Clasen <mclasen@redhat.com>
2143 * demos/gtk-demo/iconview.c (do_iconview): Fix a typo.
2145 2005-05-24 Tor Lillqvist <tml@novell.com>
2147 * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Handle
2148 gtk-alternative-button-order (setting it to TRUE).
2150 2005-05-23 Matthias Clasen <mclasen@redhat.com>
2152 * gtk/gtktreeview.c (gtk_tree_view_search_init): Remove
2153 an unused variable. (#305130, Jaap A. Haitsma)
2155 * gtk/gtkfilechooserdefault.c (filter_create): Don't grab
2156 the focus away from the file list when operating the filter
2157 combo with the pointer. (#304844, Sven Neumann)
2159 2005-05-23 Tor Lillqvist <tml@novell.com>
2161 * gdk/win32/gdkkeys-win32.c (handle_special): Map VK_APPS to
2162 GDK_Menu. (#172383, Ivan Wong)
2164 * gdk/win32/gdkkeys-win32.c (handle_dead): If the keysym isn't one
2165 of the special cases this function takes care of, use it as
2166 such. This takes care of for instance the Bengali Virama, see bug
2169 2005-05-20 Matthias Clasen <mclasen@redhat.com>
2171 * gtk/gtkimcontextsimple.c (check_table): Avoid a possible
2172 buffer overrun. (#142444, Leonard Michlmayr)
2174 * gtk/gtkfilesystem.c: Remove C99-isms (#304879,
2177 2005-05-18 Matthias Clasen <mclasen@redhat.com>
2179 * gtk/gtkfilechooser.c (gtk_file_chooser_remove_shortcut_folder_uri):
2180 Use the correct function to conver the uri to a path. (#304565,
2183 * gtk/gtkfilechooserbutton.c (dialog_response_cb): Handle the
2184 Cancel button properly. (#304234, Sven Neumann)
2186 2005-05-18 Anders Carlsson <andersca@imendio.com>
2188 * gtk/gtktextview.c: (gtk_text_view_flush_scroll),
2189 (gtk_text_view_update_adjustments), (gtk_text_view_value_changed):
2190 * gtk/gtktextview.h:
2191 If the horizontal adjustment changes because of a change in the
2192 layout width, then do a complete redraw. This is because there
2193 might be right-aligned or centered text that needs to be redrawn.
2195 2005-05-18 Matthias Clasen <mclasen@redhat.com>
2197 * gtk/gtkwidget.c (gtk_widget_add_events): Try harder to set
2198 the event masks of descendent windows. (#169821, Tommi Komulainen)
2200 * gtk/gtktreeview.c (gtk_tree_view_get_drop_column)
2201 (gtk_tree_view_set_column_drag_info): Fix some errors in the
2202 handling of drop columns. (#143355, John Finlay)
2204 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
2205 Remove the no longer needed workaround.
2207 * gtk/gtkwidget.c (widget_add_child_draw_rectangle): Only collect
2208 allocations of mapped children.
2210 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
2211 Add a bug reference.
2213 2005-05-18 Tor Lillqvist <tml@novell.com>
2215 * gdk/win32/gdkevents-win32.c
2216 * gdk/win32/gdkkeys-win32.c
2217 * gdk/win32/gdkprivate-win32.h: Check the KF_EXTENDED bit in
2218 lParam of WM_KEY* messages to distinguish between left and right
2219 Control and Alt keys. Unfortunately, the right Shift key doesnt
2220 set KF_EXTENDED, so to distinguish between left and right Shift
2221 keys, check the scan code. (#304584)
2223 2005-05-18 Matthias Clasen <mclasen@redhat.com>
2225 * gdk/x11/gdkproperty-x11.c (gdk_property_get): Warn if
2226 length overflows. (#161520, Ian Wienand)
2228 * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name): Fix
2229 parameter names to make gtk-doc happy.
2231 * gtk/gtkscale.c (gtk_scale_class_init): Fix the default
2232 values of draw-value and value-pos to be the values we
2233 actually use in _init. (#304547, Mikael Hallendal)
2235 * gtk/gtkcellrendererpixbuf.c: Support named icons in
2236 cells by adding a icon-name property. (#165777, Anders
2240 * gtk/gtktoolbutton.h:
2241 * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name)
2242 (gtk_tool_button_get_icon_name): Support named icons in
2243 tool buttons by adding a icon-name property. (#116577,
2248 * gtk/gtkdnd.c (gtk_drag_source_set_icon_name)
2249 (gtk_drag_set_icon_name): New functions to support themed
2250 drag icons. (#116577, Christian Neumair)
2252 2005-05-17 Owen Taylor <otaylor@redhat.com>
2254 * gdk/x11/gdkdrawable-x11.c (gdk_x11_ref_cairo_surface):
2255 Update to changed cairo interface.
2257 * gdk/x11/gdkdrawable-x11.[ch]:
2258 Add _gdk_x11_drawable_update_size()
2260 * gdk/x11/gdkwindow-x11.c (gdk_window_resize)
2261 (gdk_window_move_resize)
2262 * gdk/x11/gdkevents-x11.c (gdk_event_translate):
2263 Call _gdk_x11_drawable_update_size().
2265 2005-05-17 Matthias Clasen <mclasen@redhat.com>
2267 * gtk/gtktextview.c (cursor_blinks): Don't blink the cursor
2268 if the text view is not editable.
2270 * gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Keep
2271 the popup posted if the button is released over the cellview.
2272 This matches the behaviour of other combo box implementations.
2275 * gdk/gdkwindow.c (gdk_window_set_bg_pattern): Adjust offsets
2276 when recursing. (#153682, Felipe Heidrich)
2278 2005-05-16 Matthias Clasen <mclasen@redhat.com>
2280 * gtk/gtkscale.c (gtk_scale_class_init): Don't bind GDK_Page_Up
2281 and GDK_Page_Down twice. (#168333, Hazael Maldonado Torres)
2283 * gtk/gtkentry.c (cursor_blinks): Don't blink the cursor if
2284 the entry is not editable. (#304171, Nikos Kouremenos)
2286 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_constructor):
2287 Make sure the action of the button and the dialog are in sync,
2288 when the dialog is provided by the app. (#303987, David A Knight)
2290 * gdk/gdkpango.c (gdk_pango_renderer_get_default): Fix a typo
2291 in the docs. (#303940, Masao Mutoh)
2293 * configure.in (GTK_DOC_CHECK): Check for gtk-doc 1.4.
2295 * gtk/gtktoggleaction.c (connect_proxy): Be more careful when
2296 casting. (#304089, Philip Langdale)
2298 * gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Only shrink
2299 the label if we need to. (#169390, Felix Riemann)
2301 Sat May 14 00:07:46 2005 Manish Singh <yosh@gimp.org>
2304 * gdk/gdkpango.c: #include gdkcairo.h for gdk_cairo_create()
2307 * gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): actually
2308 call gdk_cairo_set_source_color() with a color.
2310 * gtk/gtkimage.c (gtk_image_expose): remove unused stock_id variable.
2312 * tests/testiconview.c (main): cast args of drag functions to the
2315 2005-05-13 Owen Taylor <otaylor@redhat.com>
2317 * gdk/x11/gdkdrawable-x11.c: Update for cairo-xlib API change.
2319 * gdk/x11/gdkpixmap-x11.[ch] gdk/gdk.symbols: Export
2320 gdk_pixmap_impl_x11_get_type(), needed in gdkdrawable-x11.c.
2322 2005-05-11 Owen Taylor <otaylor@redhat.com>
2324 * tests/testgtk.c (on_alpha_window_expose): Fix to use
2325 gdk_cairo_create(). (create_alpha_window): Hook up "response"
2326 to close the window.
2328 2005-05-11 Owen Taylor <otaylor@redhat.com>
2330 * gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea
2331 to draw the swatch in to avoid having an extraneous window.
2333 * gtk/gtkcolorsel.c (color_sample_draw_sample): Actually se tthe
2334 color when !has_opacity.
2336 2005-05-10 Owen Taylor <otaylor@redhat.com>
2338 * gdk/gdkcairo.[ch] gdk/gdkcolor.[ch] gdk/Makefile.am: Add source
2339 files for Cairo convenience functionality.
2341 * gdk/gdkcairo.h (gdk_cairo_rectangle, gdk_cairo_region): Add a
2342 convenience functions to add GdkRectangle, GdkRegion to a cairo path.
2344 * gdk/gdkwindow.c gdk/gdkgc.c gtk/gtkcolorsel.c gtk/gtkiconview.c
2345 gtk/gtkstyle.c: Use gdk_cairo_rectangle/region().
2347 * gdk/gdkcairo.[ch] gdk/gdkdrawable.h gdk/gdkdraw.c: Rename
2348 gdk_drawable_create_cairo_context() to gdk_cairo_create().
2350 * gdk/gdkcairo.c gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c:
2351 Rename gdk_pixbuf_set_as_cairo_source() to
2352 gdk_cairo_set_source_pixbuf().
2354 * gdk/gdkdraw.c gdk/gdkpango.c gtk/gtkcolorsel.c gtk/gtkhruler.c
2355 gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkstyle.c gtk/gtkvruler.c:
2358 * gdk/gdk.symbols: Update.
2360 * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): Fix
2361 coordinate system problem that was causing the wrong portions
2364 * gtk/gtkcellrenderer.c (gtk_cell_renderer_render)
2365 gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render)
2366 gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render)
2367 gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render)
2368 gtk/gtkcellview.c (gtk_cell_view_expose)
2369 gtk/gtkdnd.c (gtk_drag_highlight_expose)
2370 gtk/gtkentry.c (gtk_entry_draw_text)
2371 gtk/gtktextview.c (text_window_invalidate_rect): Some cairoization.
2373 * gtk/gtkcalendar.[ch]: Beat into something roughly resembling
2374 GTK+ style ... use instance-private data and standard names for
2375 private structure, etc. Move function docs inline.
2377 * gtk/gtkcalendar.[ch]: Switch to drawing everything in
2378 expose. Switch drawing to Cairo.
2380 * gtk/gtkcalendar.c (gtk_calendar_freeze): Deprecate
2381 gtk_calendar_freeze/thaw
2383 2005-05-10 Tor Lillqvist <tml@novell.com>
2385 * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Check
2386 that GDK_IS_SCREEN(screen) (like the X11 backend does), not screen
2387 == gdk_screen_get_default(), as that might return NULL when this
2390 2005-05-09 Matthias Clasen <mclasen@redhat.com>
2392 * gtk/gtkalignment.c (gtk_alignment_size_allocate): Flip the
2393 padding in RTL mode. (#303572, Maciej Katafiasz)
2395 2005-05-09 Owen Taylor <otaylor@redhat.com>
2397 * gdk/gdkrgb.c (gdk_rgb_convert_0888_br, gdk_rgb_convert_8880_br):
2398 Fill in unused bits so they can be used for the depth-32 target case.
2399 Rewrite so that that gives a marginal speedup rather than a
2400 marginal slowdown. (on x86)
2402 * gdk/gdkscreen.h gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkvisual-x11.c:
2403 Add gdk_screen_get_rgba_colormap/visual to get a visual for
2404 windows with an alpha channel, if one exists.
2406 * gdk/win32/gdkscreen-win32.c gdk/linux-fb/gdkscreen-fb.c:
2407 Stub out gdk_screen_get_rgba_colormap/visual.
2409 * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors): computation of
2410 "unused" wasn't right for depth == 32, since it depended on
2413 * gdk/gdkrgb.c: Fill in alpha bits with 1s. (Based on patch from
2415 http://mail.gnome.org/archives/gtk-devel-list/2004-June/msg00080.html)
2417 * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
2418 Implement again, without using Xft.
2420 * tests/testgtk.c: Add a test for windows with an alpha channel.
2422 2005-05-09 Matthias Clasen <mclasen@redhat.com>
2424 * autogen.sh: Revert accidental commit.
2426 2005-05-08 Matthias Clasen <mclasen@redhat.com>
2428 * gdk/gdkcolor.c (gdk_cairo_set_source_color):
2433 * gdk/x11/gdkcolor-x11.c: Small documentation additions.
2435 2005-05-07 Matthias Clasen <mclasen@redhat.com>
2437 * gtk/gtkscrolledwindow.h:
2438 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_hscrollbar):
2439 (gtk_scrolled_window_get_cscrollbar): Change the return
2440 type to GtkWidget*, proposed by Owen Taylor.
2442 * gdk/x11/gdkscreen-x11.c (gdk_screen_get_width_mm)
2443 (gdk_screen_get_height_mm): Fix typos in the docs. (#303389,
2446 2005-05-07 Matthias Clasen <mclasen@redhat.com>
2448 * gtk/gtkiconview.c: Fix a copy-and-paste accident, spotted
2451 2005-05-07 Owen Taylor <otaylor@redhat.com>
2453 * gdk/gdkgc.c (gc_get_foreground): Get the foreground color, not
2454 the background color.
2456 2005-05-07 Owen Taylor <otaylor@redhat.com>
2458 * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source):
2459 Change prototype to match cairo_set_source_surface().
2461 * gdk/gdkdraw.c gdk/gdkgc.c gdk/gdkpixbuf-render.c gdk/gdkwindow.c
2462 gtk/gtkhsv.c tests/testcairo.c.
2464 2005-05-06 Federico Mena Quintero <federico@ximian.com>
2466 Merged from gtk-2-6:
2468 * gtk/gtkfilesystemunix.c (fill_in_mime_type): Don't fill the mime
2469 types if this is an AFS directory.
2470 (fill_in_names): If we are in an AFS directory, set the MIME type
2471 blindly to "x-directory/normal".
2473 2005-05-06 Matthias Clasen <mclasen@redhat.com>
2475 * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Always
2476 initialize child-visible to FALSE, otherwise we may end up
2477 with the wrong page visible initially. (#302283, Patrik Fimml)
2479 * gtk/gtktreeview.c (gtk_tree_view_draw_arrow): Make expanders
2480 appear insensitive in insensitive treeviews.
2482 2005-05-05 Matthias Clasen <mclasen@redhat.com>
2484 * gtk/gtktoolbar.c: Fix a typo in the docs. (#303024,
2487 2005-05-06 Matthias Clasen <mclasen@redhat.com>
2490 * gtk/gtkiconview.[hc]: Add DND support similar to the DND
2491 support in the tree view. (#150270)
2493 2005-05-05 Matthias Clasen <mclasen@redhat.com>
2496 * gtk/gtkwidget.h: Small cleanups.
2498 * gtk/gtktreeview.c (gtk_tree_view_get_dest_row_at_pos): Fix
2501 2005-05-04 Owen Taylor <otaylor@redhat.com>
2503 * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.h: Fix a bug
2504 in focus tracking when we move between has_pointer_focus and
2505 has_focus_window directly. (#109246, Billy Biggs, Niko Tyni
2508 * gdk/x11/gdkevents-x11.c: Also fix some confusion that could
2509 happen in the case of no window manager + keyboard grabs, by
2510 moving to a more consistent model of when we pay attention to
2511 mode=NotifyGrab/NotifyUngrab events.
2513 * docs/focus_tracking.txt: Extensive writeup about how to track
2516 Wed May 4 13:21:41 2005 Søren Sandmann <sandmann@redhat.com>
2518 * tests/testcairo.c (draw): Replace cairo_show_surface() uses with
2519 cairo_set_source_surface()/cairo_paint();
2521 2005-05-04 Tor Lillqvist <tml@novell.com>
2523 * gdk/win32/gdkdrawable-win32.c (generic_draw, blit_from_pixmap)
2524 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values,
2525 _gdk_win32_gc_new, _gdk_windowing_gc_set_clip_region,
2526 gdk_win32_hdc_get): Minor fixes to make Win32 backend compile
2529 2005-05-03 Matthias Clasen <mclasen@redhat.com>
2531 * gtk/gtkfilesystem.c:
2532 * gtk/gtkcelleditable.c:
2533 * gtk/gtktreemodel.c: Avoid getting the interface struct
2534 twice in the same function. (#300513, Billy Biggs)
2536 * gtk/gtkscrolledwindow.h:
2537 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_vscrollbar):
2538 * gtk/gtk.symbols: Add getters for the scrollbars. (#167181,
2542 * gtk/gtkdialog.c (gtk_dialog_get_response_for_widget):
2543 Make this function public. (#170748, Morten Welinder)
2545 2005-05-02 Federico Mena Quintero <federico@ximian.com>
2547 Merged from gtk-2-6:
2551 * gtk/gtkfilesystemunix.c (struct _GtkFileSystemUnix): Add fields
2552 to store struct stat for /afs and /net, and boolean fields to say
2553 whether these are valid.
2554 (struct _GtkFileFolderUnix): Added a boolean is_network_dir field.
2555 (gtk_file_system_unix_get_folder): Fill in the is_network_dir
2556 field of the folder structure.
2557 (fill_in_names): If the folder is a network directory, create a
2558 fake struct stat for its entries.
2559 (fill_in_stats): Don't stat() the children of network directories.
2561 * gtk/gtkfilechooserdefault.c (list_mtime_data_func): If the mtime
2562 is 0, use "Unknown" for the cell's displayed text.
2564 2005-04-28 Owen Taylor <otaylor@redhat.com>
2566 * gtk/gtkwidget.c: Add a draw-border style property to allow
2567 themes to draw outside the widget's allocation.
2569 * gdk/gdkwindow.c gtk/gtkstyle.c: Remove some save/restore pairs
2570 that were working around the clip-leakage bug in Cairo.
2572 * gtk/gtkstyle.c: Use cairo_fill_preserve() rathe than
2575 * gdk/gdkgc.c gdk/gdkinternals.h: Add _gdk_gc_update_context()
2576 That updates a Cairo context to match a GC.
2578 * gdk/gdkdraw.c: Use _gdk_gc_update_context() to add support
2579 for tiles/stipples/clipping to gdk_draw_glyphs(),
2580 gdk_draw_trapezoids().
2582 * gdk/gdkpango.c: Use _gdk_gc_update_context() instead of internal
2583 implementation of stipples. Use one cairo_t across the entire
2584 drawing operation. Replace cairo_matrix_create() with
2585 stack-allocated matrices.
2587 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
2588 gdk/win32/gdkgc-win32.c: Save various aspects of the
2589 GC state (fill, tile, stipple, foreground, background, clip region)
2590 in instance-private-data for future use. Add getters.
2591 Get rid of _gdk_windowing_gc_get_foreground() function implemented
2594 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
2595 gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Add
2596 _gdk_gc_init() to do initial setup of the GC from values;
2597 fixes some problems from drawable redirection.
2599 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
2600 gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Move
2601 gdk_gc_copy() and gdk_gc_set_clip_{region,rectangle}() into
2602 the generic code, add _gdk_windowing_gc_copy(),
2603 _gdk_windowing_gc_set_clip_region() to do backend specific
2606 * gdk/x11/{gdkprivate-x11.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
2607 gdk/win32/{gdkprivate-win32.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
2608 gdk/linux-fb/{gdkprivate-fb.h,gdkgc-fb.c.c,gdkdrawable-fb.c}:
2609 Don't duplicate state that now is stored by the generic code.
2611 * gdk/gdk.symbols Update
2613 2005-05-02 Matthias Clasen <mclasen@redhat.com>
2615 * tests/testiconview.c: Test cell renderers.
2617 * gtk/gtk.symbols: Add new functions.
2619 * gtk/gtkiconview.[hc]: Implement GtkCellLayout and use
2620 cell renderers for drawing and editing. (#148144, #160242)
2622 2005-05-02 Matthias Clasen <mclasen@redhat.com>
2624 * gtk/gtkcellrenderertext.c (get_size): Return a sufficient
2625 width for cases where pango_layout_get_pixel_extents() returns
2626 a rectangle with nonzero x.
2628 * gtk/gtkselection.c: Small doc fixes.
2630 * gtk/gtkmenushell.c (gtk_menu_shell_set_take_focus):
2631 (gtk_menu_shell_get_take_focus): Fix up the docs a bit.
2633 2005-05-02 Michael Natterer <mitch@imendio.com>
2635 * gtk/gtkmain.c (do_post_parse_initialization): return silently if
2636 "gtk_initialized" is TRUE. Re-enables calling GTK's init functions
2637 multiple times when using gtk_get_option_group(), just as one can
2638 call gtk_init() multiple times without doing any harm.
2640 2005-05-01 Matthias Clasen <mclasen@redhat.com>
2642 * gtk/gtktextview.c (gtk_text_view_expose_event): Propagate
2643 the event to unanchored children in the text window.
2644 (#302494, Stephen Kennedy)
2646 2005-04-30 Tor Lillqvist <tml@novell.com>
2648 * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Take
2649 multi-monitor offset into account. (#302525)
2651 2005-04-29 Matthias Clasen <mclasen@redhat.com>
2653 * gtk/gtkradioaction.c: Make the docs build. (#302230,
2656 * gtk/gtkiconview.c (gtk_icon_view_map): Get rid of this
2657 function, instead show the bin_window when it is created.
2659 * gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't
2660 grab focus to unrealized widgets. (#302240, Philip Langdale)
2662 * gtk/gtktreeview.c (gtk_tree_view_state_changed): Set
2663 background upon state changes. (#301651, Billy Biggs)
2664 (gtk_tree_view_get_path_at_pos): Take RTL into account
2665 when iterating over the columns. (#302163)
2667 * configure.in: Check for nm.
2669 * gtk/Makefile.am: Use $(NM), not nm directly. (#301299,
2670 Nguyen Thai Ngoc Duy)
2672 * gtk/gtkiconview.c (gtk_icon_view_move_cursor_start_end): Use
2673 the internal unselect_all function, since we need the unselection
2674 to happen even in browse mode. (#300995, Mathias Hasselmann)
2676 * gtk/gtkuimanager.c (update_node): Use g_object_notify() instead
2677 of triggering a ::notify by re-setting the property. (#300982,
2680 * gtk/gtkaction.c (connect_proxy): Use gtk_action_sync_tooltip().
2682 * gtk/gtkiconview.c (gtk_icon_view_scroll_to_item): Also
2683 scroll horizontally when necessary, and keep the northwest
2684 corner of the item visible. (#300913, Mathias Hasselmann)
2686 * tests/testiconview.c: Add some more tests.
2688 * gtk/gtkiconview.c (gtk_icon_view_select_path): Don't crash
2689 if the path does not point to a row in the model. (#300909,
2691 (gtk_icon_view_rows_reordered): Re-layout here. (#301009,
2694 * tests/testtext.c: Add some more attribute tests.
2696 * gtk/gtktexttag.c (gtk_text_tag_class_init): Correct the documentation
2697 of the rise property. String change, but it is more important to
2698 be correct than to be translated. (#301740)
2700 2005-04-25 Tor Lillqvist <tml@novell.com>
2702 * gtk/gtkfilesystemwin32.c
2703 (gtk_file_system_win32_volume_get_display_name): Get volume name
2704 also on Win9x. (#301798, Daniel Atallah)
2705 (canonicalize_filename): Add explicit braces to silence compiler
2708 2005-04-22 Tor Lillqvist <tml@novell.com>
2710 * gtk/gtkmain.c: Initailize gettext before use. Calling
2711 bindtextdomain() and bind_textdomain_codeset() in
2712 do_post_parse_initialization() is too late. Put the calls in a new
2713 function gettext_initialization(), and call that from
2714 gtk_init_with_args() and gtk_parse_args(). Fixes #170948 for
2715 GTK+'s part, but the same problem occurs also at least in
2716 atk. Thanks to Robert Ögren, Daniel Atallah and Kevin Stange.
2718 2005-04-19 Ivan, Wong Yat Cheung <email@ivanwong.info>
2720 * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Match
2721 character height instead of cell height. Fix #301228.
2723 2005-04-18 Federico Mena Quintero <federico@ximian.com>
2725 Merged from gtk-2-6:
2727 * gtk/gtkfilechooserdefault.c (remove_selected_bookmarks): Remove
2728 obsolete assertion that the selected row can't be a volume; this
2729 is handled by the "removable" column now. Fixes #301017.
2731 2005-04-18 Owen Taylor <otaylor@redhat.com>
2733 * gtk/gtkstyle.c gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c
2734 * gdk/gdkcolor.c gdk/gdkwindow.c gdk/gdkpixbuf-render.c
2735 gdk/gdkpango.c tests/testcairo.c: Update to new Cairo API for
2736 setting color and opacity. (#301066, Vincent Noel)
2738 2005-04-15 Federico Mena Quintero <federico@ximian.com>
2740 Merged from gtk-2-6:
2742 * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
2743 Patch from Christian Neumair <chris@gnome-de.org>; only select the
2744 first row if we are in OPEN mode. The only other case we were
2745 letting pass through was SELECT_FOLDER, but selecting the first
2746 row when changing folders confuses people when folders are
2747 actually being selected. Fixes #171885.
2749 2005-04-13 Matthias Clasen <mclasen@redhat.com>
2751 * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose):
2752 Revert the fix for #169870, adjust the documentation instead.
2754 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
2755 Revert the fix for #170727.
2757 2005-04-11 Ivan, Wong Yat Cheung <email@ivanwong.info>
2761 * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
2764 * gtk/updateiconcache.c: Guard inclusion of unistd.h and
2767 2005-04-09 Matthias Clasen <mclasen@redhat.com>
2769 * gdk/x11/gdkinput-xfree.c:
2770 * gdk/x11/gdkinput-none.c:
2771 * gdk/gtk.symbols: Some more fixes necessary to
2772 make building with gcc 4 work.
2774 Add 16x16 versions of the zoom icons and of
2775 GTK_STOCK_INDEX. Some of the images were taken from
2776 the hicolor icon theme, and were originally created
2777 by Jakub Steiner and Tuomas Kuosmanen. (#167515,
2780 * gtk/stock-icons/stock_index_16.png:
2781 * gtk/stock-icons/stock_zoom_1_16.png:
2782 * gtk/stock-icons/stock_zoom_fit_16.png:
2783 * gtk/stock-icons/stock_zoom_in_16.png:
2784 * gtk/stock-icons/stock_zoom_out_16.png: New images.
2786 * gtk/stock-icons/Makefile.am: Add the new images.
2788 * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose):
2789 Don't display too many broken images. (#169870, Roman
2790 Kagan, patch by Ivan Wong)
2792 * gtk/gtkwidget.c (gtk_widget_unparent): Remove debugging
2793 output. (#300013, Tommi Komulainen)
2795 2005-04-08 Matthias Clasen <mclasen@redhat.com>
2797 * gtk/gtkimage.c (gtk_image_expose, gtk_image_calc_size):
2798 If a stock_id is unknown, display the missing image. (#169870,
2801 * gtk/gtkiconcache.c (icon_name_hash): Use the same function
2802 as in updateiconcache.c. (spotted by Morten Welinder)
2804 2005-04-08 Carl Worth <cworth@cworth.org>
2806 * gdk/gdkpango.c: (emboss_context): Simplify matrix manipulation
2807 now that cairo exposes the cairo_matrix_t structure.
2809 * gdk/gdkpixbuf-render.c: (gdk_pixbuf_set_as_cairo_source): Track
2810 cairo API change in signedness of data argument.
2812 2005-04-08 Matthias Clasen <mclasen@redhat.com>
2814 * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make this
2815 work when called from gtk_combo_box_destroy(). (#172999,
2818 2005-04-08 Matthias Clasen <mclasen@redhat.com>
2820 Fix double-click to autosize treeview columns. This was
2821 probably broken since 2.2 ! (#169675)
2823 * gtk/gtktreeview.c (gtk_tree_view_button_press): Leave the
2824 "user-resized" state of the column on a double-click to
2826 (gtk_tree_view_button_press, gtk_tree_view_motion_resize_column):
2827 Enter the "user-resized" state of the column only if a drag
2828 actually changes the column width, not on any click.
2830 2005-04-07 Matthias Clasen <mclasen@redhat.com>
2832 * gtk/gtkmenu.c (gtk_menu_paint): Allow setting background
2833 images on menus. (#169532, Benjamin Otte)
2835 * gtk/updateiconcache.c (write_card16, write_card32): Avoid
2836 unaligned access. (#172947)
2838 * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu):
2839 Consistently use the term "Bookmarks" in the UI. (#166906,
2842 Some fixes from Morten Welinder (#172947):
2844 * gtk/updateiconcache.c (icon_name_hash): Make this compiler-
2845 and platform-independent.
2846 (is_cache_up_to_date): Don't compare mtimes is a stat call failed.
2847 (build_cache): Error out if a stat fails.
2849 2005-04-07 Matthias Clasen <mclasen@redhat.com>
2851 * gtk/gtktreeview.c (gtk_tree_view_set_expander_column): Add
2852 a hint about hiding expanders.
2854 * gtk/updateiconcache.c (is_cache_up_to_date): Return
2855 TRUE if the cache is newer than the directory. (#172852,
2858 * configure.in: Replace an explicit pkg-config by
2859 $PKG_CONFIG. (#168074, Hans-Wolfgang Loidl)
2861 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region):
2862 Ignore regions which fall completely outside the line.
2863 (#165862, Felipe Heidrich)
2865 2005-04-06 Matthias Clasen <mclasen@redhat.com>
2867 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Document
2868 -1 as possible value.
2869 (gtk_tree_view_enable_model_drag_source)
2870 (gtk_tree_view_enable_model_drag_dest): Pass the target list
2871 to the underlying dnd implementation, otherwise we miss the
2872 target info in the drag-data-received signal. (#164085, Jorn
2875 2005-04-06 Matthias Clasen <mclasen@redhat.com>
2877 * gtk/gtktreeview.c (gtk_tree_view_motion_resize_column)
2878 (gtk_tree_view_bin_expose): Avoid a few unnecessary calls
2879 to gdk_window_get_pointer(). (#168015, Billy Biggs)
2881 * po/.cvsignore, po-properties/.cvsignore: Remove
2882 Makefile.in.in. (#171092, Stepan Kasal)
2884 * gtk/gtkrc.c (gtk_rc_parse_style): Don't modify
2885 scanner->value, copy it first. (#165693, Tommi Komulainen)
2887 2005-04-05 Matthias Clasen <mclasen@redhat.com>
2889 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_grab_focus):
2890 * gtk/gtkcombobox.c (gtk_combo_box_grab_focus): Implement
2891 grab_focus for GtkComboBox and GtkComboBoxEntry. (#171912,
2894 * gtk/gtkicontheme.c: Store icon caches along with the
2895 mtimes of the toplevel directories. The previous
2896 mechanism of a hashtable-per-theme caused duplicate icon
2897 caches for the same toplevel directory to be created.
2900 2005-04-05 Matthias Clasen <mclasen@redhat.com>
2902 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_build_level):
2903 Fix a typo in a warning.
2905 * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Protect
2906 the license and credits buttons from being affected by
2907 gtk_widget_show_all(). (#172724)
2909 2005-04-05 Matthias Clasen <mclasen@redhat.com>
2911 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): Keep a
2912 reference to the item. (#167920, Hazael Maldonado Torres)
2914 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Add some
2915 more docs on interactive search.
2917 2005-04-05 Tor Lillqvist <tml@novell.com>
2919 * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Handle 16 colour
2920 display mode. For some reason, in this mode GetDeviceCaps(BITSPIXEL)
2921 returns 1 (but GetDeviceCaps(NUMCOLORS) does return 16). (#143415)
2923 * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Don't force
2924 24bpp GdkVisual on 32bpp displays. (#140706)
2926 Mon Apr 4 19:13:23 2005 Jonathan Blandford <jrb@redhat.com>
2928 Fix for #172319, Tristan Van Berkom:
2930 * gtk/gtktreeview.c (gtk_tree_view_expand_all): change to use
2931 gtk_tree_view_real_expand_row() instead of doing this by hand.
2933 2005-04-04 Johan Dahlin <johan@gnome.org>
2935 * gtk/gtktextbuffer.c: (gtk_text_buffer_class_init),
2936 (gtk_text_buffer_set_property), (gtk_text_buffer_get_property),
2937 (gtk_text_buffer_set_text): Add GtkTextBuffer::text (#172631)
2939 Mon Apr 4 14:33:55 2005 Manish Singh <yosh@gimp.org>
2941 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text):
2942 cast combo->priv->entry to GTK_ENTRY()
2944 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
2945 cast completion->priv->tree_view to GTK_TREE_VIEW()
2947 2005-04-04 Matthias Clasen <mclasen@redhat.com>
2949 * gtk/gtktextbuffer.c: Some trivial doc fixes.
2951 * gtk/gtkwidget.c (gtk_widget_set_redraw_on_allocate): Improve
2952 the wording of the doc comment. (#172422, Vincent Untz)
2954 2005-04-04 Owen Taylor <otaylor@redhat.com>
2956 * gtk/gtkstyle.c (gtk_default_draw_expander): Covert expander
2957 drawing to Cairo. Also always draw the entire triangle instead
2958 of just drawing the center for prelight. (Fixes inconsistent
2959 drawing in GtkTreeView.)
2961 2005-04-04 Johan Dahlin <johan@gnome.org>
2963 * gtk/gtk.symbols: Remove symbols accidentally added.
2964 * gtk/gtkentryprivate.h: Add boolean property popup_set_width
2965 * gtk/gtktoggletoolbutton.c: (gtk_toggle_tool_button_class_init):
2966 Use object_class instead of gobject_class
2968 Mon Apr 4 12:14:35 2005 Søren Sandmann <sandmann@redhat.com>
2970 * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Translate x, y into
2971 widget coordinates instead of root coordinates. Patch from Jorn
2974 2005-04-04 Matthias Clasen <mclasen@redhat.com>
2976 * gtk/gtktoolbar.c: Add a tooltips property.
2978 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_class_init):
2979 * gtk/gtkruler.c (gtk_ruler_class_init): Add docs.
2981 * gtk/gtktoggletoolbutton.c: Add an active property.
2983 2005-04-04 Matthias Clasen <mclasen@redhat.com>
2985 Allow completion popups to be wider than the entry. (#131916,
2988 * gtk/gtkentrycompletion.[hc]: Add a boolean popup-set-width property.
2990 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
2991 Don't force the popup to have the same width as the entry if
2992 popup-set-width is FALSE.
2994 * gtk/gtk.symbols: Add new functions.
2996 2005-04-04 Matthias Clasen <mclasen@redhat.com>
2998 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
2999 Use gtk_accel_map_change_entry(), so that reusing the same
3000 action name works. (#170727, Paolo Borelli)
3002 2005-04-04 Tor Lillqvist <tml@novell.com>
3004 * gdk/win32/gdkmain.c (_gdk_win32_cf_to_string): New debugging
3005 function, to log a clipboard format name symbolically.
3006 (_gdk_win32_data_to_string): Also new, to log random data bytes.
3008 Implement delayed rendering on Win32, specifically for transfering
3009 images through the clipboard from GTK+ apps to other
3010 apps (#168173, implementation by Ivan Wong):
3012 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
3013 Handle WM_RENDERFORMAT.
3015 * gdk/win32/gdkprivate-win32.h
3016 * gdk/win32/gdkglobals-win32.c: Add _format_atom_table,
3017 _delayed_rendering_data and _image_bmp.
3019 * gdk/win32/gdkmain-win32.c: Initialize _image_bmp.
3021 * gdk/win32/gdkproperty-win32.c (gdk_property_change):
3022 Accept formats other than GDK_TARGET_STRING or _utf8_string, and
3023 assume they are handled through delayed rendering.
3025 * gdk/win32/gdkselection-win32.c (gdk_selection_convert):
3026 Return all available formats (including those registered by GTK+
3027 apps) on request_targets.
3028 (gdk_selection_property_get): We should append a zero byte like
3030 (gdk_win32_selection_add_targets): New function, for
3031 gtkselection's use. Win32 requires that the clipboard owner
3032 registers all valid formats even if the owner wants delayed
3034 (_gdk_win32_selection_convert_to_dib): New function. Convert
3035 images to DIB using gdk-pixbuf.
3037 * gdk/win32/gdkwin32.h: Declare gdk_win32_selection_add_targets().
3039 * gtk/gtkselection.c (gtk_selection_add_target,
3040 gtk_selection_add_targets): Call gdk_win32_selection_add_targets()
3041 to register target formats.
3043 * gdk/gdk.symbols: Add gdk_win32_selection_add_targets().
3045 2005-04-03 Hans Breuer <hans@breuer.org>
3047 [merged from gtk-2-6 branch]
3048 * gdk/win32/gdkdrawable-win32.c : let dash_offset shift the start of
3049 the line pattern not the start of the line. Fixes bug #171641.
3051 * gtk/makefile.msc.in : follow .symbols changes
3053 * gdk/win32/gdkwindow-win32.c : declare and resolve GetAncestor()
3054 dynamically. (It is not available in _WIN_VER <= 0x0400)
3056 * gdk/win32/makefile.msc : removed gdkpango-win32.obj
3058 * gtk/gtkhsv.c gtk/gtkstyle.c : use G_PI instead of M_PI
3060 [also applied to gtk-2-6 branch]
3061 * gdk/makefile.msc gdk-pixbuf/makefile.msc : handle gdk*alias.def
3063 * gdk/makefile.msc.in : add gtkmnemonichash.obj
3065 * test/testgtk.c(set_parent_signal) : use g_message instead of
3066 g_print to keep the 'testgtk --bench=all' output clean
3068 2005-04-03 Matthias Clasen <mclasen@redhat.com>
3070 * gtk/gtkruler.c: Add a "metric" property.
3072 * gtk/gtkradiomenuitem.c: Add a "group" property like
3073 the one found in radio buttons.
3075 * gtk/gtkradiobutton.c (gtk_radio_button_class_init): Fix
3077 (gtk_radio_button_set_group): Add change notification.
3079 2005-04-01 Matthias Clasen <mclasen@redhat.com>
3081 * gtk/gtkselection.c: Move documentation inline, document
3082 if add_target functions append or prepend. (#172350,
3085 2005-04-01 Matthias Clasen <mclasen@redhat.com>
3087 Make gtk_combo_box_get_active_text do the right thing for
3088 GtkComboBoxEntry (#171373, Robert Staudinger)
3090 * gtk/gtkcombobox.h: Add a get_active_text vfunc.
3092 * gtk/gtkcombobox.c (gtk_combo_box_real_get_active_text): And
3095 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text):
3096 Implement get_active_text by always returning the content of
3099 2005-03-31 Sven Neumann <sven@gimp.org>
3101 Merged from gtk-2-6:
3104 * gtk/gtkiconview.c: fixed gtk-doc comments.
3106 2005-03-31 Michael Natterer <mitch@gimp.org>
3108 Allow to pop up menus without grabbing the keyboard. Useful for
3109 stuff like virtual keyboards. Fixes bug #159890
3112 * gtk/gtkmenushell.[ch]: added boolean property "take-focus"
3113 and public API gtk_menu_shell_set/get_take_focus().
3115 * gtk/gtkmenu.c (gtk_menu_popup)
3116 (popup_grab_on_window): don't grab the keyboard if take_focus
3119 * gtk/gtkmenuitem.c (_gtk_menu_item_popup_submen): propagate the
3120 parent menu_shell's take_focus property to the submenu which is
3121 about to be popped up.
3123 2005-03-30 Federico Mena Quintero <federico@ximian.com>
3125 Merged from gtk-2-6:
3129 * gtk/gtktreeview.c (gtk_tree_view_row_changed): Only stop editing
3130 if the row which changed is the same as the row being edited.
3132 2005-03-30 Matthias Clasen <mclasen@redhat.com>
3134 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
3135 Make enable_search control only typeahead, not C-f. (#170435,
3137 (gtk_tree_view_start_interactive_search): Pass keybinding == TRUE.
3139 * gdk/gdkpixbuf.h: Include cairo.h
3141 * gtk/gtkclipboard.c (gtk_clipboard_set_can_store):
3142 Don't accept n_targets == -1.
3143 (clipboard_unset): unref the old_data, not the
3144 user_data which we have just cleared. (#172038, Sven
3147 * gtk/gtkcombobox.c (gtk_combo_box_popup): Don't
3148 segfault if somebody tries to popup an unrealized
3149 combo box. (#172031, Felipe Heidrich)
3151 2005-03-30 Tor Lillqvist <tml@novell.com>
3153 * gdk/win32/gdkevents-win32.c (build_pointer_event_state): The
3154 state field should represent the state before the event, like on
3156 (gdk_event_translate): Fix event filter handling. If an event
3157 filter (global, client message filter, of window-specific) returns
3158 GDK_FILTER_CONTINUE, continue as if nothing happened. If it
3159 returns GDK_FILTER_REMOVE or GDK_FILTER_TRANSLATE, return TRUE
3160 from gdk_event_translate() which means that DefWindowProc() will
3162 (gdk_event_translate): Fix client message handling. Append a
3163 GDK_CLIENT_EVENT unless there is a filter that matches and returns
3164 something other than GDK_FILTER_CONTINUE. (#135552)
3166 2005-03-29 Matthias Clasen <mclasen@redhat.com>
3168 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_visible_func):
3169 Document the need to refilter if parameters of the visibility function
3170 change. (#169516, Olivier Sessink)
3172 Mon Mar 28 15:13:42 2005 Søren Sandmann <sandmann@redhat.com>
3174 * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Don't
3175 invalidate areas that are covered by mapped input-output child
3176 windows. Bug 141380.
3178 2005-03-28 Jeroen Zwartepoorte <jeroen.zwartepoorte@gmail.com>
3180 * gtk/gtkfilechooserdefault.c: (update_preview_widget_visibility): Make
3181 the preview label ellipsize so the dialog layout stays constant.
3184 2005-03-28 Matthias Clasen <mclasen@redhat.com>
3186 * gtk/gtktreeview.c (gtk_tree_view_key_press): Don't pop up
3187 the context menu of the search entry if it is not visible.
3188 (#169534, Billy Biggs)
3190 2005-03-27 Tor Lillqvist <tml@novell.com>
3192 * configure.in: Apparently AC_LIBTOOL_WIN32_DLL isn't deprecated
3193 after all, and in fact necessary with HEAD libtool.
3195 2005-03-26 Matthias Clasen <mclasen@redhat.com>
3198 * gdk/gdkdisplaymanager.c:
3199 Use canonical names for g_object_notify() as well.
3201 2005-03-24 Tor Lillqvist <tml@novell.com>
3203 * configure.in (GTK_EXTRA_CFLAGS): Include the -mms-bitfields flag
3204 in GTK_EXTRA_CFLAGS on Win32, so that it gets included in the
3205 gtk+-2.0.pc file and automatically used by dependents. MSVC users
3206 who use pkg-config will have to manually edit it out from
3207 gtk+-2.0.pc, sorry. Maybe pkg-config should be enhanced to support
3208 some kind of conditionals in .pc files?
3210 2005-03-23 Matthias Clasen <mclasen@redhat.com>
3212 * gtk/gtkfilechooserbutton.c (update_combo_box): Remove
3213 a call whose result was unused and leaked. (#170776,
3216 Some cleanups to the GtkDialog code: (#170746,
3218 * gtk/gtkdialog.c (action_widget_activated): Simplify,
3219 use _gtk_dialog_get_response_for_widget.
3220 (gtk_dialog_add_action_widget): Use the correct signal
3222 (gtk_dialog_set_response_sensitive):
3223 (gtk_dialog_set_default_response): Use get_response_data.
3224 (gtk_dialog_run): Don't disconnect the signals if the
3225 dialog was destroyed while running.
3227 Tue Mar 22 14:16:31 2005 Manish Singh <yosh@gimp.org>
3229 * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label):
3230 Use g_return_if_fail, not g_return_val_if_fail.
3232 2005-03-22 Matthias Clasen <mclasen@redhat.com>
3234 Implement bookmark renaming (#136216, Sean Middleditch)
3236 * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Add
3237 get_bookmark_label and set_bookmark_label vfuncs.
3239 * gtk/gtkfilesystem.h:
3240 * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label):
3241 (gtk_file_system_get_bookmark_label): Wrappers for the
3244 * gtk/gtk.symbols: Add new exported symbols.
3246 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_set_bookmark_label):
3247 (gtk_file_system_unix_get_bookmark_label): Implementations
3248 for the Unix backend.
3250 * gtk/gtkfilechooserdefault.c: Add a context menu to
3251 the bookmarks pane, and allow to rename bookmarks.
3253 2005-03-22 Matthias Clasen <mclasen@redhat.com>
3255 * gtk/gtkpathbar.c (gtk_path_bar_unmap):
3256 * gtk/gtkspinbutton.c (gtk_spin_button_unmap):
3257 * gtk/gtknotebook.c (gtk_notebook_unmap):
3258 * gtk/gtkrange.c (gtk_range_unmap): Stop scrolling when
3259 the widget is unmapped. (#168791, Ryan Lortie)
3261 2005-03-21 Matthias Clasen <mclasen@redhat.com>
3263 * gtk/gtkprivate.h: Define macros GTK_PARAM_READABLE,
3264 GTK_PARAM_WRITABLE, GTK_PARAM_READWRITE which are like
3265 their G_ counterparts, but also mark the name, nick
3266 and blurb as static.
3268 * gtk/*.c: Mark param spec strings as static, using
3271 * gtk/gtkspinbutton.h: Fix a typo.
3273 2005-03-21 Matthias Clasen <mclasen@redhat.com>
3275 * gtk/gtkcellrendererprogress.c:
3276 * gtk/gtkcellrendererpixbuf.c:
3277 * gtk/gtkcellrenderercombo.c:
3278 * gtk/gtkcellrenderer.c:
3279 * gtk/gtkcalendar.c:
3283 * gtk/gtkaspectframe.c:
3285 * gtk/gtkalignment.c:
3286 * gtk/gtkactiongroup.c:
3288 * gtk/gtkaccellabel.c:
3289 * gtk/gtkaboutdialog.c: Mark param spec strings as static.
3291 * gdk/gdkpango.c (gdk_pango_renderer_class_init):
3292 * gdk/gdkdisplaymanager.c (gdk_display_manager_class_init): Mark
3293 param spec strings as static.
3295 2005-03-21 Tor Lillqvist <tml@novell.com>
3297 * modules/engines/ms-windows/*.c: Silence gcc warnings (unused
3298 variables, unhandled enum value in switch). Use g_object_unref()
3299 instead of deprecated gdk_gc_unref() and gdk_drawable_unref().
3301 * modules/engines/ms-windows/xp_theme.c (xp_theme_map_gtk_state):
3302 Add missing "case" keyword.
3304 * modules/engines/ms-windows/Makefile.am: Link with -lgdi32
3307 2005-03-20 Tor Lillqvist <tml@novell.com>
3309 * gdk/win32/gdkdisplay-win32.c (gdk_display_get_name): Return the
3310 Terminal Services session number, window station name (always
3311 "WinSta0" in interactive processes), and desktop name (typically
3312 "Default"), concatenated with backslash separators.
3313 (gdk_display_open): Accept only NULL or the string
3314 gdk_display_get_name() returns as display name.
3316 2005-03-20 Matthias Clasen <mclasen@redhat.com>
3318 Make PLT-reduction work with gcc4, and don't include
3319 everything in gdkalias.h:
3321 * gtk/grk.symbols: Group symbols by header and source file.
3322 * gtk/makegtkalias.pl: Protect definitions by the same
3323 preprocessor symbols used to guard the headers. Move
3324 the alias declarations to a separate file which is
3325 produced when calling makegtkalias.pl -def
3326 * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate
3328 * gtk/*.c: Include gtkalias.h after the other headers,
3329 include gtkaliasdef.c at the bottom.
3330 * gtk/*.h: Small cleanups.
3332 Fri Mar 18 23:59:49 2005 Soeren Sandmann <sandmann@redhat.com>
3334 * gtk/gtkmenutoolbutton.c (arrow_button_button_press_event_cb):
3335 Make right-clicks not pop up the menu.
3337 2005-03-18 Owen Taylor <otaylor@redhat.com>
3339 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_drawable_finish):
3340 Call cairo_surface_finish()
3342 * gdk/gdkinternals.c gdk/x11/gdkdrawable-x11.c: Remoev
3343 _gdk_windowing_set_surface_device_offset().
3345 2005-03-18 Tor Lillqvist <tml@novell.com>
3347 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
3348 WM_MOUSEMOVE, don't check if this process owns the active
3349 window. This makes cross-application widget embedding work better.
3350 On WM_MOVE, don't bother checking for window visibility.
3352 * gdk/win32/gdkim-win32.c: Remove bogus empty doc comment. Remove
3353 unused variables. Add some casts to silence gcc.
3355 2005-02-24 Owen Taylor <otaylor@redhat.com>
3357 * gdk/gdkwindow.c: Use cairo_set_device_offset().
3359 * gdk/win32/gdkdrawable-win32.[ch] gdk/win32/gdkwindow-win32.c
3360 gdk/win32/gdkpixmap-win32.c:
3361 Add_gdk_win32_drawable_acquire/release_dc() to get a DC for the
3362 drawable. Add _gdk_drawable_win32_finish() to clean up resources
3363 when a drawable is destroyed.
3365 * gdk/win32/gdkgc-win32.c gdk/win32/gdkdrawable-win32.c
3366 (blit_from_pixmap) gdk/win32/gdkprivate-win32.h : Use
3367 acquire/release_dc when getting a DC to use with a GC or for
3368 blitting from a pixmap.
3370 * gdk/win32/gdkdrawable-win32.[ch]: Implement ref_cairo_surface()
3372 * gdk/win32/gdkpango-win32.c gdk/win32/gdkdrawable-win32.c Makefile.am:
3373 Remove gdk_screen_get_pango_context(), draw_glyph[_transformed]
3376 * gdk/win32/gdkdrawable-win32.c: Remove
3377 gdk_draw_rectangle_alpha_libgtk_only()
3379 2005-03-17 Owen Taylor <otaylor@redhat.com>
3381 * gdk/gdkpango.c: Fix get_stipple_surface to actually work, set
3382 EXTEND_REPEAT on the stipple pattern.
3384 2005-03-17 Matthias Clasen <mclasen@redhat.com>
3386 * gtk/gtklabel.c (gtk_label_set_markup): Fix formatting
3387 in example in the docs. (#170611, Jianfei Wang)
3389 * gtk/gtkiconview.c (gtk_icon_view_size_allocate): Clamp
3390 adjustment values on resize. (#170567, Tomislav Jonjic)
3392 * gtk/gtkicontheme.c (theme_lookup_icon): Don't crash
3393 if there is no cache. (#170652, Diego Gonzalez)
3395 * gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix):
3396 Make inline completion insert the prefix at the
3397 right spot. (#170146, Doug Quale)
3399 2005-03-17 Tor Lillqvist <tml@novell.com>
3401 * gdk/gdkkeynames.c: gdk_key is a typedef, not a struct tag.
3403 2005-03-16 Matthias Clasen <mclasen@redhat.com>
3405 * gtk/gtkprogressbar.c (gtk_progress_bar_get_ellipsize):
3406 Typo fix in the docs.
3408 * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_set_arrow_tooltip):
3409 Typo fix in the docs.
3411 * gtk/gtkiconview.c (gtk_icon_view_set_columns)
3412 (gtk_icon_view_get_columns, gtk_icon_view_set_item_width)
3413 (gtk_icon_view_get_item_width, gtk_icon_view_set_spacing)
3414 (gtk_icon_view_get_spacing, gtk_icon_view_set_row_spacing)
3415 (gtk_icon_view_set_column_spacing)
3416 (gtk_icon_view_get_row_spacing, gtk_icon_view_get_margin)
3417 (gtk_icon_view_set_margin): Add docs.
3419 * gtk/gtkcellview.c (gtk_cell_view_get_displayed_row):
3422 2005-03-15 Owen Taylor <otaylor@redhat.com>
3424 * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkpixmap.c gdk/gdkwindow.c
3425 gdk/x11/gdkdrawable-x11.c gdk/x11/gdkpixmap-x11.c gdk/x11/gdkwindow-x11.c
3426 gdk/gdkinternals.h: Switch set_cairo_target() virtual function to
3429 * gdk/gdkdrawable.h gdk/gdkdraw.h: Switch set_cairo_target() virtual
3430 function to create_cairo_context()
3432 * gdk/gdkwindow.c: Clear double buffer pixmaps with Cairo.
3434 * gdk/x11/gdkwindow-x11.c: Keep all components in GdkWindowObject.bg_color,
3437 * tests/testcairo.c: Update for create_cairo_context()
3439 * gdk/gdkdraw.c (gdk_draw_trapezoids, gdk_draw_glyphs[_transformed]):
3440 Reimplement in terms of Cairo, bypass the vtable entries.
3442 * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkdisplay-x11.[ch]
3443 gdk/x11/gdkgc-x11.c gdk/x11/gdkpango-x11.c
3444 gdk/x11/gdkprivate-x11.h gdk/x11/Makefile.am: Remove
3445 implementation of draw_trapezoids / draw_glyphs[_transformed].
3447 * gdk/gdkpango.c: Switch GdkPangoRenderer to use Cairo
3449 * gdk/gdkpango.c gdk/x11/gdkpango-x11.c: Move
3450 gdk_pango_context_get_for_screen() into the backend independent code.
3452 * gdk/x11/gdkdrawable-x11.[ch]: Remove Xft use, use RENDER directly
3455 * gdk/gdkdrawable.h gdk/x11/gdkdrawable-x11.c: Remove
3456 gdk_draw_rectangle_alpha_libgtk_only.
3458 * gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c: Add
3459 gdk_pixbuf_set_as_cairo_source()
3461 * gdk/gdk.symbols: Update
3463 * gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkruler.[ch]
3464 gtk/gtk[hv]ruler.c: Convert to Cairo rendering.
3466 * gtk/gtkstyle.c (gtk_default_draw_check, gtk_default_draw_focus,
3467 gtk_default_draw_option): Switch to Cairo. Simplify the checkbutton,
3468 radio button style for now to get something more scalable.
3470 * gtk/gtksettings.c: #if 0 out the code to use PangoXft for hinting/
3471 antialiasing/dpi settings.
3473 2005-03-16 Matthias Clasen <mclasen@redhat.com>
3475 * demos/gtk-demo/editable_cells.c: Also demonstrate
3476 GtkCellRenderer::editing-started and separators.
3478 Tue Mar 15 20:34:33 2005 Manish Singh <yosh@gimp.org>
3480 * gdk/x11/gdkinput-xfree.c: #include gdkaliasdef.c here too.
3482 2005-03-15 Matthias Clasen <mclasen@redhat.com>
3484 Make PLT-reduction work with gcc4, and don't include
3485 everything in gdkalias.h:
3487 * gdk/gdk.symbols: Group symbols by header and source file.
3488 * gdk/makegdkalias.pl: Protect definitions by the same
3489 preprocessor symbols used to guard the headers. Move
3490 the alias declarations to a separate file which is
3491 produced when calling makegdkalias.pl -def
3492 * gdk/Makefile.am (gdkaliasdef.c): Add a rule to generate this
3494 * gdk/*.c, gdk/x11/*.c: Include gdkalias.h after the other
3495 headers, include gdkaliasdef.c at the bottom.
3497 2005-03-16 Tor Lillqvist <tml@novell.com>
3499 * gdk/win32/gdkdisplay-win32.c (_win32_on_clipboard_change): Print
3500 debugging output only if asked for, not always.
3502 * gdk/win32/*.c: Use the %+d%+d format for coordinate pairs in
3503 debugging printout instead of +%d+%d. Misc other additions and
3504 cosmetic improvements to debugging printouts. Use API_CALL() and
3505 GDI_CALL() macros in more places.
3507 * gdk/win32/gdkwindow-win32.c (gdk_window_move, gdk_window_resize,
3508 gdk_window_move_resize): To detect child windows, check whether
3509 the real parent is not the desktop window, instead of relying on
3510 the GDK window type being GDK_WINDOW_CHILD. Foreign GtkPlug
3511 windows have a GDK window type GDK_WINDOW_FOREIGN, but are still
3512 de facto child windows.
3514 * gdk/win32/gdkprivate-win32.h
3515 * gdk/win32/*.c: Drop global variable _gdk_root_window, just call
3516 GetDesktopWindow(). Rename the GdkWindow* _gdk_parent_root to
3519 * gdk/win32/gdkwindow-win32.h (GdkWindowImplWin32): Add
3520 toplevel_window_type field.
3522 * gdk/win32/gdkwindow-win32.c: As there is only one root window in
3523 GDK on Win32, we can compare directly to _gdk_root instead of
3524 checking the window type.
3525 (gdk_window_reparent): When reparenting a child of the desktop
3526 clear out the window decorations. Correspondingly, when
3527 reparenting to the desktop, add decorations. As in the X11
3528 backend, save the window type of a toplevel window when
3529 reparenting, in case it is reparented back to toplevel.
3531 2005-03-15 Matthias Clasen <mclasen@redhat.com>
3533 * gtk/gtkradioaction.c (gtk_radio_action_get_group): Add an
3534 example for manually setting up a group of actions.
3536 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
3537 Document that inline completion requires text-column to be set.
3538 (gtk_entry_completion_compute_prefix): Return NULL if text-column
3541 * gtk/gtkentry.c (check_completion_callback): Call
3542 gtk_entry_completion_complete() before inserting the prefix,
3543 otherwise the prefix may depend on (random) state of the
3546 2005-03-15 Anders Carlsson <andersca@imendio.com>
3548 * docs/iconcache.txt:
3551 * gtk/gtkiconcache.c: (find_image_offset),
3552 (_gtk_icon_cache_get_icon_flags), (_gtk_icon_cache_add_icons),
3553 (_gtk_icon_cache_get_icon), (_gtk_icon_cache_get_icon_data):
3554 * gtk/gtkiconcache.h:
3555 Update to be able to fetch pixbuf data and icon metadata.
3557 * gtk/gtkicontheme.c: (theme_lookup_icon), (gtk_icon_info_free),
3558 (icon_info_ensure_scale_and_pixbuf):
3559 Use new cache functions.
3561 * gtk/updateiconcache.c: (foreach_remove_func), (load_icon_data),
3562 (maybe_cache_image_data), (scan_directory), (write_pixdata),
3563 (get_image_meta_data_size), (get_image_pixel_data_size),
3564 (get_image_data_size), (get_single_node_size), (get_bucket_size),
3565 (write_bucket), (main):
3566 Update to write pixbuf data as well as information from .icon
3569 2005-03-15 Tor Lillqvist <tml@novell.com>
3571 * gdk/win32/gdkmain-win32.c (_gdk_win32_key_to_string): New
3572 debugging function. As GetKeyNameText() returns a localized key
3573 name we need to convert it to UTF-8.
3575 * gdk/win32/gdkprivate-win32.h: Declare it.
3577 * gdk/win32/gdkevents-win32.c: Use it.
3579 * gdk/win32/gdkwindow-win32.c (gdk_window_new_internal): Fix
3580 handling of children of foreign windows. They should be child
3581 windows from Windows's perspective, even if they are toplevel GDK
3584 2005-03-13 Ivan, Wong Yat Cheung <email@ivanwong.info>
3586 * gdk/win32/gdkgeometry-win32.c (gdk_window_scroll): A further fix
3587 for big window support. Now also the test in testgtk works.
3589 2005-03-11 Matthias Clasen <mclasen@redhat.com>
3591 * gtk/gtkaboutdialog.c (add_credits_page): Don't crash on
3592 style changes. (#169334, Yury Puzis)
3594 * gtk/gtkicontheme.c (gtk_icon_theme_set_custom_theme): Fix
3595 the doc comments. (#169967, Masao Mutoh)
3597 2005-03-12 Ivan, Wong Yat Cheung <email@ivanwong.info>
3599 Big window fix for Win32. Big windows are still emulated within
3600 16-bit coordinate limits, though. Big windows now work on NT-based
3603 * gdk/win32/gdkgc-win32.c (_gdk_win32_gdkregion_to_hrgn): Use
3606 * gdk/win32/gdkgeometry-win32.c: Largely rewrite.
3608 * gdk/win32/gdkwindow-win32.c: Minor related changes.
3610 2005-03-10 Matthias Clasen <mclasen@redhat.com>
3612 * gtk/gtkliststore.c (gtk_list_store_insert_with_valuesv):
3613 Fix a doc typo. (#169873, Johan Dahlin)
3615 * gtk/gtkdialog.c (gtk_dialog_map): Don't
3616 try to focus the default_widget if there is
3617 none. (#169881, Thomas Leonard)
3619 Wed Mar 9 19:20:44 2005 Manish Singh <yosh@gimp.org>
3621 * configure.in: Remove inadvertent gail references, require
3624 2005-03-09 Matthias Clasen <mclasen@redhat.com>
3626 * configure.in: Require GLib 2.7.0
3628 2005-03-09 Matthias Clasen <mclasen@redhat.com>
3630 * gtk/gtkwidget.h (struct _GtkWidget): Typo fixes in comments.
3631 (#169728, Morten Welinder, Owen Taylor)
3633 * gtk/gtkwidget.c (gtk_widget_add_mnemonic_label): Fix a typo
3634 in the docs. (#169729, Morten Welinder)
3636 * gtk/gtkimage.c (gtk_image_class_init): Fix a typo.
3638 * gtk/gtkiconview.c (gtk_icon_view_set_model): Queue a resize
3639 when the model is unset. (#169528, Tomislav Jonjic)
3641 2005-03-09 Matthias Clasen <mclasen@redhat.com>
3643 * gtk/gtkviewport.c (gtk_viewport_class_init):
3644 * gtk/gtkuimanager.c (gtk_ui_manager_class_init):
3645 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_class_init):
3646 * gtk/gtktipsquery.c (gtk_tips_query_class_init):
3647 * gtk/gtktext.c (gtk_text_class_init):
3648 * gtk/gtkstatusbar.c (gtk_statusbar_class_init):
3649 * gtk/gtkspinbutton.c (gtk_spin_button_class_init):
3650 * gtk/gtktoggleaction.c (gtk_toggle_action_class_init):
3651 * gtk/gtkoptionmenu.c (gtk_option_menu_class_init):
3652 * gtk/gtkoldeditable.c (gtk_old_editable_class_init):
3653 * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init):
3654 * gtk/gtktoolbutton.c (gtk_tool_button_class_init):
3655 * gtk/gtktoolitem.c (gtk_tool_item_class_init):
3656 * gtk/gtkimage.c (gtk_image_class_init):
3657 * gtk/gtkruler.c (gtk_ruler_class_init):
3658 * gtk/gtkiconview.c (gtk_icon_view_class_init):
3659 * gtk/gtkprogressbar.c (gtk_progress_bar_class_init):
3660 * gtk/gtkprogress.c (gtk_progress_class_init):
3661 * gtk/gtkmenu.c (gtk_menu_class_init):
3662 * gtk/gtkscale.c (gtk_scale_class_init):
3663 * gtk/gtkpaned.c (gtk_paned_class_init):
3664 * gtk/gtkhandlebox.c (gtk_handle_box_class_init):
3665 * gtk/gtkfontbutton.c (gtk_font_button_class_init):
3666 * gtk/gtkfontsel.c (gtk_font_selection_class_init):
3667 * gtk/gtkfilesel.c (gtk_file_selection_class_init):
3668 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
3669 * gtk/gtkcurve.c (gtk_curve_class_init):
3670 * gtk/gtkcombo.c (gtk_combo_class_init):
3671 * gtk/gtkcombobox.c (gtk_combo_box_class_init):
3672 * gtk/gtkcolorbutton.c (gtk_color_button_class_init):
3673 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init):
3674 * gtk/gtkmenuitem.c (gtk_menu_item_class_init):
3675 * gtk/gtkcheckbutton.c (gtk_check_button_class_init):
3676 * gtk/gtktogglebutton.c (gtk_toggle_button_class_init):
3677 * gtk/gtkcellview.c (gtk_cell_view_class_init):
3678 * gtk/gtktoolbar.c (gtk_toolbar_class_init):
3679 * gtk/gtkmenubar.c (gtk_menu_bar_class_init):
3680 * gtk/gtkclist.c (gtk_clist_class_init):
3681 * gtk/gtkctree.c (gtk_ctree_class_init):
3682 * gtk/gtkcolorsel.c (gtk_color_selection_class_init):
3683 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init):
3684 * gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init):
3685 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_class_init):
3686 * gtk/gtkcalendar.c (gtk_calendar_class_init):
3687 * gtk/gtkbbox.c (gtk_button_box_class_init):
3688 * gtk/gtktable.c (gtk_table_class_init):
3689 * gtk/gtkaspectframe.c (gtk_aspect_frame_class_init):
3690 * gtk/gtkframe.c (gtk_frame_class_init):
3691 * gtk/gtkaction.c (gtk_action_class_init):
3692 * gtk/gtkaccellabel.c (gtk_accel_label_class_init):
3693 * gtk/gtkaboutdialog.c (gtk_about_dialog_class_init):
3694 * gtk/gtkdialog.c (gtk_dialog_class_init): More of the same.
3696 2005-03-08 Matthias Clasen <mclasen@redhat.com>
3698 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init):
3699 * gtk/gtkrange.c (gtk_range_class_init):
3700 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init):
3701 * gtk/gtktexttag.c (gtk_text_tag_class_init):
3702 * gtk/gtktextview.c (gtk_text_view_class_init):
3703 * gtk/gtkscrollbar.c (gtk_scrollbar_class_init):
3704 * gtk/gtknotebook.c (gtk_notebook_class_init):
3705 * gtk/gtkentry.c (gtk_entry_class_init):
3706 * gtk/gtkexpander.c (gtk_expander_class_init):
3707 * gtk/gtkarrow.c (gtk_arrow_class_init):
3708 * gtk/gtkalignment.c (gtk_alignment_class_init):
3709 * gtk/gtkbutton.c (gtk_button_class_init):
3710 * gtk/gtklabel.c (gtk_label_class_init):
3711 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init):
3712 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
3713 * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init):
3714 * gtk/gtktreeview.c (gtk_tree_view_class_init):
3715 * gtk/gtkbox.c (gtk_box_class_init):
3716 * gtk/gtkwindow.c (gtk_window_class_init, gtk_window_class_init):
3717 * gtk/gtkcontainer.c (gtk_container_class_init):
3718 * gtk/gtkwidget.c (gtk_widget_class_init):
3719 * gtk/gtkobject.c (gtk_object_class_init): Use canonical names
3720 when registering param specs.
3722 * demos/gtk-demo/editable_cells.c: Use GtkCellRendererCombo
3723 (#169607, Mark McLoughlin)
3725 * gtk/gtk.symbols: Add the new attributes here, too.
3728 * gtk/gtktreeview.h:
3729 * gtk/gtktreeviewcolumn.h:
3730 * gtk/gtktextbuffer.h:
3732 * gtk/gtkfilechooserdialog.h:
3734 * gtk/gtkcontainer.h:
3735 * gtk/gtkcelllayout.h:
3736 * gtk/gtkaboutdialog.h: Use G_GNUC_NULL_TERMINATED where
3737 appropriate. (#165682, Marc Meissner)
3739 2005-03-07 Matthias Clasen <mclasen@redhat.com>
3741 Convert the gdk keyval-keyname tables to a big string
3742 + offsets. (#168901)
3744 * gdk/gen-keyname-table.pl: Perl script inspired by
3745 pango/tools/gen-color-table.pl to create the
3746 gdk_keys_by_keyval and gdk_keys_by_name tables as lists
3747 of offsets pointing into a big const string.
3749 * gdk/keynames.txt: List of keyval-keyname pairs.
3750 * gdk/keyname-table.h: Generated tables.
3752 * gdk/gdkkeynames.c: Include keyname-table.h and don't
3753 generate the inverse table at runtime.
3755 2005-03-07 Matthias Clasen <mclasen@redhat.com>
3757 * gtk/gtkstyle.c: Document which parameters may be NULL.
3758 (#166855, Frank Naumann)
3760 2005-03-07 Matthias Clasen <mclasen@redhat.com>
3762 * AUTHORS: Add original authors of incorporated software.
3764 Thu Mar 3 16:59:44 2005 Manish Singh <yosh@gimp.org>
3766 * configure.in: URL escape the '+' in gtk+ in the bugzilla URL.
3768 2005-03-03 Matthias Clasen <mclasen@redhat.com>
3770 * gtk/gtksettings.c (gtk_settings_get_property):
3771 * gtk/gtkrc.c (gtk_rc_parse_assignment): Don't leak
3772 the values here. (#169047, Philip Langdale)
3774 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
3775 Don't warn if a stock icon cannot be found. (#168830,
3778 2005-03-03 Matthias Clasen <mclasen@redhat.com>
3780 * gtk/gtkwidget.c (gtk_widget_reparent_subwindows):
3781 Avoid warnings if gtk_widget_reparent() is called at
3782 unusual times. (#168966, Christian Persch)
3784 Tue Mar 1 14:04:08 2005 Manish Singh <yosh@gimp.org>
3786 * gdk/x11/gdkproperty-x11.c (virtual_atom_check_init): Cast to avoid
3787 const warnings on data structure seeding.
3789 Tue Mar 1 13:53:56 2005 Manish Singh <yosh@gimp.org>
3791 * gtk/xdgmime/xdgmime.[ch]: revert previous change, maintain ABI.
3793 2005-03-01 Matthias Clasen <mclasen@redhat.com>
3795 * gtk/gtkmenutoolbutton.c (button_state_changed_cb):
3796 Fix prelighting. (#157392, Vincent Noel, patch by
3799 * gtk/gtkicontheme.c (theme_lookup_icon): Make
3800 icon data caching work again. (#168851, Alexander Larsson)
3802 * gdk-pixbuf/gdk-pixbuf.c:
3803 * gdk-pixbuf/gdk-pixbuf-features.h.in:
3804 Revert the previous change, since it breaks
3807 2005-03-01 Matthias Clasen <mclasen@redhat.com>
3810 * gdk/gdkpixbuf-drawable.c
3812 * gdk/x11/gdkdnd-x11.c
3813 * gdk/x11/gdkevents-x11.c
3814 * gdk/x11/gdkproperty-x11.c
3815 * gdk/x11/gdkvisual-x11.c
3816 * gdk-pixbuf/gdk-pixbuf.c
3817 * gdk-pixbuf/gdk-pixbuf-features.h.in
3820 * gtk/gtkcolorbutton.c
3822 * gtk/gtkcontainer.c
3823 * gtk/gtkfilechooserdefault.c
3827 * gtk/gtkinputdialog.c
3828 * gtk/gtkitemfactory.c
3832 * gtk/gtktreedatalist.c
3833 * gtk/gtkuimanager.c
3834 * gtk/tree_minus.xpm
3836 * gtk/xdgmime/xdgmime.c
3837 * gtk/xdgmime/xdgmime.h:
3838 Move constant data to .rodata.
3840 2005-02-27 Matthias Clasen <mclasen@redhat.com>
3842 * gtk/gtkaction.c (connect_proxy): Improve the handling
3843 of buttons as action proxys. (#165534, Milosz Derezynski)
3845 * gtk/gtklabel.c (gtk_label_size_request): Fix a typo.
3846 (#168646, Vincent Untz)
3848 * gtk/gtkfilechooserdefault.c (save_folder_combo_create):
3849 Unset "focus-on-click" for the save folder combo. (#168688,
3852 2005-02-25 Matthias Clasen <mclasen@redhat.com>
3854 * demos/testpixbuf.c (main): Remove a C++ comment. (#168531,
3857 * gtk/gtkcombobox.c (gtk_combo_box_menu_fill_level): Don't leak a
3858 path here. (#168443, Morten Welinder)
3860 2005-02-24 Robert Ögren <gtk@roboros.com>
3862 Implement better handling of Wintab tablet context overlap on
3865 * gdk/win32/gdkinput-win32.c (_gdk_input_set_tablet_active): New
3866 function that brings any tablet contexts to the top of the overlap
3868 * gdk/win32/gdkinput-win32.h: Declare _gdk_input_set_tablet_active ()
3869 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
3870 Call _gdk_input_set_tablet_active when a window is activated (on
3873 2005-02-24 Matthias Clasen <mclasen@redhat.com>
3875 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_select_path):
3876 Don't leak parent_path. (#168435, Morten Welinder)
3878 Thu Feb 24 14:20:16 2005 Søren Sandmann <sandmann@redhat.com>
3880 * gtk/gtkstyle.c: Add
3882 g_return_if_fail (style->depth == gdk_drawable_get_depth(window));
3886 2005-02-24 Matthias Clasen <mclasen@redhat.com>
3888 * gtk/gtkcombobox.c: Consistently use gtk_tree_row_reference_valid().
3889 (gtk_combo_box_model_row_deleted): Update the displayed row in
3890 the cell_view. (#167842, Gustavo Carneiro)
3892 2005-02-24 Matthias Clasen <mclasen@redhat.com>
3894 Fix #167259, reported by Christian Persch:
3896 * gtk/gtkwidget.c (gtk_widget_unparent): Unmap the reparented
3897 widget, even if we avoid the unrealizing.
3898 (gtk_widget_reparent_subwindows): Make reparenting work for
3899 !NO_WINDOW widgets which have other windows which are siblings
3900 of widget->window (as e.g. GtkSpinButton).
3902 2005-02-24 Matthias Clasen <mclasen@redhat.com>
3904 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed):
3905 Don't emit a warning if a parent node is filtered out. (#164726,
3908 2005-02-23 Matthias Clasen <mclasen@redhat.com>
3910 * gtk/gtklabel.c (gtk_label_style_set): Revert the last
3911 change, since gtk_widget_set_style_internal() already
3914 2005-02-23 Matthias Clasen <mclasen@redhat.com>
3916 * gtk/gtklabel.c (gtk_label_style_set): Queue a resize, since
3917 fonts may have changed. (#164128, Phil Blundell)
3919 * gtk/gtkaboutdialog.c (gtk_about_dialog_init)
3920 (gtk_about_dialog_new): Move initialization code from _new to
3921 _init. (#168249, Murray Cumming)
3923 Wed Feb 23 17:34:01 2005 Jonathan Blandford <jrb@redhat.com>
3925 * gtk/gtktreeview.c (gtk_tree_view_node_queue_redraw): Patch from
3926 jorn@nl.linux.org (Jorn Baayen) to notice changes to fixed-height
3929 2005-02-23 Tor Lillqvist <tml@novell.com>
3931 * gdk/win32/gdkkeys-win32.c (update_keymap): Workaround for bug in
3932 MapVirtualKey(VK_DIVIDE, 0) in some Windows versions. (#142998)
3934 Tue Feb 22 13:49:09 2005 Manish Singh <yosh@gimp.org>
3936 * gtk/updateiconcache.c: #include <config.h>
3938 2005-02-22 Federico Mena Quintero <federico@ximian.com>
3940 Merged from gtk-2-6:
3942 Fix #164940, patch by Ben Maurer and Tommi Komulainen.
3944 * gdk/gdkrgb.c (gdk_rgb_convert_565_d): Constify the "dmp" variable.
3945 (gdk_rgb_convert_565_d): Likewise.
3946 (DM_565): Made a static const precomputed array to avoid
3947 allocating it at runtime.
3948 (gdk_rgb_preprocess_dm_565): #ifdef out.
3950 2005-02-20 Matthias Clasen <mclasen@redhat.com>
3953 * gtk/gtkclipboard.c: Fix links to freedesktop.org specs
3954 in the documentation.
3956 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
3957 Set have_render_with_trapezoids to GDK_YES when we have
3958 a new enough Render extension. (#167965,Billy Biggs)
3960 * gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
3961 the last user interaction when focusing the window. (#166379,
3964 Thu Feb 17 14:58:16 2005 Manish Singh <yosh@gimp.org>
3966 * gtk/gtkuimanager.c (start_element_handler): make sure expand
3967 is initialized, cast to GTK_SEPARATOR_TOOL_ITEM.
3969 Thu Feb 17 14:52:57 2005 Manish Singh <yosh@gimp.org>
3971 * gtk/gtkcombobox.c: Pass gtk_widget_get_toplevel() a GTK_WIDGET.
3973 2005-02-16 Matthias Clasen <mclasen@redhat.com>
3975 * docs/iconcache.txt: Add some information about the
3976 icon cache format (since I can't locate it at freedesktop.org)
3978 Fixes for #143829, Tommi Komulainen, Christian Persch:
3980 * gtk/gtktreeview.c (gtk_tree_view_destroy): Remove the
3981 typeselect_flush_timeout when destroying the widgets
3983 (gtk_tree_view_ensure_interactive_directory): Add the
3984 popup to the window group of the toplevel it belongs to.
3986 * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget)
3987 (gtk_combo_box_popup): Do the same here.
3989 2005-02-14 Matthias Clasen <mclasen@redhat.com>
3991 * configure.in: Kill --enable-ansi (#164394)
3993 2005-02-11 Matthias Clasen <mclasen@redhat.com>
3995 * gtk/gtkpathbar.c (gtk_path_bar_finalize): Stop scrolling
3996 when the pathbar goes away. (#167094, Rodney Dawes)
3997 (change_icon_theme): Use GTK_ICON_SIZE_MENU here as
4000 2005-02-11 Matthias Clasen <mclasen@redhat.com>
4002 Support vertical menubars (#166632):
4004 * gtk/gtkenums.h (GtkPackDirection): New enumeration for pack
4005 directions, with values for left-to-right, right-to-left,
4006 top-to-bottom and bottom-to-top.
4010 * gtk/gtkmenubar.c: Add two properties, pack-direction and
4011 child-pack-direction, which specify how children and
4012 grandchildren of a menubar are packed, with getters and setters.
4014 * gtk/gtkmenubar.c (gtk_menu_bar_set_property):
4015 (gtk_menu_bar_get_property): Implement set_property and get_property.
4017 * gtk/gtkmenubar.c (gtk_menu_bar_size_request):
4018 (gtk_menu_bar_size_allocate): Take pack direction into account.
4020 * gtk/gtkmenubar.c (gtk_menu_bar_move_current): Implement
4021 move_current here move all the menubar-specific direction
4022 tweaking from the generic menushell implementation here.
4024 * gtk/gtkmenu.c (gtk_menu_move_current): Move menu-specific
4025 direction tweaking from the generic menushell implementation here.
4027 * gtk/gtkmenuitem.c (gtk_menu_item_size_request):
4028 (gtk_menu_bar_size_allocate): Take pack direction into account.
4030 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_size_request)
4031 (gtk_image_menu_item_size_allocate):
4032 (gtk_image_menu_item_toggle_size_request): Take child pack
4033 direction into account and pack the image vertically if
4036 * gtk/gtkmenushell.c (gtk_menu_shell_real_select_item):
4037 Set the submenu direction to left-right for menuitems in
4039 (gtk_real_menu_shell_move_current): Simplify by moving
4040 direction tweaking to menu- and menubar-specific
4041 implementations. Take pack direction into account when
4044 * tests/testmenubars.c: Test menubars in various packing
4045 direction combinations.
4047 * tests/Makefile.am (noinst_PROGRAMS): Add testmenubars.
4049 2005-02-11 Matthias Clasen <mclasen@redhat.com>
4051 Complete the fix for #165770, Vincent Noel:
4053 * gtk/gtkfilechooserbutton.c (FALLBACK_ICON_SIZE): Make the
4054 fallback size be 16, to be equal to the default for
4055 GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
4056 (gtk_file_chooser_button_init):
4057 (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
4058 GTK_ICON_SIZE_SMALL_TOOLBAR.
4060 2005-02-09 Matthias Clasen <mclasen@redhat.com>
4062 * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): Fix RTL
4063 keynav for going from menubar to menu.
4065 2005-02-08 Christian Rose <menthos@menthos.com>
4067 * configure.in: Added "xh" to ALL_LINGUAS.
4069 2005-02-08 Matthias Clasen <mclasen@redhat.com>
4071 * gtk/gtkuimanager.c (start_element_handler): Accept
4072 the "expand" attribute and set a flag in the node if it
4074 (update_node): If the expand flag is set, make separator
4075 toolitems non-drawn and expanding. (#166489, Christian Persch)
4077 2005-02-05 Hans Breuer <hans@breuer.org>
4079 * gdk/makefile.msc gdk/win32/makefile.msc gtk/makefile.msc.in :
4080 build with Cairo dependency. The patch to acually use Cairo
4081 on win32 will be on gtk-devel-list soon.
4082 * tests/makefile.msc : add testcairo building
4084 * gtk/stock-icons/makefile.msc : split command line into two to
4085 work with the shells default
4087 Fri Feb 4 14:16:31 2005 Manish Singh <yosh@gimp.org>
4089 * gtk/gtkaccelgroup.c (substitute_underscores): remove unused
4092 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
4093 Add some extra parens for bitop order of operations disambiguiation.
4095 * gtk/gtkstock.c: Fix const confusion, make our own copy of the
4096 domain when setting a translate function.
4098 * tests/testcombo.c: removed unused variable.
4100 2005-02-04 Matthias Clasen <mclasen@redhat.com>
4102 * gtk/gtkstock.c (gtk_stock_lookup): Handle item->translation_domain
4103 being NULL. (#166179, Diego Gonzalez)
4105 2005-02-04 Owen Taylor <otaylor@redhat.com>
4107 * configure.in: Revert gtk_binary_version to 2.4.0. Fix
4108 up comment to talk only about backwards compat, not
4109 forward/backwards compat. (#166293, reported by Vincent Noel)
4111 2005-02-04 Matthias Clasen <mclasen@redhat.com>
4113 * gtk/gtkpaned.c (gtk_paned_compute_position): Work better
4114 when there is not enough space. This avoids a nasty size
4115 allocation loop in the file chooser. (#154007, reported
4116 by Milosz Derezynski, patch by Robert Ögren)
4118 2005-02-04 Matthias Clasen <mclasen@redhat.com>
4120 * gtk/gtkentry.c (gtk_entry_create_layout): Avoid spurious
4121 selection of RTL direction if the widget does not have
4122 focus. (#164125, Frederic Crozat)
4124 Thu Feb 3 19:15:55 2005 Manish Singh <yosh@gimp.org>
4126 * gdk/x11/gdkdrawable-x11.c: #include cairo-xlib.h
4128 2005-02-03 Owen Taylor <otaylor@redhat.com>
4130 * gdk/gdkdrawable.[ch] gdkpixmap.c gdkwindow.c: Add
4131 gdk_drawable_set_cairo_target().
4133 * tests/testtreeflow.c (enum): Use grand not rand as a variable
4134 name because one of the cairo headers is pulling in stdlib.h.
4136 * tests/testcairo.c tests/Makefile.am: Add a simple cairo based
4139 * configure.in: Bump release to 2.7.0, gtk_binary_version to 2.7.0.
4141 * Require libpangocairo for all backends.
4143 2005-02-03 Tor Lillqvist <tml@novell.com>
4145 * modules/input/gtkimcontextime.c (get_pango_attr_list): Use the
4146 wide character version of ImmGetCompositionString() here,
4147 too. (#165278, Takuro Ashie)
4149 2005-02-03 Matthias Clasen <mclasen@redhat.com>
4151 * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Don't do
4152 one roundtrip per motion event. (#166173, pointed out
4153 by Chris Lee, patch by Søren Sandmann)
4157 * gtk/gtkstock.c (gtk_stock_set_translate_func):
4158 New function which allows to change the function used for
4159 translation stock labels, on a per-domain basis. Use this
4160 functionality to switch the GTK+ stock items to use Q_()
4161 prefixed msgids. (#166179, Funda Wang)
4163 * gdk/gdkkeynames.c: Make the gdk_key array const (#166075,
4166 2005-02-02 Federico Mena Quintero <federico@ximian.com>
4168 Merged from gtk-2-6:
4170 * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
4171 Don't select the first row if the chooser is not mapped. This
4172 happens when it's acting on behalf of GtkFileChooserButton. Also,
4173 don't select the first row if we are in SAVE or CREATE_FOLDER
4174 modes --- I had missed that (see the ChangeLog entry from
4175 2005-01-18). Fixes #165264.
4177 2005-02-02 Tor Lillqvist <tml@novell.com>
4179 Implement lazy extended input initialization on Win32, by Robert
4180 Ögren. Fixes #163163, possibly #162334. Lazy initialization would
4181 be a good idea in any case even if it didn't fix any visible
4184 The Wacom tablet driver seems to get confused if Wintab is
4185 initialized but no window is shown before the process exits. This
4186 is the case for some GIMP plug-ins, for instance.
4188 * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Made
4189 non-static (and renamed).
4190 (_gdk_input_init): Don't call _gdk_input_wintab_init_check().
4192 * gdk/win32/gdkinput-win32.h: Declare _gdk_input_wintab_init_check().
4194 * gdk/win32/gdkinput.c (gdk_devices_list,
4195 gdk_display_list_devices, gdk_input_set_extension_events): Call
4196 _gdk_input_wintab_init_check() here instead.
4198 2005-02-02 Ivan, Wong Yat Cheung <email@ivanwong.info>
4200 * gdk/win32/gdkselection.c: Use a FIFO list for storing GdkSelProp
4201 of a single window so that gtk_clipboard_request_contents() can be
4202 called inside a GtkClipboardReceivedFunc(). (#163844)
4204 2005-02-01 Matthias Clasen <mclasen@redhat.com>
4206 * gtk/gtkicontheme.c (gtk_icon_theme_init): Look for icons
4207 in XDG_DATA_DIRS/pixmaps. (#165950, Thomas Zajic)
4209 * gtk/gtkwindow.c (gtk_window_set_icon_name): Set info->icon_list
4210 to NULL after freeing it. (#165800, Damon Chaplin)
4212 2005-02-01 Michael Natterer <mitch@gimp.org>
4214 * configure.in: depend on stable pango-1.8, not unstable 1.7
4216 2005-02-01 Federico Mena Quintero <federico@ximian.com>
4218 Merged from gtk-2-6:
4220 * gtk/gtkfilechooserdefault.c
4221 (browse_files_model_finished_loading_cb): Don't
4222 g_assert_not_reached() if we are in any other state. Another code
4223 path may have triggered a folder reload. Fixes #165556.
4225 2005-02-01 Federico Mena Quintero <federico@ximian.com>
4227 Merged from gtk-2-6:
4231 * gtk/gtkfilechooserdefault.c (FALLBACK_ICON_SIZE): Make the
4232 fallback size be 16, to be equal to the default for
4233 GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
4234 (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
4235 GTK_ICON_SIZE_SMALL_TOOLBAR.
4237 2005-02-01 Matthias Clasen <mclasen@redhat.com>
4239 * */*.c: Fix many instances of "the the" in docs and
4240 comments. (#165815, Masao Mutoh)
4242 * gtk/updateiconcache.c (main): Add a --quiet option.
4244 2005-02-01 Tor Lillqvist <tml@novell.com>
4246 * gdk/win32/gdkkeys-win32.c (handle_special, set_shift_vks,
4247 reset_after_dead, handle_dead): New functions, code blocks
4248 refactored out of update_keymap(). No functionality change.
4250 (update_keymap): Use ToUnicodeEx() when available (on NT-based
4251 Windows) instead of ToAsciiEx(). Makes keyboard input work in
4252 Unicode-only input locales that don't have any ANSI codepage, for
4253 instance Hindi and Bengali. Use _gdk_input_codepage only on
4256 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
4257 WM_INPUTLANGCHANGE, use GetLocaleInfo() instead of
4258 TranslateCharsetInfo() to get the input locale's corresponding
4261 2005-01-31 Matthias Clasen <mclasen@redhat.com>
4263 * modules/input/gtkimcontextxim.c: Use NULL, not 0 to terminate
4264 NULL-terminated va lists. (#165683)
4266 2005-01-29 Matthias Clasen <mclasen@redhat.com>
4268 * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_set_draw):
4269 Typo fix. (#165581, Masao Mutoh)
4271 Thu Jan 27 14:25:45 2005 Manish Singh <yosh@gimp.org>
4273 * README.cvs-commits: update ancient IRC info.
4275 2005-01-27 Federico Mena Quintero <federico@ximian.com>
4277 Merged from gtk-2-6:
4279 * gtk/gtkfilechooserdefault.c
4280 (gtk_file_chooser_default_select_path): Oops, don't assert that we
4281 can't reach the end of the function; this happens if we are still
4282 loading but don't need a path change. Fixes #165213.
4284 2005-01-27 Matthias Clasen <mclasen@redhat.com>
4286 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
4287 Make wrapping work in RTL mode.
4289 * gtk/gtkaboutdialog.c: Some visual tweaks to the about dialog,
4290 obey HIG spacing a bit more, add a hand cursor when over the
4291 link button. (#163979, Jorn Baayen)
4293 2005-01-26 Matthias Clasen <mclasen@redhat.com>
4295 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
4296 Don't allow -1 as minimum-key-length.
4297 (gtk_entry_completion_set_model): Add missing notification.
4298 (gtk_entry_completion_set_minimum_key_length): Add missing
4299 notification, allow setting minimum-key-length to 0. (#165194,
4302 2005-01-26 Matthias Clasen <mclasen@redhat.com>
4304 * gtk/gtkaboutdialog.c (display_license_dialog): Make sure
4305 the license dialog is initially displayed without a horizontal
4307 (gtk_about_dialog_class_init): Document the fact that the
4308 license text is not wrapped. (#165012, Christian Rose)
4310 2005-01-25 Matthias Clasen <mclasen@redhat.com>
4312 * gtk/gtkbutton.c (gtk_button_set_image): Fix docs. (#165180,
4315 * gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): Fix
4316 docs. (#165163, Jeff Franks)
4318 * gtk/gtkimage.c (gtk_image_get_property): Use the correct setter
4319 for a string GValue. (#165203, Damon Chaplin)
4321 2005-01-24 Matthias Clasen <mclasen@redhat.com>
4323 * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display):
4324 Initialize user_time from DESKTOP_STARTUP_ID. (#165131,
4327 2005-01-24 Federico Mena Quintero <federico@ximian.com>
4329 * gtk/gtkfilechooserdefault.c: Removed leftover comments.
4331 2005-01-24 Federico Mena Quintero <federico@ximian.com>
4333 Merged from gtk-2-6:
4335 Fix #147785 and clean up the loading code:
4337 * gtk/gtkfilechooserdefault.c (LoadState): Make the set of states
4338 be EMPTY, PRELOAD, LOADING, FINISHED.
4339 (gtk_file_chooser_default_init): Start in the LOAD_EMPTY state.
4340 (struct _GtkFileChooserDefault): Added a pending_select_paths
4342 (load_remove_timer): Add the new states.
4343 (load_setup_timer): Likewise.
4344 (load_timeout_cb): Likewise. Switch to the LOAD_LOADING state.
4345 (browse_files_model_finished_loading_cb): Switch to the
4346 LOAD_FINISHED state.
4347 (enum PendingOp): Removed.
4348 (struct _GtkFileChooserDefault): Removed the pending_op and
4349 pending_select_path fields.
4350 (pending_select_paths_free): New utility function.
4351 (pending_select_paths_add): New utility function.
4352 (gtk_file_chooser_default_finalize): Call
4353 pending_select_paths_free().
4354 (pending_op_queue): Removed.
4355 (pending_op_process): Removed.
4356 (pending_select_paths_process): New function.
4357 (browse_files_model_finished_loading_cb): Call
4358 pending_select_paths_process().
4359 (center_selected_row_foreach_cb): Handle multiple selection by
4360 only centering the first row.
4361 (get_is_file_filtered): Constify.
4362 (gtk_file_chooser_default_select_path): Queue into a list of paths
4363 to select if we are not finished loading.
4364 (show_and_select_paths): New utility function.
4365 (up_folder_handler): Use pending_select_paths_add().
4366 (gtk_file_chooser_default_should_respond): Do not call
4367 pending_op_queue(); free the pending_selected_paths instead.
4368 (gtk_file_chooser_default_initial_focus): Don't queue a pending
4369 operation, and don't select the first row unconditionally --- this
4370 will happen when the folder is done loading.
4371 (shortcuts_row_activated_cb): Free the pending_select_paths.
4372 (pending_select_paths_store_selection): New utility function.
4373 (gtk_file_chooser_default_map): Call
4374 pending_select_paths_store_selection() to save the selection
4375 before reloading the folder.
4376 (select_func): Umm? Call gtk_tree_selection_select_iter(). Don't
4377 move the cursor here; it will be done when processing the pending paths.
4379 * tests/testfilechooser.c (main): Add a button to the command
4380 window to unmap and remap the file chooser.
4382 2005-01-24 Matthias Clasen <mclasen@redhat.com>
4384 * docs/tutorial/gtk-tut.sgml:
4385 * docs/tutorial/gtk_tut.sgml:
4386 * docs/reference/gtk/tmpl/gtkliststore.sgml:
4387 * gtk/gtkactiongroup.c:
4388 * gtk/gtksizegroup.c:
4389 * gtk/gtksizegroup.h:
4390 * gtk/gtktogglebutton.c: Replace "effect" by "affect" where
4391 appropriate. (#165108, Dan Winship)
4393 2005-01-24 Matthias Clasen <mclasen@redhat.com>
4395 * gtk/gtkwidget.c (gtk_widget_class_init): Document
4396 GtkWidget::style-set. (#164222, Alex Graveley)
4398 2005-01-22 Matthias Clasen <mclasen@redhat.com>
4400 * gdk/gdkdisplay.h (gdk_display_add_client_message_filter_full):
4401 Remove the accidentally added prototype for this unimplemented
4402 function. (#164893, Jeff Franks)
4404 * gtk/gtktreeview.c (gtk_tree_view_leave_notify): Avoid spurious
4407 2005-01-23 Tor Lillqvist <tml@novell.com>
4409 * gdk/win32/gdkkeys-win32.c (update_keymap): Handle Greek tonos
4410 dead accent key. (#164859, reported and fix verified by Daniel
4413 * gtk/gtkimcontextsimple.c (gtk_compose_seqs): Handle
4414 GDK_Greek_accentdieresis (tonos and dialytika) combining with iota
4417 * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_volume_get_display_name):
4418 Don't call GetVolumeInformation() for network drives. They might
4419 be disconnected, and calling GetVolumeInformation() will then
4420 cause long delays. (#164448, reported by Dave Neary.) It seems to
4421 be very hard to reliably find out whether a network drive is
4422 connected or not, so it's easier to just not try getting the
4423 volume name for them. See the bug report for discussion.
4425 Make volume name display formats translatable.
4427 Fix for #163702, from Ivan Wong:
4429 * gdk/win32/gdkprivate-win32.h
4430 * gdk/win32/gdkglobals-win32.c: New flag _ignore_destroy_clipboard.
4432 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle
4433 WM_DESTROYCLIPBOARD. Unless _ignore_destroy_clipboard, generate a
4434 GDK_SELECTION_CLEAR event.
4436 * gdk/win32/gdkselection-win32.c
4437 (gdk_selection_owner_set_for_display): Set _ignore_destroy_clipboard
4438 when emptying the clipboard ourselves.
4440 (gdk_selection_send_notify_for_display): Remove the artifical
4441 GDK_SELECTION_CLEAR event generation.
4443 2005-01-21 Matthias Clasen <mclasen@redhat.com>
4445 * gtk/gtkwidget.c (gtk_widget_get_accessible): More details
4446 provided by Bill Haneman.
4448 2005-01-20 Matthias Clasen <mclasen@redhat.com>
4450 * gtk/gtkwidget.c (gtk_widget_get_accessible): Add docs. (#164725,
4453 * gtk/gtkdialog.c (gtk_dialog_map): Don't loop forever
4454 here, even if the only focusable widgets are labels.
4456 2005-01-20 Matthias Clasen <mclasen@redhat.com>
4458 Support tinting in GtkCellRendererPixbuf (#162903, Jorn Baayen):
4460 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init)
4461 Add a follow-state property which when TRUE causes the pixbuf
4462 to be tinted according to state.
4464 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
4465 Use follow-state and colorize the pixbuf when appropriate.
4467 2005-01-20 Matthias Clasen <mclasen@redhat.com>
4469 Support wrapping in GtkCellRendererText (#163608):
4471 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
4472 Add wrap-mode and wrap-width properties which cause a
4473 text cell to break to a specified width when set.
4475 * gtk/gtkcellrenderertext.c (get_layout): Use wrap-mode
4476 and wrap-width when they are set.
4478 2005-01-20 Matthias Clasen <mclasen@redhat.com>
4480 * gtk/gtkmodules.c (load_module): Don't reverse the order
4481 of modules when putting them in gtk_modules. (#162676, Dennis
4482 Cranston, patch by Remus Draica)
4484 * gtk/gtktreeview.c (gtk_tree_view_search_move): Don't crash
4485 if the tree is empty. (#164669, Priit Laes)
4487 Wed Jan 19 18:57:02 2005 Manish Singh <yosh@gimp.org>
4489 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call
4490 GDK_DISPLAY_XDISPLAY with a display, not a window. Clean up the
4493 Wed Jan 19 17:17:31 2005 Manish Singh <yosh@gimp.org>
4495 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Squash
4496 strict aliasing warning in _NET_VIRTUAL_ROOTS code.
4498 2005-01-19 Tor Lillqvist <tml@novell.com>
4500 * gdk/win32/gdkkeys-win32.c (update_keymap,
4501 gdk_keymap_translate_keyboard_state): Handle keyboards with
4502 ShiftLock (and not CapsLock) correctly. (#161814)
4504 2005-01-19 Matthias Clasen <mclasen@redhat.com>
4506 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
4507 In save mode, don't return paths containing nonexisting
4508 directories. (#162443, Jean Marie Favreau)
4510 * gtk/gtkobject.c (gtk_object_add_arg_type): Use GLib limit
4511 macros to avoid sparse warnings. Pointed out by Kjartan Maraas.
4513 * gdk/x11/gdkdisplay-x11.c: Precache the _NET_VIRTUAL_ROOTS
4516 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents):
4517 Support _NET_VIRTUAL_ROOTS. (#163910, Carsten Haitzler)
4521 * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_get_user_time):
4522 Add a function to obtain the last user interaction
4523 time. (#163119, Elijah Newren)
4525 Tue Jan 18 13:56:09 2005 Manish Singh <yosh@gimp.org>
4527 * gtk/gtkfilechooserdefault.c (pending_op_queue): Actually assign
4530 Tue Jan 18 13:46:46 2005 Manish Singh <yosh@gimp.org>
4532 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
4533 disambiguate nested if/else.
4535 2005-01-18 Federico Mena Quintero <federico@ximian.com>
4537 Merged from gtk-2-6:
4539 * gtk/gtkfilechooserdefault.c (pending_op_queue): Don't queue an
4540 operation to select the first file if we are in SAVE or
4541 CREATE_FOLDER modes. Executing that operation would overwrite the
4542 contents of the save-name entry.
4544 2005-01-18 Matthias Clasen <mclasen@redhat.com>
4547 * gdk/x11/gdkwindow-x11.c (gdk_display_warp_pointer):
4548 * gdk/win32/gdkwindow-win32.c (gdk_display_warp_pointer): Add
4549 pointer warping to GDK. (#160437)
4551 * gtk/gtkcolorsel.c (key_press): Use gdk_display_warp_pointer.
4553 2005-01-18 Matthias Clasen <mclasen@redhat.com>
4555 * gtk/gtkstyle.c (gtk_default_draw_check)
4556 (gtk_default_draw_option, gtk_default_draw_handle): Add some
4557 more NULL checks, patch by Michael Natterer.
4559 Tue Jan 18 10:55:47 2005 Søren Sandmann <sandmann@redhat.com>
4561 * gtk/gtkstyle.c (gtk_default_draw_handle): Check for NULL detail
4564 * gtk/gtkstyle.c (gtk_default_draw_box): Check for NULL detail and
4565 NULL widget. (#164477, Michael Natterer)
4567 2005-01-18 Matthias Clasen <mclasen@redhat.com>
4569 Avoid X errors when running against servers which
4570 implement XRender < 0.4. (#164427, Albert Chin)
4572 * gdk/x11/gdkprivate-x11.h:
4573 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
4574 New function to check for trapezoid support in XRender.
4575 (gdk_x11_draw_trapezoids, _gdk_x11_drawable_draw_xtrapezoids):
4578 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a
4579 separate have_render_with_trapezoids field.
4581 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize it.
4583 2005-01-17 Matthias Clasen <mclasen@redhat.com>
4585 * gtk/gtkiconview.c: Remove debug output. (#164376, Jens Finke)
4587 Mon Jan 17 16:44:36 2005 Jonathan Blandford <jrb@redhat.com>
4589 * docs/Makefile.am (EXTRA_DIST): add tree-column-sizing.png to
4592 2005-01-17 Matthias Clasen <mclasen@redhat.com>
4594 * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmarks): Save
4595 and restore the selected row in the bookmark list and the
4596 save folder combo. (#164290)
4598 2005-01-16 Matthias Clasen <mclasen@redhat.com>
4600 * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new_with_backend):
4601 Fix argument order in docs.
4603 2005-01-15 Matthias Clasen <mclasen@redhat.com>
4605 * gtk/gtktextview.c (gtk_text_view_check_keymap_direction):
4606 * gtk/gtkentry.c (gtk_entry_create_layout): Prefer LTR over RTL
4607 if the keymap is neutral. (#164125, Phil Blundell)
4609 2005-01-14 Matthias Clasen <mclasen@redhat.com>
4611 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Allow to
4612 reset the property to its default value -1.
4613 (gtk_tree_view_get_search_column): Return the default value in
4614 the g_return_val_if_fail() check. (#163864, Richard Hult)
4616 * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_set_value):
4617 Add a translator hint. (#163889)
4619 * configure.in: Check for _NL_TIME_FIRST_WEEKDAY too, since it
4620 is an enum value, not a define. Pointed out by Tommi Komulainen.
4621 * gtk/gtkcalendar.c (gtk_calendar_init): Adapt.
4623 2005-01-13 Matthias Clasen <mclasen@redhat.com>
4625 * configure.in: Check for nl_langinfo()
4626 * gtk/gtkcalendar.c (gtk_calendar_init): Use nl_langinfo() when it's
4627 available to determine first day of week (#163842, Vincent Untz)
4629 * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Add hints about
4630 the lifecycle of widgets. (#159503, Christian Persch)
4632 * demos/gtk-demo/main.c (create_text): Use monospace for the
4633 source code view. (#163526, Theerud Lawtrakul)
4635 * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Use R as mnemonic
4636 for the Credits button to avoid duplicate. (#163465, Tim-Philipp
4639 * configure.in: Add an OS_LINUX conditional.
4641 * gdk/Makefile.am (TESTS):
4642 * gdk-pixbuf/Makefile.am (TESTS):
4643 * gtk/Makefile.am (TESTS): Only run abicheck on Linux. (#163917,
4646 2005-01-13 Matthias Clasen <mclasen@redhat.com>
4648 * gtk/gtktreeview.c: (gtk_tree_view_class_init),
4649 (gtk_tree_view_set_headers_clickable): Make the headers-visible
4650 property readwrite instead of just writable, and remove the
4651 g_return_if_fail check that there is a model when setting this
4652 property. Also improve the blurb. (#163851, Richard Hult)
4654 2005-01-12 Owen Taylor <otaylor@redhat.com>
4656 * configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on
4657 initialization of gdktarget, that was causing it to be
4658 evaluated before host was set. Simplify --with-gdktarget help
4661 * gtk/Makefile.am: Use grep | head -n 1 instead of grep -m 1
4662 which doesn't work with slightly older versions of GNU grep
4663 in install-libtool-import-lib rule.
4665 2005-01-12 Tor Lillqvist <tlillqvist@novell.com>
4667 Fix for #162790, by Iwan Wong:
4669 * gdk/win32/gdkdrawable-win32.c: Implement dashed lines
4670 correctly. Simplify the interface to render_line_horizontal() and
4671 render_line_vertical(). Need to draw lines "manually" also on
4672 NT-based Windowses if we have a dash offset or are drawing
4673 double-dashed lines.
4675 * gdk/win32/gdkprivate-win32.h: Keep also the dash offset,
4676 double-dash flag, and a brush for the background colour (used by
4677 the odd dashes in the double-dash line style) in the GdkGCWin32
4680 * gdk/win32/gdkgc-win32.c: Set up above new fields.
4682 2005-01-10 Federico Mena Quintero <federico@ximian.com>
4686 * gtk/gtkfilesystemunix.c (STAT_NEEDED_MASK): Take out
4687 GTK_FILE_INFO_IS_HIDDEN; we don't need to stat() to know this.
4688 (gtk_file_system_unix_get_folder): Make error reporting more
4689 accurate. Don't bail out if we can't read the directory.
4690 (fill_in_stats): Don't return an error; just assume we don't have
4691 stat info for this folder's files.
4692 (fill_in_names): Don't create the hash table for the names if we
4693 can't open the directory.
4694 (gtk_file_folder_unix_list_children): Don't emit the
4695 "finished-loading" signal --- we don't do asynchronous loads, so
4696 we are always finished loading.
4697 (gtk_file_folder_unix_get_info): Use helper functions; handle the
4698 case where we can't stat '/'.
4699 (get_icon_type_from_path): Don't call fill_in_stats() here; only
4700 use the info we have.
4701 (fill_in_mime_type): Don't return an error. Don't do anything if
4702 we don't have the stat info.
4704 2005-01-10 Owen Taylor <otaylor@redhat.com>
4706 * Makefile.am (EXTRA_DIST): Adding missing ChangeLog.pre*
4709 2005-01-10 Matthias Clasen <mclasen@redhat.com>
4711 * gtk/gtkaccelgroup.c (gtk_accel_group_class_init): Document
4712 signals. (#163319, Murray Cumming)
4714 2005-01-09 Tor Lillqvist <tlillqvist@novell.com>
4716 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Set current
4717 cursor also when changing the cursor of a window that is the first
4718 ancestor of the window containing the pointer that has a cursor
4719 defined. (#163035, Ivan Wong)
4721 2005-01-09 Anders Carlsson <andersca@gnome.org>
4723 * gtk/gtkcellrenderertext.c: (get_size):
4724 * gtk/gtklabel.c: (gtk_label_size_request):
4725 * gtk/gtkprogressbar.c: (gtk_progress_bar_size_request):
4726 Don't pass NULL to pango_context_get_metrics. Use
4727 pango_context_get_language instead, which is way faster.
4729 2005-01-08 Matthias Clasen <mclasen@redhat.com>
4731 * configure.in: Bump version
4733 * === Released 2.6.1 ===
4735 * gdk-pixbuf-2.0.pc.in: Require gmodule-no-export-2.0
4737 2005-01-07 Tor Lillqvist <tml@iki.fi>
4739 * gdk/win32/gdkselection-win32.c (_gdk_selection_property_store):
4740 Fix braino. (#163232, Arnaud Charlet)
4742 2005-01-06 Matthias Clasen <mclasen@redhat.com>
4744 * gtk/gtkiconview.c: Make markup_column work, and fix some
4745 layout issues when either icon or text is missing. (#163065)
4747 2005-01-06 Federico Mena Quintero <federico@ximian.com>
4749 * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu): Add an
4750 "Open _Location" item. Fixes #148839.
4752 2005-01-06 Matthias Clasen <mclasen@redhat.com>
4754 * README.in: Fix a typo. (#163128, kentaro fukuchi)
4756 2005-01-06 James M. Cape <jcape@ignore-your.tv>
4758 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new)
4759 (gtk_file_chooser_button_new_with_backend): Use default title if
4762 * docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Make examples
4765 2005-01-05 Federico Mena Quintero <federico@ximian.com>
4769 * gtk/gtkfilechooserdefault.c (shortcuts_row_activated_cb): Queue
4770 a pending operation to select the first row.
4772 2005-01-05 Federico Mena Quintero <federico@ximian.com>
4774 * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Don't call
4775 button_data_free() explicitly; the button is weak-reffed and the
4776 callback will free the button data. Fixes #163010.
4777 (_gtk_path_bar_set_path): Don't ref/sink the button. And for the
4778 failure case, call gtk_widget_destroy() on it.
4780 * gtk/gtkfilechooserdefault.c (check_is_folder): Use
4781 gtk_file_system_get_folder() again (see the ChangeLog entry from
4782 2004-08-25). We can't first get the parent folder and then
4783 request the info for the path in question, as the parent folder
4784 may not be readable. See bug #162617.
4785 (gtk_file_chooser_default_set_current_folder): Assert that the
4786 passed-in path is not null.
4787 (shortcuts_find_current_folder): Likewise.
4788 (shortcuts_add_current_folder): Likewise.
4789 (set_list_model): Likewise.
4790 (gtk_file_chooser_default_map): Only reload the current folder if
4792 (bookmarks_check_add_sensitivity): Check for the current folder
4794 (browse_files_select_first_row): Don't set the cursor if there is
4797 2005-01-05 Matthias Clasen <mclasen@redhat.com>
4799 * gtk/gtkfilechooserdefault.c: Don't construct errors from
4800 the GTK_FILE_SYSTEM_ERROR domain. Partial fix for #162911.
4801 (get_file_info, check_is_folder): Translate errors from
4802 the filesystem into the GTK_FILE_CHOOSER_ERROR domain. Rest
4803 of the fix for #162911, noticed by Murray Cumming.
4805 Wed Jan 5 11:42:49 2005 Søren Sandmann <sandmann@redhat.com>
4807 * gtk/gtkviewport.c (gtk_viewport_realize):
4808 * gtk/gtktextview.c ((text_window_realize): Set the background of
4809 the windows to None instead of adding EXPOSURE_MASK, as suggested
4812 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Update
4813 the user time when receiving a WM_DELETE message. (#162980,
4816 Tue Jan 4 16:52:14 2005 Jonathan Blandford <jrb@redhat.com>
4818 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
4819 only reorder on button 1, part of #141937
4821 Tue Jan 4 11:36:43 2005 Søren Sandmann <sandmann@redhat.com>
4825 * gtk/gtktextview.c (text_window_realize): Add GDK_EXPOSURE_MASK
4826 to win->window's event_mask
4828 * gtk/gtkviewport.c (gtk_viewport_realize): Add GDK_EXPOSURE_MASK
4829 to viewport->view_window.
4831 2005-01-04 Matthias Clasen <mclasen@redhat.com>
4833 * demos/testpixbuf.c (main): Remove the size_prepared callback,
4834 to test incremental display.
4835 (new_testrgb_window): Return the drawing area, not the window,
4836 since we want to queue draws on the drawing area.
4838 2005-01-03 Matthias Clasen <mclasen@redhat.com>
4840 * examples/*: Re-extract.
4842 * docs/tutorial/gtk-tut.sgml: Small corrections.
4844 * docs/tutorial/gtk-tut.sgml: Some updates for the drawing
4845 section. (#161414, Robert Ancell)
4847 * docs/tutorial/gtk-tut.sgml: Make it build.
4849 * gtk/gtkdialog.c (gtk_dialog_run): Some clarification
4850 regarding modality. (#112903, Dave Bordoley)
4852 * gtk/gtkfixed.c (gtk_fixed_set_has_window):
4853 Add a little motivation. (#145556, Tommi Komulainen)
4855 * docs/tutorial/gtk-tut.sgml: Clarify section on
4856 g_signal_connect_swapped. (#120543, David Bourguignon)
4858 Make gtk_icon_theme_load_icon() work independent of
4859 icon factory initialization. (#162791, Tristan Van Berkom)
4861 * gtk/gtkiconfactory.[hc]: Rename ensure_default_icons to
4862 _gtk_icon_factory_ensure_default_icons, and make it non-static.
4864 * gtk/gtkicontheme.c (find_builtin_icon): ..and call it here.
4866 2005-01-02 Matthias Clasen <mclasen@redhat.com>
4868 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_remove_shortcut_folder):
4869 Don't add a shortcut here. (#162752, Tor Lillqvist)
4871 2005-01-02 Tor Lillqvist <tml@iki.fi>
4873 * gtk/Makefile.am (libgtk_target_ldflags): Add -lole32, needed for
4874 CoTaskMemFree in get_special_folder() below.
4876 * gtk/gtkfilesystem.h: Implement case-insensitive path compare on
4877 Win32 using _gtk_file_system_win32_path_compare().
4879 * gtk/gtk.symbols: Add _gtk_file_system_win32_path_compare.
4881 * gtk/gtkfilechooserbutton.c (model_add_special)
4882 * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Use
4883 _gtk_file_system_win32_get_desktop() to get correct Desktop folder
4886 * gtk/gtkfilesystemwin32.c: Remove unnecessary includes. Do
4887 consider all drives "mounted", including floppies. Trying to
4888 inspect the contents of a nonexistent floppy will cause errors
4889 later that are handled normally, no need to avoid them
4890 completely. Keep the drive type in the GtkFileSystemVolume.
4891 Support UNC paths. (#161797, #137874) Fix error message
4892 capitalizations as in gtkfilesystemunix.c.
4894 (gtk_file_system_win32_init): Start one timeout per
4897 (gtk_file_system_win32_finalize): Remove the timeout.
4899 (get_special_folder): Copied from GLib.
4901 (_gtk_file_system_win32_get_desktop): New function, uses
4902 get_special_folder().
4904 (gtk_file_system_win32_list_volumes): Don't start a timeout at
4905 each call to this function. Don't assume A: and B: are floppies.
4907 (gtk_file_system_win32_get_volume_for_path): Don't assume all
4908 volumes are drive roots, i.e. support share roots of UNC paths
4911 (gtk_file_system_win32_get_folder): Don't assume errno is set
4912 after g_file_test() returns FALSE. It isn't on Win32 (and even on
4913 Unix I don't think one should assume anything about errno after
4916 (gtk_file_system_win32_volume_get_is_mounted): Always return TRUE.
4918 (gtk_file_system_win32_volume_get_display_name): Don't call
4919 GetVolumeInformation() on drives A: or B: if they are removable,
4920 as they might then be floppies, causing an unnecessary
4923 (gtk_file_system_win32_volume_render_icon): Use network icon for
4924 unrecognized drive types.
4926 (canonicalize_filename, gtk_file_system_win32_parse): Don't get
4927 confused by UNC paths.
4929 (bookmarks_serialize): Use _gtk_file_system_win32_path_compare()
4930 for case-insensitive UTF-8 path comparison.
4932 (extract_icon): Use SHGetFileInfo() which is faster than
4933 ExtractAssociatedIcon(). Icon extraction is still slow, though,
4936 (win32_pseudo_mime_lookup): Don't use the same icon for all
4937 shortcuts or executables. Cache only other file type icons.
4939 (gtk_file_system_win32_render_icon): Use network stock icon for
4940 remote drives and UNC server share roots. Compare home directory
4941 case-insensitively. Do lookup icons also for executable files,
4942 after all, it's these files that can have individual icons in the
4943 first place. Yes, it can be slow. Needs work.
4945 (filename_is_drive_root): Require also the slash after the colon.
4947 (filename_is_server_share): New function.
4949 (_gtk_file_system_win32_path_compare): New function, does
4950 case-folded UTF-8 comparison.
4952 * gtk/gtkfilesystemwin32.h: Declare
4953 _gtk_file_system_win32_path_compare().
4955 2005-01-01 Matthias Clasen <mclasen@redhat.com>
4957 * gtk/gtkbutton.c (gtk_button_set_image): Allow unsetting the
4958 custom image by passing NULL.
4959 (gtk_button_init): Initialize image_is_stock to TRUE, fixing
4960 a problem with changing stock labels. (#162273, Marcin
4963 2005-01-01 Tor Lillqvist <tml@iki.fi>
4965 * gtk/gtkmodules.c (get_module_path)
4966 * gtk/gtkrc.c (gtk_rc_make_default_dir, gtk_rc_get_im_module_file,
4967 gtk_rc_get_theme_dir, gtk_rc_add_initial_default_files): With
4968 g_getenv() now returning UTF-8 on Win32, no need to call
4971 2004-12-31 Matthias Clasen <mclasen@redhat.com>
4973 * gtk/gtkkeyhash.c (_gtk_key_hash_lookup_keyval)
4974 (_gtk_key_hash_lookup): Don't sort a list of values as if
4975 it was a list of entries. This fixes crashes during mnemonic
4976 activation in the presence of multiple keymaps. (#162488,
4979 2004-12-30 Matthias Clasen <mclasen@redhat.com>
4981 * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Fix
4982 state propagation when making an insensitive combo box sensitive
4983 again. (#162524, Carlos Garnacho Parro)
4985 * gtk/gtkfilechooserdefault.c: Use secondary text for error
4988 * gtk/gtkfilesystemunix.c: Clean up some cases of errno handling
4989 (#162496, noted by Tor Lillqvist), and use g_filename_display_name()
4990 for error messages. Also mark some error messages for translation,
4991 fix capitalization of error messages.
4993 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
4994 Use g_value_get_boolean() for ellipsize_set. (#162447,
4997 2004-12-30 Tor Lillqvist <tml@iki.fi>
4999 * gtk/gtkicontheme.c (gtk_icon_theme_init): Use /usr/share/pixmaps
5002 2004-12-28 Matthias Clasen <mclasen@redhat.com>
5004 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Inherit
5005 submenu direction from the parent menu.
5007 * gtk/gtkmenushell.c (gtk_menu_shell_select_submenu_first):
5008 Return a boolean indicating whether an item in the submenu
5010 (gtk_real_menu_shell_move_current): When going in child
5011 direction, don't get stuck at completely insensitive
5012 submenus. (#162055, Billy Biggs)
5014 2004-12-27 Matthias Clasen <mclasen@redhat.com>
5016 Make the clipboard image API more robust (#162357,
5017 Torsten Schoenfeld):
5019 * gtk/gtkclipboard.c (clipboard_image_received_func): Don't
5020 ref the pixbuf if it is NULL.
5022 * gtk/gtkselection.c (gtk_selection_data_set_pixbuf):
5023 NULL-terminate the varargs in the call to
5024 gdk_pixbuf_save_to_buffer().
5025 (gtk_selection_data_get_pixbuf): Only use a pixbuf loader
5026 if there is data to load.
5028 2004-12-27 Matthias Clasen <mclasen@redhat.com>
5030 * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
5031 Set x_root and y_root in button and motion events from
5032 extended input devices. (#148715, Robert Ögren)
5034 * gtk/gtktreeview.c (gtk_tree_view_class_init): Fix a
5035 typo. (#162339, Alessio Dessi)
5037 * gtk/gtkadjustment.c (gtk_adjustment_class_init): Document
5038 properties as new since 2.4. (#156101, Billy Biggs)
5040 * configure.in: Add a warning about the linux-fb
5041 target. (#155488, Zeeshan Ali)
5043 * gtk/gtkmain.c (gtk_init_with_args): Typo fix. (#162278,
5046 2004-12-26 Matthias Clasen <mclasen@redhat.com>
5048 * gtk/gtkfilechooser.c (gtk_file_chooser_set_action):
5049 Typo fix. (#162219, Masao Mutoh)
5050 (gtk_file_chooser_set_preview_widget_active):
5051 Another typo. (#162218, Masao Mutoh)
5053 2004-12-23 Matthias Clasen <mclasen@redhat.com>
5055 * gtk/gtkliststore.c (gtk_list_store_iter_children):
5056 Return TRUE if there are children. (#162134, Iñigo Serna,
5057 patch by John Finlay)
5059 * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed):
5060 Transfer state from the button to the cell view to get
5061 prelighting right. (#156327, Ricardo Veguilla)
5063 Wed Dec 22 14:22:19 2004 Søren Sandmann <sandmann@redhat.com>
5065 * tests/testtoolbar.c (timeout_cb): Add sensitivity-changing
5066 timeout. Written by Christian Persch.
5068 Wed Dec 22 14:14:02 2004 Søren Sandmann <sandmann@redhat.com>
5072 * gdk/x11/gdkwindow-x11.c (tmp_{re,un}set_bg): Only set/reset the
5073 background for windows that get expose events.
5075 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Remove
5076 hack to repaint !expose windows.
5078 Wed Dec 22 11:35:41 2004 Søren Sandmann <sandmann@redhat.com>
5080 Bug #147497, make menu items activate immediately when you release
5083 * gtk/gtkmenu.c (gtk_menu_enter_notify, menu_motion_notify): Make
5084 items activate immediately.
5086 * gtk/gtkmenu.c (definitely_within_item): New function
5087 * gtk/gtkmenu.c (check_threshold): New function
5089 2004-12-22 Matthias Clasen <mclasen@redhat.com>
5091 * gtk/gtklabel.c (gtk_label_setup_mnemonic): Don't forget to
5092 null the mnemonic_menu when unsetting a mnemonic, reported
5095 2004-12-21 Matthias Clasen <mclasen@redhat.com>
5097 * gtk/gtkliststore.c (generate_order): Generate the order the
5098 way it is supposed to be, order[new_pos] == old_pos.
5099 (gtk_list_store_reorder): Invert the order before using it.
5101 2004-12-22 Matthias Clasen <mclasen@redhat.com>
5103 Fix sorting of list stores. (#161886, Marcin Krzyzanowski)
5105 * gtk/gtkliststore.c (generate_order): Generate the order the
5106 way it is supposed to be, order[new_pos] == old_pos.
5107 (gtk_list_store_reorder): Invert the order before using it.
5109 * gtk/gtkiconview.c (gtk_icon_view_rows_reordered): Adapt to the
5112 Wed Dec 22 01:24:01 2004 Jonathan Blandford <jrb@redhat.com>
5114 * gtk/queryimmodules.c (main): print out the version and binary
5115 name in the header comment. Problem reported by Seth Nickell.
5117 2004-12-20 Matthias Clasen <mclasen@redhat.com>
5119 * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): Pass a
5120 root path to gtk_tree_model_rows_reordered(). (#161720,
5121 Marcin Krzyzanowski)
5123 * gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't
5124 translate NULL messages. (#161789, Morten Welinder)
5126 * gtk/gtkmessagedialog.c (setup_primary_label_font): Don't show
5127 the secondary label on show_all(). (#161707, Christian Persch)
5129 2004-12-19 Tor Lillqvist <tml@iki.fi>
5131 * gdk/win32/gdkdnd-win32.c (resolve_link, gdk_dropfiles_filter):
5132 Use wide character API when available. Use UTF-8 for filenames.
5134 * gdk/win32/gdkselection-win32.c (_gdk_dropfiles_store): Include
5135 the string's trailing zero byte in the property's length, just for
5138 2004-12-18 Matthias Clasen <mclasen@redhat.com>
5140 * gtk/gtkfilechooserentry.c (check_completion_callback)
5141 (load_directory_callback): Add missing GDK_THREADS_ENTER/LEAVE.
5143 * gtk/gtkfilechooserdefault.c (edited_idle_cb)
5144 (shortcuts_drag_outside_idle_cb): Add missing
5145 GDK_THREADS_ENTER/LEAVE. (#161604)
5147 * gtk/gtkfilechooserdefault.c (selection_check_foreach_cb):
5148 (list_select_func): Don't call gtk_file_info_get_is_folder()
5151 * gtk/gtkaboutdialog.c (gtk_about_dialog_get_logo_icon_name):
5152 (gtk_about_dialog_init): Add missing initializations. (#161646,