1 2007-04-29 Mattthias Clasen <mclasen@redhat.com>
3 * gtk/gtkprintoperation-unix.c
4 (_gtk_print_operation_platform_backend_launch_preview):
5 Don't leak a file descriptor, and don't make the error
6 dialog modal. (#421985, Morten Welinder)
8 2007-04-29 Xan Lopez <xan@gnome.org>
10 * docs/faq/gtk-faq.sgml: Fix typo in FAQ (#373706,
11 Diego Escalante Urrelo).
13 I'm fixing gtk-faq.sgml as it seems this is the file
16 2007-04-29 Matthias Clasen <mclasen@redhat.com>
18 * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores):
19 Only strip parentheses of the form (_x). (#434261,
22 2007-04-29 Matthias Clasen <mclasen@redhat.com>
24 * gtk/gtkprintoperation-unix.c
25 (_gtk_print_operation_platform_backend_launch_preview):
26 Support passing a print settings file to the preview
27 command. (#403717, Christian Persch)
29 * gtk/gtksettings.c: Document %s in the
30 gtk-print-preview-command setting.
32 2007-04-29 Matthias Clasen <mclasen@redhat.com>
34 * gtk/gtkprintoperation.c (print_pages_idle): Also check
35 the default handler when deciding whether to emit the
36 paginate signal. (#345345, Yevgen Muntyan)
38 2007-04-29 Matthias Clasen <mclasen@redhat.com>
40 * gtk/gtkprintoperation.h: Add a new error code
43 * gtk/gtkpagesetup.[hc]:
44 * gtk/gtkpapersize.[hc]:
45 * gtk/gtkprintsettings.[hc]: Add functions to serialize
46 and deserialize page setups and print settings to files
47 and key files. (#344515, Christian Persch)
49 * gtk/gtkpagesetupunixdialog.c: Adapt to the new functions.
51 * tests/print-editor.c: Use the new functions to persist
52 page setup and print settings.
54 2007-04-29 Matthias Clasen <mclasen@redhat.com>
56 * gtk/gtkpagesetupunixdialog.c (gtk_page_setup_unix_dialog_finalize):
57 Free the custom paper list. (#403267, Felix Riemann)
59 2007-04-29 Matthias Clasen <mclasen@redhat.com>
61 * gtk/gtkprintjob.c (gtk_print_job_get_surface): Fix a
62 small memory leak. (#403251, Felix Riemann)
64 2007-04-29 Matthias Clasen <mclasen@redhat.com>
66 * modules/printbackends/cups/gtkprintbackendcups.c: Fix a
67 typo. String change ! (#406160, Stephane Raimbault)
69 2007-04-29 Matthias Clasen <mclasen@redhat.com>
72 * gtk/gtkpapersize.[hc]: Add a function to list the
73 builtin paper sizes. (#382355, Christian Persch)
75 2007-04-29 Matthias Clasen <mclasen@redhat.com>
78 * gtk/gtkprinter-private.h:
79 * gtk/gtkprinter.[hc]: Make gtk_printer_has_details() and
80 gtk_printer_request_details() public.
82 * gtk/gtkpagesetupunixdialog.c:
83 * gtk/gtkprintunixdialog.c: Update callers. (#389203,
86 2007-04-28 Matthias Clasen <mclasen@redhat.com>
88 * configure.in: Add --enable-test-print-backend, defaulting
91 * modules/printbackends/Makefile.am: Make building the test
92 print backend conditional.
94 2007-04-28 Matthias Clasen <mclasen@redhat.com>
96 * modules/printbackends/lpr/*:
97 * modules/printbackends/cups/*: Correct some copyright lines.
100 * modules/printbackends/Makefile.am:
101 * modules/printbackends/test/*: Add a test print backend.
102 (#409089, John Palmieri)
104 2007-04-28 Matthias Clasen <mclasen@redhat.com>
106 * gtk/gtktexttag.[hc]: Add a way to specify accumulative
107 margins. (#344499, Nate Nielsen)
109 2007-04-28 Matthias Clasen <mclasen@redhat.com>
111 * gtk/gtkeventbox.c (gtk_event_box_realize): Fix the offsets
112 of the input-only window if we also have a visible window.
115 2007-04-28 Matthias Clasen <mclasen@redhat.com>
117 * gtk/gtkliststore.c (gtk_list_store_set_valist_internal):
118 * gtk/gtktreestore.c (gtk_tree_store_set_valist_internal):
119 Recognize negative column indices as invalid. (#415260,
122 2007-04-28 Ronald Bultje <rbultje@ronald.bitfreak.net>
124 * gdk/quartz/gdkeventloop-quartz.c: (select_thread_func),
125 (poll_func): fix two more potential races that could happen when
126 an application is polling in the mainloop and a separate thread
127 tries to wake it up using g_idle_add(). Fixes #425271 comment 5.
129 2007-04-28 Matthias Clasen <mclasen@redhat.com>
131 * gtk/gtkentry.c (gtk_entry_grab_focus):
132 (gtk_entry_real_insert_text): Only call g_object_get()
133 when necessary. (#373137, Morten Welinder, patch by Xan Lopez)
135 2007-04-28 Matthias Clasen <mclasen@redhat.com>
137 * gtk/gtkstatusicon.c (gtk_status_icon_get_size): Add
138 a note about being embedded. (#340107, Christian Persch)
140 2007-04-28 Matthias Clasen <mclasen@redhat.com>
142 * gtk/gtkdnd.[hc]: Add GTK_TARGET_OTHER_{APP,WIDGET} to
143 restrict drags within an application/widget. (#163141,
146 2007-04-28 Matthias Clasen <mclasen@redhat.com>
148 * docs/tools/Makefile.am:
149 * gtk/Makefile.am: Make make clean clean. (#410160, Tommi
152 2007-04-28 Matthias Clasen <mclasen@redhat.com>
154 * gdk/win32/bdfcursor.c (compose_cursors_from_fonts):
155 * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_reorder):
156 * gtk/gtkfilesystemmodel.c (got_root_folder_cb):
157 (get_children_folder_cb): Plug memory leaks caused by wrong
158 use of g_slist_remove_link(). (#405515, Nicolas Peninguy)
160 2007-04-28 Matthias Clasen <mclasen@redhat.com>
162 * demos/gtk-demo/printing.c: Fix the headers in the print
163 demo. (#423722, Yevgen Muntyan)
165 2007-04-28 Xan Lopez <xan@gnome.org>
167 * gtk/gtkentrycompletion.c (gtk_entry_completion_insert_completion_text):
168 Use strstr instead of g_strstr with -1 for length.
170 2007-04-28 Xan Lopez <xan@gnome.org>
173 * gtk/gtkentrycompletion.c:
174 * gtk/gtkentrycompletion.h:
175 * gtk/gtkentryprivate.h:
177 Remember the user input that triggered the completion, add
178 API to the retrieve it and reset the entry contents to it
179 if the user cancels the tentative completion during
180 the inline-selection.
182 2007-04-27 Matthias Clasen <mclasen@redhat.com>
184 * gdk/x11/gdkgeometry-x11.c: Factor out window movement
185 functions. (#63820, Tilman Sauerbeck)
187 2007-04-27 Matthias Clasen <mclasen@redhat.com>
189 * gdk/x11/gdkgeometry-x11.c: Factor out translate_pos().
190 (#63820, Tilman Sauerbeck)
192 2007-04-27 Matthias Clasen <mclasen@redhat.com>
194 * gdk/x11/gdkgeometry-x11.c: Factor out window mapping
195 and unmapping functions. (#63820, Tilman Sauerbeck)
197 2007-04-27 Matthias Clasen <mclasen@redhat.com>
199 * gdk/x11/gdkgeometry-x11.c: Make list handling code
200 easier to read. (#63820, Tilman Sauerbeck)
202 2007-04-27 Matthias Clasen <mclasen@redhat.com>
208 * gtkrecentmanager.c:
209 * gtktextiter.c: Internalize some strings, pointed out
212 2007-04-27 Xan Lopez <xan@gnome.org>
214 Support inline-selection in entries (#318459)
217 * gtk/gtkentrycompletion.c:
218 * gtk/gtkentrycompletion.h:
219 * gtk/gtkentryprivate.h:
221 When enabled cursor-match is emited when the cursor is on
222 a possible completion on the list. The default implementation
223 will replace the contents on the entry with the contents of
224 the text column in the completion model.
226 Review and improvements by Matthias Clasen.
228 2007-04-27 Michael Natterer <mitch@imendio.com>
230 Merged heavily modified patch from maemo-gtk which enables opening
231 and closing submenus on click, and introduces some usability
232 changes when gtk-touchscreen-mode is enabled (bug #128968):
234 * gtk/gtkmenushell.c (struct GtkMenuShellPrivate): added boolean
235 "activated_submenu" to indicate that the current mouse operation
236 (click or drag) has opened a submenu.
238 (gtk_menu_shell_button_press): pop up submenus without delay
239 and record the fact in "activated_submenu".
241 (gtk_menu_shell_button_release): if a submenu was explicitely
242 opened, or not opened by this release's button_press, or enough
243 time has passed since timeout-opening it, close the submenu here.
245 (gtk_menu_shell_enter_notify): when entering a menu item with
246 any mouse button pressed, open its submenu.
248 (gtk_real_menu_shell_move_current): in touchsreen mode, close the
249 submenu when moving the focus away from it via keyboard-navigation.
251 * gtk/gtkmenuitem.[ch] (_gtk_menu_item_popup_submenu): added
252 parameter "gboolean with_delay" so GtkMenuShell can control this
253 for the different scenarios of submenu showing.
255 (_gtk_menu_item_popdown_submenu): new function. also needed by
256 GtkMenuShell for closing submenus on click.
258 Renamed internal function gtk_menu_item_select_timeout() to
259 gtk_menu_item_popup_timeout().
261 (gtk_menu_item_real_popup_submenu): new utility function which
262 does the actual popup and records the exact time of the popup when
263 the menu was timeout-opened (using g_get_current_time()).
265 (gtk_real_menu_item_select): don't add the popup timeout when in
268 * gtk/gtkmenu.c (gtk_menu_popup): in touchscreen mode, select the
269 first item of every opened menu.
271 2007-04-26 Matthias Clasen <mclasen@redhat.com>
273 * gtk/gtkfilechooserentry.c: Append a '/' to directory names
274 in the completion popup. (#431323, Maarten Maathuis)
276 2007-04-26 Matthias Clasen <mclasen@redhat.com>
278 * demo/gtk-demo/combobox.c: Add a simple validation demo.
279 * gtk/gtkcomboboxentry.c: Make it possible to add arbitrary
280 children to a GtkComboBoxEntry. (#426401, Paul Pogonyshev)
282 2007-04-26 Tor Lillqvist <tml@novell.com>
284 * gtk/gtkinputdialog.c (gtk_input_dialog_fill_axes)
285 (gtk_input_dialog_fill_keys): Remove old child of scrolled window
286 before adding a new one when switching what input device is being
289 2007-04-26 Matthias Clasen <mclasen@redhat.com>
291 * modules/printbackends/lpr/gtkprintbackendlpr.c
292 (gtk_print_backend_lpr_init): Mark the printer list as done.
293 (#428665, Bogdan Gheorghe)
295 2007-04-26 Matthias Clasen <mclasen@redhat.com>
298 * gtk/Makefile.am: Don't install UNIX-printing headers and
299 support files on non-UNIX platforms. (#425655, Vincent Geddes)
301 2007-04-26 Matthias Clasen <mclasen@redhat.com>
303 * gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Accept
304 unnamed separators. (#369112, Christian Persch)
306 2007-04-26 Matthias Clasen <mclasen@redhat.com>
308 * gtk/gtkaccelgroup.c (gtk_accel_group_finalize): Don't access
309 invalid memory. (#429732, Armin Burgmeier)
311 2007-04-26 Cody Russell <bratsche@gnome.org>
313 * gdk/win32/xcursors.h:
314 * gdk/win32/gdkcursor-win32.c:
316 Use Win32 native cursors instead of the ones built into GTK
317 where it makes sense. (#128852, Tim Evans)
319 2007-04-25 Cody Russell <bratsche@gnome.org>
323 * gtk/gtkhandlebox.c:
324 * gdk/directfb/gdkwindow-directfb.c:
325 * gdk/linux-fb/gdkwindow-fb.c:
326 * gdk/quartz/gdkwindow-quartz.c:
327 * gdk/win32/gdkwindow-win32.c:
328 * gdk/x11/gdkwindow-x11.c:
329 Added window type hint and implement drop shadows on Win32
330 for menus, tooltips, etc. (#148535, Tim Evans, Dom Lachowicz)
332 2007-04-25 Jakub Steiner <jimmac@ximian.com>
334 * gtk/stock-icons/16/gtk-close.{png,svg}: added 16x16 version of
335 gtk-close as per discussion in bug #431740.
337 2007-04-25 Matthias Clasen <mclasen@redhat.com>
339 * gtk/gtktreeview.c (gtk_tree_view_style_set): Set the background
340 of the header window again. (#431067, Benjamin Berg)
342 2007-04-25 Matthias Clasen <mclasen@redhat.com>
344 * gtk/gtkicontheme.c (theme_lookup_icon): Set the filename to
345 NULL for builtin icons, sinc gtk_icon_info_get_builtin_pixbuf()
348 * tests/testicontheme.c: Report builtin icons.
350 2007-04-25 Matthias Clasen <mclasen@redhat.com>
352 * gtk/gtkprintoperation.c (preview_iface_end_preview): Don't
353 crash if end_run is not set. (#424168, Matthias Hasselmann)
355 2007-04-25 Michael Natterer <mitch@imendio.com>
357 * gtk/gtkmenu.c (gtk_menu_handle_scrolling): fix ACTIVE state of
358 scroll buttons (we were setting the state to ACTIVE but
359 immediately overwriting it with NORMAL or PRELIGHT). Also got rid
360 of many separate calls to gdk_window_invalidate_rect() by
361 remembering the old button state and only invalidating the area if
362 the state has changed (addresses parts of bug #433242, Tommi
365 (gtk_menu_scroll_to): change the arrow states only if changing
366 from or to INSENSITIVE state, so we don't overwrite the ACTIVE
367 state set by above function.
369 2007-04-25 Michael Natterer <mitch@imendio.com>
371 * gtk/gtkprintoperation.c (preview_iface_is_selected): fix the
372 build. Dunno if the fix is right, but I think it is.
374 2007-04-25 Kristian Rietveld <kris@imendio.com>
376 * gtk/gtktooltip.c (find_topmost_widget_coords_from_event):
377 cleanup/refactor some leftover code.
379 2007-04-24 Matthias Clasen <mclasen@redhat.com>
381 * gtk/gtkprintunixdialog.c (dialog_get_page_ranges): Parse
382 half-open ranges like -2 or 3-, and be a bit more liberal
384 (dialog_set_page_ranges): Support half-open ranges.
386 * gtk/gtkprintoperation.c (print_pages_idle): Substitute the
387 number of pages in half-open ranges.
388 (preview_iface_is_selected): Support half-open ranges here, too.
390 2007-04-24 Chris Wilson <chris@chris-wilson.co.uk>
392 * gtk/gtkicontheme.c (scan_directory): Ensure the
393 icon_theme->all_icons and dir->icons hash tables use the same string
394 as their keys. (#418531)
396 2007-04-23 Cody Russell <bratsche@gnome.org>
397 * modules/engines/ms-windows/msw_style.c: Fixed one-pixel drawing error on
398 left-most tab when notebooks are top-oriented. Also general cleanup of
399 notebook tab related code. (Lieven van der Heide, Cody Russell)
401 2007-04-23 Matthias Clasen <mclasen@redhat.com>
403 * modules/printbackends/cups/gtkprintbackendcups.c: Reduce
404 the amount of debug spew if we are not debugging.
406 2007-04-23 Michael Natterer <mitch@imendio.com>
408 * tests/Makefile.am (testtooltips_SOURCES): fix typo:
409 testtoooltips_SOURCES -> testtooltips_SOURCES.
411 2007-04-19 Cody Russell <bratsche@gnome.org>
413 * modules/engines/ms-windows/msw_style.c: Fix menuitem rendering
414 for Windows Vista. (#392015, Hiroyuki Yamamoto)
416 2007-04-19 Dominic Lachowicz <domlachowicz@gmail.com>
418 * modules/engines/ms-windows/msw_style.c: Fix pixbuf leaks in
419 non-WinXP rendering paths. From Daniel Atallah (#403470)
421 2007-04-19 Matthias Clasen <mclasen@redhat.com>
423 * gtk/gtkicontheme.h:
424 * gtk/gtkicontheme.c: Add GTK_ICON_LOOKUP_GENERIC_FALLBACK
425 icon lookup flag and implement it. (#396901, Luca Ferreti)
427 2007-04-18 Richard Hult <richard@imendio.com>
429 * gdk/quartz/gdkwindow-quartz.c:
430 (gdk_window_quartz_process_updates_internal),
431 (gdk_window_quartz_process_all_updates),
432 (gdk_window_impl_quartz_process_updates): Refactor the process
433 updates functions to share code between them. Also fixes bug
434 #427660 by not updating larger regions than necessary.
436 2007-04-18 Matthias Clasen <mclasen@redhat.com>
438 * gdk/gdkregion-generic.h (GROWREGION): Handle the case
439 of nRects == 0 correctly.
441 2007-04-18 Emmanuele Bassi <ebassi@gnome.org>
443 * gtk/gtkrecentmanager.c (gtk_recent_manager_lookup_item): Fix
444 a leak by not increasing the refcount of the GtkRecentInfo
445 object when returning it (thanks to Matthias Clasen).
447 2007-04-16 Alexander Larsson <alexl@redhat.com>
449 * gtk/gtkprintoperation.c (gtk_print_operation_run):
450 Make async print preview work by actually starting
451 the print process in that case (#424168)
453 2007-04-14 Yevgen Muntyan <muntyan@tamu.edu>
455 * gtk/gtkselection.c (selection_get_text_plain): fixed
456 wrong g_convert_with_fallback() call which caused
457 gtk_selection_data_get_text() return invalid UTF-8 for
458 non-ASCII text in text/plain selection (#382824).
460 2007-04-12 Jakub Steiner <jimmac@ximian.com>
462 * gtk/stock-icons/*: update the stock icons to follow the Tango
465 2007-04-11 Chris Wilson <chris@chris-wilson.co.uk>
467 * gtk/gtkiconfactory.c (_gtk_icon_factory_list_ids):
468 * gtk/gtkstock.c (gtk_stock_list_ids):
469 Switch over to use glib's new g_hash_table_get_keys() rather
470 than our own static implementation.
472 * gtk/gtkiconfactory.h: Update to return a GList.
474 * configure.in: Bump required version to 2.13.1
476 2007-04-11 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
478 * gdk/quartz/gdkeventloop-quartz.c: Protect the polling thread
479 setup and shutdown function by mutexes and read the wakeup
480 pipe unconditionally and unblocking. This should make the main
481 loop always be woken up when using g_idle_add() from another
482 thread in the Quartz backend (#425271).
484 2007-04-10 Matthias Clasen <mclasen@redhat.com>
486 * gdk/x11/xsettings-client.[hc]: Change the XSettingsWatchFunc
487 to return a Bool to indicate success. Update callers and
488 implementors. Based on a patch by Owen Taylor.
490 * gdk/x11/gdkevents-x11.c (gdk_xsettings_watch_cb): Don't
491 leak a reference to gdkwin.
493 2007-04-07 Xan Lopez <xan@gnome.org>
495 * gtk/gtknotebook.c (gtk_notebook_class_init):
496 s/arrow-size/arrow-spacing in the arrow-spacing
499 2007-04-06 Richard Hult <richard@imendio.com>
501 * gdk/quartz/: Clean up namespaces to make the code more
504 * gdk/quartz/gdkdrawable-quartz.c:
505 * gdk/quartz/gdkgc-quartz.c: Fix bug #418384, alignment of tiled
506 images, by setting the pattern phase for the CG pattern.
508 2007-04-04 Kristian Rietveld <kris@imendio.com>
510 * gtk/gtktooltip.c (tooltip_browse_mode_expired),
511 (gtk_tooltip_hide_tooltip), (tooltip_popup_timeout),
512 (gtk_tooltip_start_delay): use new gdk_threads API.
514 2007-04-03 Behdad Esfahbod <behdad@gnome.org>
516 * gtk/gtksettings.c (settings_update_font_options): Don't set
517 metrics-hinting font option. Rely on the default value which is
518 on for all raster cairo surfaces. (#425985)
520 2007-04-03 Loïc Minier <lool@dooz.org>
522 * gdk/x11/gdkscreen-x11.c: (check_xfree_xinerama): Revert to
523 non-xinerama mode when XineramaQueryScreens returns NULL; patch from
524 Simon McVittie; #425786.
526 2007-04-02 Michael Natterer <mitch@imendio.com>
528 * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): remove
529 artifact from the time when type checking casts warned on NULL,
530 some whitespace cleanup.
532 2007-04-01 Cody Russell <bratsche@gnome.org>
534 * modules/engines/ms-windows/msw_style.c: Fix rendering of
535 notebook tabs when they are bottom-oriented. Fixes #399253.
537 2007-03-31 Elijah Newren <newren gmail com>
539 * gdk/x11/gdkwindow-x11.c (setup_toplevel_window,
540 gdk_x11_window_set_user_time):
541 Patch from Matthias to add support for the
542 _NET_WM_USER_TIME_WINDOW EWMH protocol; see #354213.
544 WARNING: This patch will make metacity <= 2.18.0 freeze on
545 workspace switch. This is due to a weird problem that should only
546 affect window managers using gdk in-process for decoration drawing
547 and which make an unsafe assumption relating to doing so (i.e. it
548 should only affect metacity). Upgrade your version of metacity if
551 2007-03-29 Michael Natterer <mitch@imendio.com>
553 Don't close menus on clicks on their border area (bug #423761).
554 (modified patch from maemo-gtk).
556 * gtk/gtkmenu.c (gtk_menu_button_press)
557 (gtk_menu_button_release): bail out early if the click was on the
558 menu's border (not on any item and not outside the window).
560 (pointer_in_menu_window): new utility function which checks if
561 passed root coords are inside the menu_shell or one of its
564 2007-03-29 Michael Natterer <mitch@imendio.com>
566 * gtk/gtkmenu.c: get rid of local GtkSettings variables by moving
567 gtk_widget_get_settings() into the g_object_get() call. Some small
570 2007-03-28 Matthias Clasen <mclasen@redhat.com>
572 * modules/printbackends/cups/gtkcupsutils.[hc]:
573 * modules/printbackends/cups/gtkprintbackendcups.c: Apply
574 a patch by John Palmieri to make the cups print backend support
577 2007-03-28 Kristian Rietveld <kris@imendio.com>
579 * gtk/gtkwidget.c (gtk_widget_set_tooltip_window): don't unref
580 tooltip_window, since this is handled by set_qdata_full() already.
581 (#412001, Torsten Schoenfeld).
583 2007-03-27 Tor Lillqvist <tml@novell.com>
585 * modules/input/Makefile.am: Use LDADDS for im-multipress.la, too:
587 2007-03-26 Christian Persch <chpe@gnome.org>
589 * gtk/gtkrc.c: (gtk_rc_context_get): Initialise variable. Bug #423064.
591 2007-03-24 Kristian Rietveld <kris@gtk.org>
593 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
594 calculate the depth with the corrected real_cell_area and don't
595 subtract horizontal_separator/2.
597 2007-03-24 Andreas Nilsson <andreas@andreasn.se>
600 * gtk-no: More Tango love.
602 2007-03-23 Jakub Steiner <jimmac@ximian.com>
604 * gtk-dialog-authentication.svg
605 * gtk-dialog-error.svg
606 * gtk-dialog-info.svg
607 * gtk-dialog-question.svg
608 * gtk-dialog-warning.svg: Start with a Tango face-lift.
610 2007-03-23 Rodney Dawes <dobey@novell.com>
612 * gtk/gtkicontheme.c: Fix a couple of comment typos (#421627)
614 2007-03-23 Matthias Clasen <mclasen@redhat.com>
616 * gtk/gtkfilechooserdefault.c: Add a keybinding (C-h) to
617 toggle whether to show hidden files. (#344657,
618 Wouter Bolsterlee, Priit Laes, et al)
620 2007-03-23 Matthias Clasen <mclasen@redhat.com>
622 * gtk/gtkfilechooserdefault.c: Add a keybinding (C-l) to
623 toggle the visibility of the location entry. (#383354,
624 John Pye, patch by Carlos Garnacho)
626 2007-03-22 Matthias Clasen <mclasen@redhat.com>
628 * gtk/gtksettings.c (merge_color_scheme): Freeze property
630 * gtk/gtksettings.c (_gtk_settings_handle_event): Handle
631 the gtk-color-scheme xsetting being unset.
633 * gtk/gtkrc.c (gtk_rc_reparse_all_for_settings): Handle
636 2007-03-21 Matthias Clasen <mclasen@redhat.com>
638 * gtk/gtkprintoperation-unix.c: Remove leftover debug spew.
640 2007-03-21 Rodney Dawes <dobey@novell.com>
643 * gtk/gtkicontheme.[ch]:
644 * docs/reference/gtk/gtk-sections.txt:
645 * tests/testicontheme.c:
646 Add a new API call gtk_icon_theme_list_contexts so that one can
647 choose icons from a theme by context (#420719)
649 2007-03-21 Ross Burton <ross@burtonini.com>
652 Document the ::event signal (#420703).
654 2007-03-20 Kristian Rietveld <kris@gtk.org>
656 * gtk/gtktreeviewcolumn.c:
657 * gtk/gtktreeprivate.h: add _gtk_tree_view_column_get_focus_area().
659 * gtk/gtktreeview.c (gtk_tree_view_clamp_column_visible): add
660 focus_to_cell parameter, rework to handle clamping columns which
661 are bigger than the available page size better,
662 (gtk_tree_view_key_press): remove code handling moving the focus
663 to other column headers,
664 (gtk_tree_view_header_focus): add clamp_column_visible parameter,
665 fix RTL support, don't wrap around when moving focus to other
666 column headers, call gtk_tree_view_clamp_column_visible() instead
668 (gtk_tree_view_focus): only clamp the column visible when we are
669 explicitly moving to another column header (fixes #399555, Charles
671 (gtk_tree_view_move_cursor_left_right): update call to
672 gtk_tree_view_clamp_column_visible().
674 2007-03-19 Matthias Clasen <mclasen@redhat.com>
676 * demos/gtk-demo/appwindow.c: Explicitly set the title on the
679 2007-03-18 Matthias Clasen <mclasen@redhat.com>
681 * gtk/gtkentrycompletion.c (gtk_entry_completion_compute_prefix):
682 Ensure that the prefix is valid UTF-8. (#419568, Nickolay V. Shmyrev)
684 2007-03-18 Matthias Clasen <mclasen@redhat.com>
686 * modules/input/gtkimcontextmultipress.[hc]:
687 * modules/input/im-multipress.conf:
688 * modules/input/immultipress.c:
689 * modules/input/README.multipress: Add the multipress input
690 method. (#417446, Johannes Schmid, Murray Cumming)
692 * modules/input/Makefile.am: Glue
694 2007-03-17 Chris Wilson <chris@chris-wilson.co.uk>
696 * gdk/x11/gdkvisual-x11.c (_gdk_visual_init):
697 Initialise nxvisuals to 0 in order to handle XGetVisualInfo()
698 failures gracefully. (#419171)
700 2007-03-17 Emmanuele Bassi <ebassi@gnome.org>
702 * gtk/gtkrecentaction.c (recent_chooser_set_property),
703 (gtk_recent_action_set_property): Remove useless inlined
704 function and propagate the properties to the GtkRecentChooser
705 objects we create, instead of all the proxies.
707 (set_current_filter): Remove 'inline' marker.
709 2007-03-16 Emmanuele Bassi <ebassi@gnome.org>
711 Apply changes suggested by Michael Natterer. (#338843)
714 * gtk/gtkaction.c: Rename get_submenu() to create_menu();
715 rename gtk_action_get_submenu() to gtk_action_create_menu().
717 * gtk/gtkrecentaction.c: Update for GtkAction change.
719 * gtk/gtkuimanager.c (update_node): Update for GtkAction change;
720 also, use the menu from the GtkAction for both menuitem and
723 2007-03-16 Xan Lopez <xan@gnome.org>
725 * gtk/gtkwidget.c: Fix documentation error in
726 gtk_widget_set_redraw_on_allocate.
728 2007-03-16 Matthias Clasen <mclasen@redhat.com>
730 * gtk/gtkprintunixdialog.c (printer_added_cb): Scroll to
731 make the selected printer visible. (#418403, Nickolay V. Shmyrev,
732 patch by Christian Persch)
734 2007-03-15 Federico Mena Quintero <federico@novell.com>
736 Merged from gtk-2-10:
738 * gtk/gtkfilechooserdefault.c (find_good_size_from_style):
739 PANGO_PIXELS() gives us device units, which are *points* in
740 pangocairo's parlance, but we want actual pixels. So, get the
741 screen's resolution to compute the actual number of pixels.
744 2007-03-15 Emmanuele Bassi <ebassi@gnome.org>
746 * gtk/gtkrecentmanager.c (gtk_recent_manager_add_item): Remove
747 unused GError; do not allocate GtkRecentData and use a variable
748 on the stack. (#418673, Morten Welinder)
750 2007-03-15 Emmanuele Bassi <ebassi@gnome.org>
752 * gtk/gtkaction.[ch]: Add GtkActionClass::get_submenu() vfunc:
753 actions providing a menu item or a menu tool button with already
754 a submenu should return the GtkMenu widget.
756 * gtk/gtkuimanager.c (update_node): If an action provides its
757 own submenu, use it instead of adding an empty one
759 * gtk/gtkrecentaction.[ch]: Add GtkRecentAction, an action
760 implementing the GtkRecentChooser interface for displaying the
761 list of recently used files into menus and toolbars generated
762 using GtkUIManager. (#338843)
766 * gtk/gtk.symbols: Add GtkRecentAction API to the build.
768 * tests/testactions.c: Exercise the GtkRecentAction API.
770 2007-03-15 Chris Wilson <chris@chris-wilson.co.uk>
772 * gtk/gtkicontheme.c (ensure_valid_themes), (rescan_themes),
773 (gtk_icon_theme_rescan_if_needed): Protect ensure_valid_themes()
774 from recursion, which can happen for example if the app tries to
775 reload an icon from within a theme-changed handler. (#418531)
777 2007-03-15 Richard Hult <richard@imendio.com>
779 * gdk/quartz/gdkmain-quartz.c: Add stubs for
780 gdk_notify_startup_complete_with_id and gdk_window_set_startup_id
783 2007-03-15 Emmanuele Bassi <ebassi@gnome.org>
785 * gtk/gtkrecentmanager.c: Fix documentation errors. (Morten
788 2007-03-15 Tor Lillqvist <tml@novell.com>
790 * gdk/gdk.symbols: Add gdk_notify_startup_complete_with_id and
791 gdk_window_set_startup_id.
793 * gdk/win32/gdkmain-win32.c: Add dummy implementations of the above.
795 2007-03-15 Emmanuele Bassi <ebassi@gnome.org>
797 * gtk/gtkrecentchooserprivate.h:
798 * gtk/gtkrecentchooserutils.c: Move filtering of the recent
799 files list into the shared implementation; do the filtering
800 before the sorting, so that we always clamp on the desired
803 * gtk/gtkrecentchoosermenu.c: Remove the filtering of the
804 list, as it's already been done.
806 * gtk/gtkrecentchooserdefault.c: Ditto; also remove the
807 GtkTreeModelFilter: just reload the view if the sorting and
808 filtering properties change.
810 * gtk/testrecentchoosermenu.c: Exercise the limit property.
812 2007-03-14 Michael Natterer <mitch@imendio.com>
814 Make gtk_widget_set_extension_events() work on already realized
815 widgets (bug #379550, Tommi Komulainen)
817 * gdk/x11/gdkinput.c (gdk_input_set_extension_events): allow to be
818 called multiple times without leaking and work correctly when
819 already realized (don't rely on a configure event following).
821 * gtk/gtkwidget.c (gtk_widget_set_extension_events_internal): new
822 internal function which walks the GdkWindow tree and sets the
823 extension events on all windows that belong to the widget.
826 (gtk_widget_set_extension_events): use the new function.
828 2007-03-14 Emmanuele Bassi <ebassi@gnome.org>
830 Various clean ups in the GtkRecent code. (see #338843)
832 * gtk/gtkrecentchooserdefault.c:
833 * gtk/gtkrecentchoosermenu.c:
834 * gtk/gtkrecentchooserprivate.h:
835 * gtk/gtkrecentchooserutils.c: Move the recent chooser function
836 for getting the sorted and clamped list of recent files from the
837 manager outside the implementations.
839 * gtk/gtkrecentchooserdefault.c (chooser_set_sort_type): Repopulate
840 the list when the sorting order changes.
842 (gtk_recent_chooser_default_dispose),
843 (gtk_recent_chooser_default_finalize): Move object unref and
844 source removal from finalize to dispose.
846 * gtk/gtkrecentchooser.c (gtk_recent_chooser_type_init): Relax the
847 prerequisite for the GtkRecentChooser interface implementations,
848 from GtkObject to GObject.
850 (gtk_recent_chooser_class_init): Use GTK_PARAM_* instead of
853 2007-03-13 Emmanuele Bassi <ebassi@gnome.org>
855 Apply patch by Vytautas Liuolia for changing the startup
856 notification id on a window in the X11 backend. (#347375)
860 * gdk/x11/gdkdisplay-x11.c: Add gdk_notify_startup_complete_with_id()
861 and gdk_x11_display_get_startup_notification_id().
864 * gdk/x11/gdkwindow-x11.c: Add gdk_window_set_startup_id().
867 * gtk/gtkwindow.c: Add gtk_window_set_startup_id(), used to
868 change the startup notification id.
870 (gtk_window_class_init), (gtk_window_init),
871 (gtk_window_set_property): Add write-only "startup-id" property
874 (gtk_window_realize): Set the startup notification id
875 on a GtkWindow if it's valid.
877 (gtk_window_map): If we have another valid startup notification
878 id then finish the notification process.
880 2007-03-13 Matthias Clasen <mclasen@redhat.com>
882 * gtk/gtknotebook.c (gtk_notebook_real_insert_page):
883 Fix tabbed browsing in epiphany. (#413664, Christian Persch)
885 2007-03-12 Matthias Clasen <mclasen@redhat.com>
887 * gtk/gtksizegroup.c (gtk_size_group_add_widget): Clarify
888 docs. (#345844, Torsten Schoenfeld)
890 * gdk/x11/gdkevents-x11.c (gdk_display_add_client_message_filter):
891 * gdk/gdkwindow.c (gdk_window_add_filter): Add
892 cross-references. (#351252, Vincent Untz)
894 * gtk/gtkprintoperation.c: Fix an oversight in an
895 example. (#381083, Ian Puleston)
897 * gtk/gtkcombobox.c: Clean up and clarify docs. (#412484)
899 2007-03-12 Matthias Clasen <mclasen@redhat.com>
901 * gtk/gtkspinbutton.c (gtk_spin_button_style_set): Set
902 the background of the panel window on style changes. (#402144,
905 2007-03-12 Matthias Clasen <mclasen@redhat.com>
907 * gtk/gtkbindings.c (gtk_binding_entry_add_signal): Remove
908 an obsolete comment. (#402169, Xan Lopez)
910 2007-03-12 Matthias Clasen <mclasen@redhat.com>
912 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
913 Don't copy PangoLanguage. (#340031, Morten Welinder)
915 2007-03-12 Matthias Clasen <mclasen@redhat.com>
917 * gtk/gtkfilechooserbutton.c (change_icon_theme_get_info_cb):
918 Handle the row reference path being NULL. (#410565, Joe Markus
919 Clarke, patch by Chris Wilson)
921 2007-03-11 Matthias Clasen <mclasen@redhat.com>
923 * tests/testiconview.c: Handle Menu key presses without
924 crash. (#385637, Christian Persch)
926 2007-03-11 Matthias Clasen <mclasen@redhat.com>
928 * gtk/gtktooltips.c (gtk_tooltips_get_info_from_tip_window):
929 Don't crash if active_tips_data is NULL. (#382904, Li Yuan)
931 2007-03-11 Matthias Clasen <mclasen@redhat.com>
933 * gtk/gtktextview.c (gtk_text_view_set_buffer): Set first_para_mark
934 to NULL. (#396805, Colin Leroy, patch by Mariano Suárez-Alvarez)
936 2007-03-12 Kristian Rietveld <kris@gtk.org>
938 * gtk/gtkfilechooserdefault.c (check_save_entry): immediately
939 bail out if current_folder is NULL. (#350988, lots of reporters,
940 modified patch by Jan Darmochwal).
942 2007-03-10 Kristian Rietveld <kris@gtk.org>
944 * gtk/gtktreeview.c (gtk_tree_view_search_dialog_hide): only
945 hide the search dialog and send focus events if the search dialog
946 is currently visible.
948 2007-03-10 Richard Hult <richard@imendio.com>
950 * gdk/quartz/gdkdrawable-quartz.c:
951 (gdk_quartz_ref_cairo_surface): Reuse the surface during its lifetime.
952 (gdk_quartz_drawable_get_context): Update for the new quartz cairo
953 surface API (#410442). Don't lock focus unless called outside of an
955 (gdk_quartz_drawable_release_context): Only flush the CG context and
956 unlock focus if called outside of expose.
957 (_gdk_quartz_drawable_finish): New function, used to free the cached
960 * gdk/quartz/gdkwindow-quartz.c:
961 (gdk_window_impl_quartz_begin_paint_region): A few small style changes.
962 (_gdk_window_impl_quartz_get_type): No need to make the type info
964 (gdk_window_quartz_process_all_updates): Move the autorelease pool
965 allocation and freeing outside the loop.
966 (_gdk_windowing_window_destroy): Finish the drawable.
967 (move_resize_window_internal): Small cleanup and remove comment.
969 * gdk/quartz/gdkpixmap-quartz.c: Finish the drawable.
971 2007-03-10 Richard Hult <richard@imendio.com>
973 * gdk/quartz/gdkprivate-quartz.h: Add missing function signature to fix
976 2007-03-10 Richard Hult <richard@imendio.com>
978 * gdk/quartz/gdkdisplay-quartz.c: (gdk_display_get_name): Plug a leak.
980 2007-03-10 Richard Hult <richard@imendio.com>
982 * gdk/quartz/GdkQuartzView.c: Remove unneccesary exposure mask check.
984 2007-03-10 Richard Hult <richard@imendio.com>
986 * gdk/quartz/gdkevents-quartz.c: (gdk_screen_get_setting): Don't set
987 the font name here, leave that to themes, fixes #387508.
989 2007-03-10 Kristian Rietveld <kris@gtk.org>
991 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_ref_node),
992 (gtk_tree_model_sort_real_unref_node): when (un)reffing an
993 element, also (un)ref its parent elements. (Fixes #364946,
994 reported by many, testcase by Andreas Koehler).
996 2007-03-10 Matthias Clasen <mclasen@redhat.com>
998 * gtk/gtkprintoperation-unix.c: Initialize the do_preview
999 field of PrintResponseData. (#396703, Christian Persch)
1001 * tests/print-editor.c: Plug some leaks.
1003 2007-03-09 Matthias Clasen <mclasen@redhat.com>
1005 * gtk/gtktextview.c (gtk_text_view_end_selection_drag):
1006 Get rid of the unused event argument. Update all callers.
1008 * gtk/gtktextview.c (gtk_text_view_focus_out): Call
1009 gtk_text_view_end_selection_drag. (#351671, Boyd Timothy)
1011 2007-03-09 Matthias Clasen <mclasen@redhat.com>
1013 * modules/input/gtkimcontextxim.c
1014 (gtk_im_context_xim_filter_keypress): Don't commit
1015 modifier-adorned characters. (#331369, #335796, Lin Ma
1018 2007-03-09 Matthias Clasen <mclasen@redhat.com>
1020 * Everywhere: Remove unnecessary NULL checks before
1021 g_free(). (#369666, Morten Welinder, Djihed Afifi)
1023 * configure.in: Check for ftw.h
1025 2007-03-09 Matthias Clasen <mclasen@redhat.com>
1027 * gtk/gtkfilesystemwin32.c (get_icon_path): Remove
1028 C99isms. (#416525, Kazuki Iwamoto)
1030 2007-03-09 Tor Lillqvist <tml@novell.com>
1032 * README.win32: Update.
1034 2007-03-08 Matthias Clasen <mclasen@redhat.com>
1036 * gdk/x11/gdkasync.c (send_event_handler): Defer the callbacks
1037 to an idle to avoid deadlock with xcb-ified libX11. (#413032,
1040 2007-03-08 Matthias Clasen <mclasen@redhat.com>
1042 * gtk/gtknotebook.c (gtk_notebook_real_insert_page):
1043 Set child visibility to FALSE here; it will be turned
1044 back on in switch_page. (#413664, Carlos Garnacho)
1046 2007-03-08 Mathias Hasselmann <mathias.hasselmann@gmx.de>
1048 * modules/engines/ms-windows/msw_style.c: Use proper border style
1049 when drawing shadow of scrolled windows on Windows XP (#168326)
1050 * modules/engines/ms-windows/xp_theme.c: Explicitly set size of
1051 element_part_map array to ensure it always is large enough.
1053 2007-03-08 Mathias Hasselmann <mathias.hasselmann@gmx.de>
1055 * gtk/gtkcombobox.c: Add shadow-type style property, set shadow-type
1056 property of GtkEntry accordingly, unify size-allocation of toggle
1057 button (#411123, patch from Mathias Hasselmann).
1058 * gtk/gtkentry.c: Add shadow-type property. Query style properties
1059 on style changes only (#411123, patch from Mathias Hasselmann).
1060 * modules/engines/ms-windows/msw_style.c: Drop combo_box_draw_box
1061 hack as GtkComboBox emits drawing requests now (#411123, patch
1062 from Mathias Hasselmann).
1064 2007-03-08 Mathias Hasselmann <mathias.hasselmann@gmx.de>
1066 * gtk/gtkscrolledindow.c: Improve look of GtkScrolledWindow on Windows
1067 by implementing a scrollbars-within-bevel style property. (#168326)
1069 2007-03-08 Mathias Hasselmann <mathias.hasselmann@gmx.de>
1071 * gtk/gtkfilesystemwin32.c: Use Windows shell icons. Icons are
1072 stored in the current theme with the name
1073 "gtk-win32-shell-icon;PATH;INDEX". PATH and INDEX reference shell
1074 icons as reported by SHGetFileInfoW. (#412221)
1076 2007-03-07 Matthias Clasen <mclasen@redhat.com>
1078 * gtk/gtkexpander.c (gtk_expander_paint_focus): Draw the
1079 focus around the arrow if there is no label widget.
1080 (#124045, Cody Russell)
1082 2007-03-07 Matthias Clasen <mclasen@redhat.com>
1084 * gtk/gtkcombo.c: (gtk_combo_init):
1085 * gtk/gtkcombobox.c: (gtk_combo_box_set_popup_widget),
1086 (gtk_combo_box_menu_setup):
1087 Set names on the popup widgets to make them themable. (#414975,
1090 2007-03-07 Michael Natterer <mitch@imendio.com>
1092 * gtk/gtkcellrendereraccel.c: use multihead safe ungrab functions
1093 instead of gdk_keyboard_ungrab() and gdk_pointer_ungrab(), remove
1094 empty finalize() implementation, some cosmetic cleanup
1097 2007-03-06 Chris Wilson <chris@chris-wilson.co.uk>
1099 * gtk/gtkicontheme.c (update_current_theme), (gtk_icon_theme_init),
1100 (do_theme_change), (gtk_icon_theme_set_custom_theme),
1102 Be careful not to trigger a style reset before we have loaded
1103 the icon theme. (#414875).
1105 2007-03-06 Tor Lillqvist <tml@novell.com>
1108 * gtk/Makefile.am: Further fixes for building on Win32 outside
1109 srcdir. (#413492, Mathias Hasselmann)
1111 2007-03-04 Ihar Hrachyshka <iharh@gnome.org>
1113 * configure.in: Added be@latin to ALL_LINGUAS. Problems seems to be
1116 2007-03-04 Claudio Saavedra <csaavedra@alumnos.utalca.cl>
1118 * configure.in: Removed be@latin from ALL_LINGUAS, as it's currently
1121 2007-03-04 Ihar Hrachyshka <iharh@gnome.org>
1123 * configure.in: Added be@latin to ALL_LINGUAS
1125 2007-03-03 Guillaume Savaton <llumeao@gmail.com>
1127 * configure.in: Added Esperanto (eo) to ALL_LINGUAS
1129 2007-03-01 Matthias Clasen <mclasen@redhat.com>
1131 * gtk/gtksettings.c: Always store gtk-color-scheme
1132 values from all sources in the ColorSchemeData struct
1133 and ignore the property_value for gtk-color-scheme.
1134 This fixes #412596, reported by Thomas Wood.
1136 2007-02-28 Matthias Clasen <mclasen@redhat.com>
1138 * gtk/gtksettings.c: Make color scheme update properly
1139 when changing themes. (#402131, Benjamin Berg)
1141 2007-02-28 Matthias Clasen <mclasen@redhat.com>
1143 * gtk/gtkrc.c: Don't leak references to the color-hash
1144 gotten from GtkSettings. (#409357, Benjamin Berg)
1146 2007-02-28 Tristan Van Berkom <tvb@gnome.org>
1148 * gtk/gtkradiobutton.c: Fixed a warning from
1149 g_object_set (radiobutton, "group", NULL, NULL).
1151 2007-02-26 Matthias Clasen <mclasen@redhat.com>
1153 Apply a patch by Carlos Garnacho to fix several problems
1154 with filechooser size handling (#325477, #151169, 143213,
1157 * gtk/gtkfilechooserdefault.c: Increase NUM_LINES slightly.
1158 (browse_widgets_create): Don't force the paned position to 200.
1159 (find_good_size_from_style): Take the size of the extra widget
1162 * gtk/gtkfilechooserdialog.c (file_chooser_widget_update_hints):
1163 Accept a minimal width parameter. Update all callers.
1165 2007-02-26 Matthias Clasen <mclasen@redhat.com>
1167 * gtk/gtkprintunixdialog.c: Change the label to "Pages per side",
1168 which is more accurate, suggested by Tim Waugh. String change!
1170 2007-02-26 Matthias Clasen <mclasen@redhat.com>
1172 * gtk/gtkprinteroptionwidget.c: Make the folder selection for
1173 print-to-file work. Reported by Ian Collier.
1175 2007-02-26 Chris Wilson <chris@chris-wilson.co.uk>
1177 Bug 409101 – invalid read to gtkicontheme.c insert_theme(), might cause gnome-panel crash
1179 * gtk/gtkicontheme.c: (scan_directory):
1180 Reorder the replacement of the shared base_name key, so that we
1181 avoid dereferencing the string in the icon_theme->all_icon
1182 hash table after freeing it from the dir->icons hash table.
1184 2007-02-26 Tor Lillqvist <tml@novell.com>
1186 * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon_name): Add
1187 comment clarifying that "icon name" here is not related to the
1188 freedesktop.org icon naming stuff.
1190 2007-02-23 Dom Lachowicz <domlachowicz@gmail.com>
1192 * modules/engines/ms-windows/msw_style.c: Bug 411118 - bad bevel for
1193 progress bar on windows classic. Match from Mathias Hasselmann.
1195 2007-02-19 Tor Lillqvist <tml@novell.com>
1197 * gdk/win32/gdkinput.c
1198 (gdk_device_finalize, gdk_device_class_init): Remove.
1199 (gdk_device_get_type): Drop class init function. The X11 version
1200 doesn't have one either.
1201 (gdk_devices_list): Call gdk_display_list_devices() on _gdk_display.
1202 (gdk_display_list_devices): Check that the argument is
1205 * gdk/win32/gdkinput-win32.h (GdkAxisInfo, GdkDevicePrivate):
1206 Cleanup: remove unused fields.
1207 * gdk/win32/gdkinput-win32.c: Corresponding changes. Fix function
1208 names in a few debugging printouts.
1210 2007-02-18 Matthias Clasen <mclasen@redhat.com>
1212 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_visually):
1213 Ignore invisible text when going to end of the previous line.
1216 2007-02-18 Richard Hult <richard@imendio.com>
1218 * gdk/quartz/gdkwindow-quartz.c:
1219 (gdk_window_quartz_process_all_updates),
1220 (_gdk_windowing_window_destroy): Setup release pools to plug two leaks,
1221 patch from Erik van Pienbroek, fixes bug #396649.
1223 2007-02-18 Richard Hult <richard@imendio.com>
1225 * gdk/quartz/gdkevents-quartz.c: Add stub for
1226 gdk_display_add_client_message_filter, patch from Taybin Rutkin. Fixes
1229 * gdk/quartz/gdkprivate-quartz.h: Add prototypes to fix build warnings.
1231 2007-02-18 Richard Hult <richard@imendio.com>
1233 * gdk/quartz/GdkQuartzView.h:
1234 * gdk/quartz/GdkQuartzWindow.h:
1235 * gdk/quartz/gdkquartz.h: Import AppKit.h instead of Quartz.h.
1236 * gdk/quartz/gdkscreen-quartz.c: (get_mm_from_pixels): Don't use
1237 userSpaceScaleFactor for 10.3. Those changes bring us closer to working
1238 on panther, patch from Mathias Hasselmann.
1240 * gdk/quartz/gdkeventloop-quartz.c: Add includes to fix build warnings.
1242 2007-02-16 Behdad Esfahbod <behdad@gnome.org>
1244 * gdk/gdkpango.c (gdk_pango_layout_get_clip_region): Use PANGO_PIXELS
1245 instead of division. (#334617)
1247 2007-02-16 Kristian Rietveld <kris@gtk.org>
1249 * gtk/gtktreeprivate.h: add cursor_offset field.
1251 * gtk/gtktreeview.c (gtk_tree_view_init),
1252 (gtk_tree_view_move_cursor_page_up_down): fix off by one error
1253 in page up/down handling by memorizing the offset into the cursor
1254 row. (Fixes #399809, reported by Bruce Bowler).
1256 2007-02-16 Kristian Rietveld <kris@gtk.org>
1258 * gtk/gtktreeview.c (gtk_tree_view_search_dialog_hide): send
1259 a focus-in event to the tree view after hiding the search dialog.
1260 (#356515, Rich Burridge, Peter Parente).
1262 2007-02-16 Kristian Rietveld <kris@imendio.com>
1264 * tests/testtooltips.c (query_tooltip_text_view_cb): also handle
1265 keyboard tooltips. (#408325, Matthias Clasen).
1267 2007-02-16 Xan Lopez <xan@gnome.org>
1269 * gtk/gtkcombobox.c (gtk_combo_box_expose_event): Cleanup the logic
1270 in expose event handler. Reviewed by Matthias Clasen, #406112
1272 2007-02-16 Matthias Clasen <mclasen@redhat.com>
1274 * gtk/gtkmain.c: Run pre_parse_hook only once. (#403139, Kjartan
1277 2007-02-15 Matthias Clasen <mclasen@redhat.com>
1279 * gdk/x11/gdmain-x11.c (_gdk_xgrab_check_button_event): Be more
1280 careful when checking for ButtonRelease events that end implicit
1281 grabs. (#386618, Christof Krüger)
1283 2007-02-15 Matthias Clasen <mclasen@redhat.com>
1285 * gtk/gtktextbtree.c (_gtk_text_btree_delete): Free the lines
1286 even if there are no views. (#408018, Albert Huang)
1288 2007-02-15 Cody Russell <bratsche@gnome.org>
1290 * gdk/win32/gdkevents-win32.c: Make sure we get enough main context
1291 iterations while we're resizing so that the window contents are resized
1292 more smoothly (#389765).
1294 * gdk/win32/gdkevents-win32.c: Fix flickering widgets when window contents
1295 are resized (#310522).
1297 2007-02-15 Matthias Clasen <mclasen@redhat.com>
1299 * gtk/updateiconcache.c: Handle symlinked .icon files
1300 intelligently; also avoid storing duplicate strings.
1302 2007-02-15 Michael Natterer <mitch@imendio.com>
1304 * gtk/gtkmenushell.c: remove two antique function typedefs that
1305 are probably obsolete for ages.
1307 2007-02-14 Stefan Kost <ensonic@users.sf.net>
1309 reviewed by: Matthias Clasen <mclasen@redhat.com>
1311 * configure.in: determine installation prefixes of dependent libs to
1312 crossreference docs (#407146).
1314 2007-02-14 Kristian Rietveld <kris@imendio.com>
1316 * gtk/gtktooltip.c (child_location_foreach): check return value
1317 of gtk_widget_translate_coordinates() so we cannot end up
1318 using uninitialized x, y values. (#407863, patch from Carlos
1321 2007-02-14 Kristian Rietveld <kris@imendio.com>
1323 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
1324 use TREE_VIEW_DRAG_WIDTH/2 when calculating the drag window
1325 position instead of a hardcoded value. (Taken from maemo-gtk).
1327 2007-02-14 Michael Natterer <mitch@imendio.com>
1329 * gtk/gtkmenu.c (gtk_menu_motion_notify): don't forget to set the
1330 state of the synthesized GDK_ENTER_NOTIFY event. Fix taken from
1333 2007-02-13 Kristian Rietveld <kris@imendio.com>
1335 * gtk/gtktooltip.c (gtk_tooltip_hide_tooltip): stop any
1336 pending tooltip timeout. (Fixes #406110, Carlos Garnacho).
1338 2007-02-10 Emmanuele Bassi <ebassi@gnome.org>
1340 * gtk/gtkrecentchoosermenu.c: Fix the english of the comment;
1341 remove some type checking; use better variable naming for the
1342 internal menu item markers.
1344 2007-02-09 Emmanuele Bassi <ebassi@gnome.org>
1346 * gtk/gtkrecentchoosermenu.c: Add support for both prepending
1347 and appending custom menu items.
1349 (gtk_recent_chooser_menu_constructor): Add a placeholder menu
1350 item for the empty menu case, and for giving us a starting
1351 point for the recent items populating process.
1353 (gtk_recent_chooser_menu_insert_item),
1354 (gtk_recent_chooser_menu_dispose_items): Insert an item at
1355 the position following the placeholder (and find that position
1358 (idle_populate_func), (idle_populate_clean_up): Show the
1359 placeholder menu item, instead of creating one each time.
1361 (gtk_recent_chooser_menu_populate): Kill some indirections
1362 and hide the placeholder before populating the menu.
1364 (set_recent_manager): Remember to remove the idle population
1365 source if the manager changes.
1367 * tests/testrecentchoosermenu.c: Test the appending and
1368 prepending of the menu items to the recent chooser menu
1371 2007-02-08 Emmanuele Bassi <ebassi@gnome.org>
1373 * gtk/gtkrecentchoosermenu.c (idle_populate_func): Keep count
1374 of the displayed items to build the menu items mnemonic instead
1375 of the overall item count. (#377164)
1377 (idle_populate_clean_up): Append a menu item if all the items
1378 got filtered in the idle populate function. (#405696)
1380 * tests/Makefile.am:
1381 * tests/testrecentchoosermenu.c: Add a test for the
1382 GtkRecentChooserMenu widget.
1384 Thu Feb 8 13:07:08 2007 Tim Janik <timj@imendio.com>
1386 * applied patch from Xan Lopez which adds GTK_BUTTONBOX_CENTER to
1387 GtkButtonBox (bug #336159).
1390 * gtk/gtkvbbox.c, gtk/gtkhbbox.c, gtk/gtkbbox.c:
1391 support GTK_BUTTONBOX_CENTER.
1393 * tests/testbbox.c: new button box test, which allows testing of
1394 the various button box properties.
1396 * tests/testgtk.c: added GTK_BUTTONBOX_CENTER. to button box test.
1398 2007-02-07 Cody Russell <bratsche@gnome.org>
1400 * gdk/gdk.symbols: Add gdk_event_request_motions
1402 Wed Feb 7 19:03:28 2007 Tim Janik <timj@gtk.org>
1404 * gtk/gtkentry.c (gtk_entry_motion_notify): fixed motion request
1405 condition which was wrongly ported with my last commit.
1407 Tue Feb 6 15:53:59 2007 Tim Janik <timj@imendio.com>
1409 * gtk/gtktextview.c (gtk_text_view_motion_event):
1410 * gtk/gtkspinbutton.c (gtk_spin_button_motion_notify):
1411 * gtk/gtkaboutdialog.c (credits_motion_notify_event):
1412 * gtk/gtkhruler.c (gtk_hruler_motion_notify):
1413 * gtk/gtkvruler.c (gtk_vruler_motion_notify):
1414 * gtk/gtkentry.c (gtk_entry_motion_notify):
1415 * gtk/gtktooltip.c (_gtk_tooltip_handle_event):
1416 * gtk/gtkhsv.c (gtk_hsv_motion): call gdk_event_request_motions()
1417 for new motion events after receiving motion hints.
1419 * gdk/gdkevents.[hc]: added gdk_event_request_motions().
1421 2007-02-06 Kristian Rietveld <kris@imendio.com>
1423 * gtk/gtktooltip.c (find_topmost_widget_coords_from_event):
1424 remove unused get of has_tooltip.
1426 * tests/testtooltips.c (query_tooltip_tree_view_cb): use the
1427 portable g_snprintf instead of snprintf.
1429 2007-02-06 Michael Natterer <mitch@imendio.com>
1431 * gtk/gtktooltip.c (gtk_tooltip_finalize): chain up.
1433 (gtk_tooltip_show_tooltip): move variables and code to local
1434 scope. Fixes warnings about maybe uninitialized variables.
1436 2007-02-06 Kristian Rietveld <kris@imendio.com>
1442 * gtk/gtk.symbols: build system foo.
1444 * gtk/gtkmain.c (gtk_main_do_event): call tooltip event handler
1445 hook for appropriate events.
1447 * gtk/gtkmarshalers.list: add BOOLEAN:INT,INT,BOOLEAN,OBJECT.
1449 * gtk/gtkrc.c: add style for gtk-tooltip.
1451 * gtk/gtksettings.c (gtk_settings_class_init): make the
1452 different tooltip timeouts configurable.
1454 * gtk/gtkwidget.[ch]: add new properties, signals, make sure
1455 tooltips are hidden on unmap, destroy, update window event
1456 mask on realize, hook into focus change and show help
1459 * gtk/gtkwindow.h: move GtkWindow typdef to gtkwidget.h ...
1461 * gtk/gtktooltip.[ch]: new files.
1464 * tests/testtooltips.c: add test application.
1466 2007-02-05 Dom Lachowicz <domlachowicz@gmail.com>
1468 * modules/engines/ms-windows/msw_style.c: Fix bug 404506, caused
1469 by prematurely releasing a DC. By Hiroyuki Yamamoto
1470 * modules/engines/ms-windows/msw_style.c: Fix bug 403470 - leaking
1471 pixbufs when drawing rotated tabs. By Daniel Atallah
1473 2007-02-05 Michael Natterer <mitch@imendio.com>
1475 * gtk/gtksettings.c: add new boolean settings gtk-enable-accels
1476 and gtk-enable-mnemonics which enable/disable accelerators and
1477 mnemonics (bug #72375, based on a patch from Tommi Komulainen).
1479 * gtk/gtkwindow.c (gtk_window_activate_key)
1480 * gtk/gtkmenushell.c (gtk_menu_shell_key_press): don't invoke them
1481 if the resp. setting is FALSE.
1483 * gtk/gtkaccellabel.c (gtk_accel_label_refetch)
1484 * gtk/gtklabel.c (gtk_label_set_pattern_internal): don't display
1485 them if the setting is FALSE.
1487 * gtk/gtklabel.c: added signal connection to the screen's settings
1488 object and traverse all widgets on the screen when the setting
1489 changes. It's slightly ugly to also update GtkAccelLabels here,
1490 but less ugly than connecting and traversing all widgets twice.
1492 2007-02-05 Michael Natterer <mitch@imendio.com>
1494 * gtk/gtktextbuffer.h (enum GtkTextBufferTargetInfo): changed
1495 values from G_MAXUINT-0, -1, -2 to -1, -2, -3 so we stay within
1496 ansi C enum value limits. Fixes bug #46757.
1498 2007-02-03 Soren Sandmann <sandmann@daimi.au.dk>
1500 * gtk/gtksequence.[ch]: Remove these files since GSequence has
1501 been moved into GLib.
1503 * gtk/gtkliststore.c: Port to GSequence instead of GtkSequence.
1505 * configure.in: Require glib-2.13.0
1507 2007-02-04 Tor Lillqvist <tml@novell.com>
1509 * gdk/win32/gdkcursor-win32.c: Don't define BITMAPV5HEADER on
1510 mingw with w32api >= 3.8, which has it in wingdi.h. (#403896)
1512 2007-02-02 Kristian Rietveld <kris@gtk.org>
1514 * gtk/gtktreeview.c (gtk_tree_view_row_changed): remove unused
1515 style_get of vertical-separator. (#403165, Chris Wilson).
1517 2007-02-02 Christian Persch <chpe@svn.gnome.org>
1519 * gtk/gtkfilechoosersettings.c: (get_config_filename),
1520 (ensure_settings_read), (_gtk_file_chooser_settings_init),
1521 (_gtk_file_chooser_settings_set_show_hidden),
1522 (_gtk_file_chooser_settings_set_expand_folders),
1523 (_gtk_file_chooser_settings_save): Use a simple key file instead of a
1524 markup file. Bug #399592.
1526 2007-02-02 Mariano Suárez-Alvarez <mariano@gnome.org>
1528 * gtk/gtkcellrenderertext.c(gtk_cell_renderer_text_class_init):
1529 be a little more helpful with the docs on GtkCellRendererText:alignment.
1532 2007-02-01 Michael Natterer <mitch@imendio.com>
1534 * gtk/gtkmenu.c (gtk_menu_paint): pass &event->area to
1535 gtk_paint_box() calls.
1537 2007-02-01 Michael Natterer <mitch@imendio.com>
1539 * gtk/gtkmenu.c (gtk_menu_button_press)
1540 (gtk_menu_button_release)
1541 (gtk_menu_button_scroll): remove redundant and confusing
1542 if (GTK_IS_MENU (widget)) checks because "widget" is always a
1545 Thu Feb 1 12:22:06 2007 Tim Janik <timj@imendio.com>
1547 * gtk/gtkcombobox.c (gtk_combo_box_list_destroy): remove extra reference
1548 that gtkcombobox keeps on priv->popup_widget if it's a tree view.
1550 2007-01-31 Christian Persch <chpe@svn.gnome.org>
1552 * gtk/gtkaboutdialog.c: (update_credits_button_visibility),
1553 (gtk_about_dialog_set_authors), (gtk_about_dialog_set_documenters),
1554 (gtk_about_dialog_set_artists),
1555 (gtk_about_dialog_set_translator_credits): Hide the Credits button iff
1556 there are no credits to show. Bug #402806.
1558 2007-01-31 Tor Lillqvist <tml@novell.com>
1560 * gdk/win32/gdkinput-win32.c (print_cursor): New debugging
1562 (_gdk_input_wintab_init_check): Call it when debugging output is
1564 (_gdk_input_wintab_init_check): Skip duplicated cursors for Wacom
1565 tablets. The Wacom driver reports duplicated cursors with
1566 physid==0. Fix verified by Robert Ögren.
1568 2007-01-30 Felix Riemann <friemann@svn.gnome.org>
1570 * modules/printbackends/file/gtkprintbackendfile.c:
1571 (file_printer_get_options): Fix leaked string. Fixes bug #402565.
1573 2007-01-30 Matthias Clasen <mclasen@redhat.com>
1575 * gdk/x11/gdkwindow-x11.c (gdk_x11_window_move_to_current_desktop):
1576 (gdk_x11_window_set_user_time): Be more careful about toplevel
1577 possibly being NULL. (#402453, Sebastian Bacher)
1579 Tue Jan 30 12:09:56 2007 Tim Janik <timj@gtk.org>
1581 * gtk/gtksettings.c: cleaned up ::color-hash registration to not abuse
1582 class_n_properties and leave an uninitialized value array behind.
1584 2007-01-29 Michael Natterer <mitch@imendio.com>
1586 * gtk/gtkmenuitem.c (gtk_menu_item_select)
1587 (gtk_menu_item_deselect): queue a draw on the parent_menu_item of
1588 this menu item's menu, to enable themeing menu items depending on
1589 whether something is selected in their submenu (patch taken from
1592 2007-01-28 Matthias Clasen <mclasen@redhat.com>
1594 * gtk/gtktoolbar.c: Reinstate gtk_toolbar_content_new_compatibility()
1595 that was mistakenly "cleaned up" a while ago. Also
1596 revert a problematic change to the screen_changed
1597 handler. (#401598, Søren Sandmann)
1599 2007-01-28 Matthias Clasen <mclasen@redhat.com>
1601 * gtk/gtkframe.c (gtk_frame_size_allocation): Fix a
1602 problem with large y thickness. (#136592, Xan Lopez)
1604 2007-01-28 Matthias Clasen <mclasen@redhat.com>
1606 * gtk/gtkaction.c (gtk_action_new): Use canonical
1609 2007-01-27 Matthias Clasen <mclasen@redhat.com>
1611 * gtk/gtknotebook.c (gtk_notebook_draw_arrow):
1612 (gtk_notebook_draw_focus): Avoid some unnecessary
1613 gtk_widget_get_style() calls.
1615 2007-01-27 Matthias Clasen <mclasen@redhat.com>
1618 * gtk/gtktoolitem.c:
1619 * gtk/gtktoolbutton.c: Rearrange things so that setting
1620 multiple properties causes not more than a single
1621 reconstruction of the contents.
1623 * gtk/gtkaction.c (connect_proxy): Set all tool button
1624 properties in one go.
1626 2007-01-27 Matthias Clasen <mclasen@redhat.com>
1628 * gtk/gtkstatusicon.c:
1629 * gtk/gtktrayicon-x11.c: Fix GtkStatusIcon to not
1630 take up space on the panel if it is invisible. (340110, Christian
1633 * tests/teststatusicon.c:
1634 * tests/Makefile.am: Updates
1636 2007-01-27 Matthias Clasen <mclasen@redhat.com>
1640 * gtk/gtk.symbols: Add deprecation guards for gtk_rc_style_ref/unref
1641 and the old file selector. (#348256)
1643 2007-01-26 Matthias Clasen <mclasen@redhat.com>
1645 * gtk/gtkiconview.c: Documentation fixes (#400530, Anders Brander)
1647 2007-01-26 Matthias Clasen <mclasen@redhat.com>
1649 * gtk/updateiconcache.c: Check the mtime of all directories,
1650 not just the toplevel, if ftw() is available. (#331671, Behdad
1653 * configure.in: Check for ftw.h.
1655 2007-01-26 Michael Natterer <mitch@imendio.com>
1657 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
1658 destroy the XIM only if it exists. While the code does look safe
1659 in general, there can be corner cases where the "reconnecting"
1660 boolean being FALSE does not correspond to the XIM being
1661 allocated (fixes #329450, fix taken from maemo-gtk).
1663 Fri Jan 26 13:07:07 2007 Tim Janik <timj@imendio.com>
1665 * gtk/gtkstyle.c (draw_insertion_cursor): clamp cursor coordinates to
1666 window bounds (fix from Maemo Gtk).
1668 2007-01-26 Michael Natterer <mitch@imendio.com>
1670 * gtk/gtkentrycompletion.c (gtk_entry_completion_insert_prefix):
1671 only block/unblock completion->priv->insert_text_id if it is
1672 actually connected. While this can't happen the way GtkEntry
1673 itself uses the completion, it's still public API and should not
1674 blindly call functions that will spit warnings (fix taken from
1677 2007-01-25 Matthias Clasen <mclasen@redhat.com>
1679 * gdk/gdkwindow.c: Reduce locking overhead by not repeatedly getting
1680 the paintable iface.
1682 2007-01-24 Michael Natterer <mitch@imendio.com>
1684 * gtk/gtkwidget.c (gtk_widget_set_state): revert generic disabling
1685 of PRELIGHT state for the reasons given in bug #135666. Widget
1686 states are sometimes abused or otherwise used wrongly for historic
1687 reasons, causing this part of the patch to break e.g. menu items.
1689 2007-01-24 Roozbeh Pournader <roozbeh@farsiweb.info>
1691 * README: Remove mention of no-longer-existing PATCH
1692 keyword in bugzilla. (#396899)
1694 2007-01-23 Carlos Garcia Campos <carlosgc@gnome.org>
1696 * gtk/gtkpagesetup.c
1697 (gtk_page_setup_set_paper_size_and_default_margins): Fix memory leak.
1700 2007-01-22 Chris Wilson <chris@chris-wilson.co.uk>
1702 Bug 399314 – Add G_GNUC_WARN_UNUSED_RESULT to gtk_style_attach
1705 Cause gcc to issue a warning if the style returned from
1706 gtk_style_attach is not used. Failure to update
1707 widget->style causes some very difficult to reproduce bugs,
1708 eg Bug 353498 – crash in Terminal: changing icon theme.
1710 2007-01-19 Michael Emmel <mike.emmel@gmail.com>
1712 * gdk/directfb/gdkevents-directfb.c: added fixes for window
1713 crossing events frm Attilio Fiandrotti<attilio.fiandrotti@gmail.com>
1715 2007-01-19 Matthias Clasen <mclasen@redhat.com>
1717 * gtk/gtkcalendar.c: Fix build breakage.
1719 2007-01-19 Kristian Rietveld <kris@imendio.com>
1721 * gtk/gtktreeview.c (gtk_tree_view_motion_bin_window),
1722 (add_scroll_timeout), (gtk_tree_view_drag_motion): factor out
1723 add_scroll_timeout(). (taken from maemo-gtk).
1725 2007-01-18 Matthias Clasen <mclasen@redhat.com>
1727 * gtk/gtkcalendar.c: Fix problems with the initial
1728 focus in GtkCalendar. (#397783, Vincent Untz)
1730 2007-01-19 Robert Ögren <gtk@roboros.com>
1732 Fix for bug #143460 - missed tablet clicks on Windows
1734 * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check):
1735 Request absolute reporting of tablet button state, and cut down
1736 the packet queue size a bit.
1737 (_gdk_input_other_event): Change button state handling
1738 accordingly. Also drop the no longer necessary code that detects
1739 missed clicks/releases for button 1. The switch to absolute button
1740 state should prevent missed events for all buttons. Additionally,
1741 swap button 2 and 3.
1742 (_gdk_input_grab_pointer): Don't reset button_state, that will only
1743 cause a new press event as soon as the next tablet packet arrives.
1745 2007-01-19 Tor Lillqvist <tml@novell.com>
1747 Build Wintab support always on Windows. Don't require the Wintab
1750 * configure.in: Drop the --with-wintab option. Drop the
1751 HAVE_WINTAB feature test macro and Automake variable.
1754 * config.h.win32.in: Drop HAVE_WINTAB.
1756 * gdk/win32/gdkevents-win32.c
1757 * gdk/win32/gdkinput.c
1758 * gdk/win32/gdkinput-win32.h
1759 * gdk/win32/gdkinput-win32.c
1760 * gdk/win32/gdkmain-win32.c: Make HAVE_WINTAB ifdef blocks
1763 * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Try
1764 to load wintab32.dll dynamically here. If it is found look up the
1765 handful Wintab functions we use.
1766 (rest of file): Use these function pointers instead of calling the
1767 functions from wntab32x.lib. The code in wntab32x.lib did the same
1768 thing anyway: tried to load wintab32.dll, and looked up the
1769 addresses of the actual functions from it.
1772 * gdk/win32/Makefile.am: Drop the libwntab32x hacks.
1774 * gdk/win32/wintab.h
1775 * gdk/win32/pktdef.h: New files. Copied from the Wintab
1776 SDK. Copyright blurb says: "The text and information contained in
1777 this file may be freely used, copied, or distributed without
1778 compensation or licensing restrictions."
1780 * README.win32: Update a bit. Remove the text about the Wintab
1783 2007-01-18 Tor Lillqvist <tml@novell.com>
1785 * gdk-pixbuf/Makefile.am
1787 * gdk/win32/Makefile.am
1788 * gtk/Makefile.am: Fixes for building outside srcdir on
1789 Win32. (#336819, #340013) Drop distributing the handmade .la
1790 libtool wrapper for the wntab32x library. It's too much trouble
1791 making it work when building outside srcdir. Just link to the
1792 library direcly using -Wl,win32/libwntab32x.a.
1794 2007-01-18 Michael Natterer <mitch@imendio.com>
1796 * gtk/gtkcheckbutton.c
1801 * gtk/gtkviewport.c: pass more clip rectangles to gtk_paint_foo()
1802 functions. Based on a patch from maemo-gtk (bug #398023).
1804 2007-01-17 Tor Lillqvist <tml@novell.com>
1806 * gtk-zip.sh.in: Include also the COPYING file.
1808 2007-01-17 Matthias Clasen <mclasen@redhat.com>
1810 * modules/printbackends/cups/gtkprintbackendcups.c: Don't use
1811 httpGetFd() when building against cups 1.1
1813 2007-01-17 Tor Lillqvist <tml@novell.com>
1815 Proper fix for #396175:
1817 * gtk/gtkimmulticontext.c: Revert change by Hans Breuer below: Do
1818 include gtkprivate.h. On Win32 we do want to use the redefinition
1819 of GTK_LOCALEDIR as a call to the function _gtk_get_localedir().
1821 * gtk/gtkimmodule.c: Instead, correct the prefix also on
1822 simple_context_info.domain_dirname. Do the prefix corrections
1823 always on Win32, not just when GTK_LIBDIR is defined. i.e., until
1824 now they were done only in the autoconfiscated gcc builds. Hans
1825 needs to make sure GTK_LIBDIR and GTK_LOCALEDIR are defined also
1827 (correct_localedir_prefix): New function, like
1828 correct_libdir_prefix(), but for GTK_LOCALEDIR, in case
1829 GTK_LOCALEDIR is not a descendant of GTK_LIBDIR.
1830 (gtk_im_module_initialize): Thus call correct_localedir_prefix()
1831 on the domain_dirname instead of correct_libdir_prefix().
1832 (_gtk_im_module_list): Call correct_localedir_prefix() on
1833 simple_context_info.domain_dirname.
1835 2007-01-16 Matthias Clasen <mclasen@redhat.com>
1837 * gtk/gtkrange.c (range_grab_remove): Queue a redraw when the
1838 grab changes. (#396470, Benjamin Berg)
1840 2007-01-15 Emmanuele Bassi <ebassi@gnome.org>
1842 * gtk/gtkrecentchoosermenu.c: Ellipsize the menu items label
1843 if they grow too much. (#357303)
1845 2007-01-14 Matthias Clasen <mclasen@redhat.com>
1847 * gtk/gtkicontheme.c (theme_lookup_icon): When finding a matching
1848 non-scalable dir, keep going and look for a closer match.
1849 (#395830, Luca Ferretti)
1851 2007-01-14 Christian Persch <chpe@svn.gnome.org>
1853 * gtk/gtkclipboard.c: (gtk_clipboard_set_text),
1854 (gtk_clipboard_set_image): Use gtk_target_table_new_from_list and
1855 gtk_target_table_free instead of duplicating the code. Bug #396493.
1857 2007-01-13 Matthias Clasen <mclasen@redhat.com>
1859 * gtk/gtkuimanager.c: Don't crash if menu or toolbar
1860 positions can't be found. (#396161, Hans Breuer)
1862 2007-01-13 Matthias Clasen <mclasen@redhat.com>
1864 * gtk/gtkselection.c (_gtk_selection_request): Plug
1865 memory leaks. (#396160, Carlos Garcia Campos)
1867 2007-01-13 Matthias Clasen <mclasen@redhat.com>
1869 * configure.in: Link libgtk against Xfixes. (#396074,
1872 2007-01-13 Matthias Clasen <mclasen@redhat.com>
1874 * gtk/gtkradiobutton.c (gtk_radio_button_focus): Avoid
1875 a compiler warning. (#395045, Chris Wilson)
1877 2007-01-13 Hans Breuer <hans@breuer.org>
1879 * gtk/gtkprintoperation-win32.c : take the custom tab label from
1880 gtk_print_operation_set_custom_tab_label() into account (bug #390746).
1882 * gtk/gtkimmulticontext.c : don't include "gtkprivate.h" to avoid
1883 differing definitions of GTK_LOCALEDIR (bug #396175).
1885 * gtk/gtktreeview.c : use g_snprintf instead of snprintf, which is
1886 not available everywhere
1888 * gtk/makefile.msc.in : updated
1890 2007-01-12 Michael Natterer <mitch@imendio.com>
1892 * gtk/gtkentry.c (gtk_entry_button_press): don't add
1893 entry->scroll_offset to entry->drag_start_y. Fixes the entry
1894 starting drags after ridiculously small mouse movements.
1896 2007-01-11 Richard Hult <richard@imendio.com>
1898 * demos/gtk-demo/main.c: (load_file): Close the file after it's
1899 loaded (bug #395316).
1901 2007-01-11 Kjartan Maraas <kmaraas@gnome.org>
1903 * gtk/gtkfilesystemunix.c: (expand_tilde):
1904 Make a single tilde go to $HOME in the location entry.
1905 Patch from Yevgen Muntyan. Closes the gtk+ part of
1908 2007-01-10 Behdad Esfahbod <behdad@gnome.org>
1910 * gdk/gdkpango.c (gdk_draw_layout_with_colors):
1911 * gtk/gtklabel.c (gtk_label_size_request):
1912 Use pango_matrix_transform_rectangle(). (#340141)
1914 * configure.in: Bump pango requirement to 1.15.3.
1916 2007-01-10 Kristian Rietveld <kris@imendio.com>
1918 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_init):
1919 refactor to initialize indicator_size to TOGGLE_WIDTH instead
1920 of the hardcoded value of 12.
1922 2007-01-09 Matthias Clasen <mclasen@redhat.com>
1924 * configure.in: Fix the directfb cairo test. (#394855,
1927 2007-01-09 Behdad Esfahbod <behdad@gnome.org>
1929 * configure.in: Fix comment for --with-included-loaders. That option
1930 affects builds with module loading enabled too.
1932 2006-01-08 Peter Teichman <peter@novell.com>
1934 * gtk/gtkfilechooserdefault.c:
1935 * gtk/gtkfilechooserprivate.h:
1936 * gtk/gtkfilechoosersettings.c:
1937 * gtk/gtkfilechoosersettings.h:
1938 Save the expanded state of the folder browser with the file
1939 chooser settings. Resolves the expander portions of (#153828,
1942 2007-01-08 Emmanuele Bassi <ebassi@gnome.org>
1944 * gtk/gtkrecentchoosermenu.c (gtk_recent_chooser_menu_create_item):
1945 Don't leak the icon pixbuf after setting it to the image menu
1946 item. Found by Paolo Borelli.
1948 2007-01-08 Matthias Clasen <mclasen@redhat.com>
1950 * gtk/gtktreemodel.c (gtk_tree_path_to_string): Don't
1951 corrupt memory when faced with paths with ridiculously
1952 large indices. Found by the GTKVTS test suite.
1954 2007-01-08 Matthias Clasen <mclasen@redhat.com>
1956 * gtk/gtkmodules.c (_gtk_modules_init): Set
1957 default_display_opened before loading modules. (#393102,
1960 2007-01-07 Matthias Clasen <mclasen@redhat.com>
1962 * gtk/gtktextview.c (gtk_text_view_set_border_window_size):
1963 Call text_window_realize() with the correct parameters.
1964 (#393813, Yevgen Muntyan)
1966 2007-01-07 Matthias Clasen <mclasen@redhat.com>
1968 * gtk/gtkstatusbar.c: Move docs inline, and expand them
1971 2007-01-06 Matthias Clasen <mclasen@redhat.com>
1973 * gtk/gtklabel.c: Make line wrapping work with width-chars
1974 and max-width-chars, and simplify the storage of wrap-width.
1975 (#322580, Itai Bar-Haim)
1977 2007-01-06 Tor Lillqvist <tml@novell.com>
1979 * gdk/win32/cursor.bdf: New file. Downloaded from
1980 freedesktop.org's webcvs. Slighly edited cursors "crosshair",
1981 "diamond_cross", "draft_large", "gobbler" and "target" to fix
1982 #392504. It is possible that the same end result could have been
1983 achieved by tweaking bdfcursor.c instead.
1985 * gdk/win32/bdfcursor.c: Add optional debugging output.
1987 * gdk/win32/xcursors.h: Regenerated.
1989 2007-01-05 Matthias Clasen <mclasen@redhat.com>
1991 * gtk/gtknotebook.c (gtk_notebook_set_menu_label_text): Left-align
1992 menu labels. (#393255, Michail Crayson)
1994 2007-01-05 Kristian Rietveld <kris@gtk.org>
1996 * gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): handle tree
1997 == NULL. (Fixes #392685, reported by Yevgen Muntyan).
1999 2007-01-05 Kristian Rietveld <kris@gtk.org>
2001 * gtk/gtktreeview.c (gtk_tree_view_row_changed): do allow to
2002 invalidate nodes if the tree view is not realized. (#363147,
2003 Carlos Garnacho, Miguel Cabrera).
2005 2007-01-05 Matthias Clasen <mclasen@redhat.com>
2007 * gtk/gtkmenu.c (gtk_menu_paint): Take the scroll arrow into
2008 account when drawing the background. (#393166, Benjamin Berg)
2010 2007-01-05 Behdad Esfahbod <behdad@gnome.org>
2012 * gtk/gtklabel.c (get_layout_location): Fix broken width computation,
2015 2007-01-05 Carlos Garnacho <carlosg@gnome.org>
2017 * gtk/gtknotebook.c (gtk_notebook_size_request): take into account
2018 both scroll arrows when calculating size request in GTK_POS_LEFT or
2019 GTK_POS_RIGHT notebooks. (#393124, reported by Christian Persch)
2021 2007-01-05 Michael Natterer <mitch@imendio.com>
2023 * gtk/gtkwindow.c (gtk_window_key_release_event): chain up to
2024 the right function (fix taken from maemo-gtk).
2026 2007-01-05 Behdad Esfahbod <behdad@gnome.org>
2029 * gdk/gdkpango.c (gdk_draw_layout_line_with_colors),
2030 (gdk_draw_layout_with_colors):
2031 * gdk/gdkwindow.c (gdk_window_draw_glyphs_transformed):
2032 Avoid overflow when converting coordinates to Pango units. (#332266,
2035 2007-01-04 Matthias Clasen <mclasen@redhat.com>
2037 * gtk/gtkcombobox.c (gtk_combo_box_popup): move set_cursor
2038 after realization of the popup window, so clamp node doesn't fail.
2039 (#346616, Tommi Komulainen, patch by Kristian Rietveld).
2041 2007-01-04 Behdad Esfahbod <behdad@gnome.org>
2043 * gtk/gtklabel.c (get_layout_location): Fix uninitialized width
2046 2007-01-04 Matthias Clasen <mclasen@redhat.com>
2049 * gdk-pixbuf/Makefile.am:
2051 * gdk/win32/rc/gdk.rc.in: Cross-compilation fixes.
2052 (#392646, Yevgen Muntyan)
2054 2007-01-04 Matthias Clasen <mclasen@redhat.com>
2056 * demos/gtk-demo/textscroll.c:
2057 * gtk/gtkhandlebox.c:
2058 * gtk/gtkcolorsel.c: Fix some compiler warnings.
2060 2007-01-03 Matthias Clasen <mclasen@redhat.com>
2062 * gtk/gtktextview.c: Rework the beep-on-uninserted-text
2063 by calling the input method regardless of editability,
2064 and beeping from the commit/preedit-changed handlers.
2065 (#390514, Yevgen Muntyan)
2067 2007-01-03 Matthias Clasen <mclasen@redhat.com>
2069 Fix #332604, reported by Joe Wreschnig, patch
2070 by Jan Arne Petersen and Behdad Esfahbod.
2072 * gtk/gtklabel.c (gtk_label_size_allocate): Only
2073 set the width of the layout when necessary.
2074 (get_layout_location): Use pango_layout_get_pixel_extents()
2075 instead of pango_layout_get_width().
2077 2007-01-03 Matthias Clasen <mclasen@redhat.com>
2079 * modules/printbackends/cups/gtkprintbackendcups.c
2080 (available_choices): Don't leak conflicts.
2082 * gtk/gtkprintoperation.c (gtk_print_operation_finalize):
2083 Don't leak the status string.
2085 2007-01-03 Matthias Clasen <mclasen@redhat.com>
2087 * gtk/gtkfilechooserdefault.c (update_chooser_entry):
2088 Exit early if we can't get file info - this happens
2089 if the iter points to the row where we are editing
2090 the name for a newly created folder. (#392191, Michael
2091 Partridge, patch by Kristian Rietveld)
2093 2007-01-03 Matthias Clasen <mclasen@redhat.com>
2096 * gdk/x11/*.c: Apply a patch by Chris Wilson to
2097 avoid spurious valgrind warnings from XSendEvent()
2100 * modules/printbackends/cups/gtkprintbackendcups.c: Close
2101 the http connection after getting the PPD.
2103 * gtk/gtkprinteroptionwidget.c (filesave_changed_cb):
2106 2007-01-03 Matthias Clasen <mclasen@redhat.com>
2108 * gtk/gtkassistant.c (remove_page): If the current page
2109 is removed, always pick a different one. (#392457,
2112 2007-01-03 Matthias Clasen <mclasen@redhat.com>
2114 * modules/printbackend/cups/*.c: Coding style cleanups.
2116 2007-01-03 Matthias Clasen <mclasen@redhat.com>
2118 * configure.in: Export SED to make sourcing of
2119 libtool work. Tighten up the directfb pkgconfig check.
2121 2007-01-03 Michael Natterer <mitch@imendio.com>
2123 * gtk/gtkstyle.c (option_menu_get_props)
2124 * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Use
2125 gtk_border_free when freeing borders.
2127 2007-01-03 Matthias Clasen <mclasen@redhat.com>
2129 * gtk/gtkentry.c (get_text_area_size): Work when the
2130 entry is not realized. (#392315, Yevgen Muntyan)
2132 * gtk/gtkentry.c (gtk_entry_queue_draw): Use
2133 GTK_WIDGET_DRAWABLE() here. (#392227, Chris Wilson)
2135 * gtk/gtkentry.c (cursor_blinks): Don't get settings
2136 unnecessarily. (#392227)
2138 2007-01-02 Matthias Clasen <mclasen@redhat.com>
2140 * gtk/gtkwindow.c (gtk_window_move_resize): Only process
2141 updates on the window at hand, not on all windows, to
2142 avoid violating resize/redraw ordering constraints.
2143 (#362406, Owen Taylor)
2145 2007-01-03 Kristian Rietveld <kris@gtk.org>
2147 * gtk/gtkcellrendererprogress.c
2148 (gtk_cell_renderer_progress_class_init): fix docs.
2150 2007-01-02 Matthias Clasen <mclasen@redhat.com>
2152 * gtk/updateiconcache.c: Include locale.h
2154 2007-01-02 Matthias Clasen <mclasen@redhat.com>
2156 * gtk/updateiconcache.c (main): Call setlocale().
2159 * gtk/gtkfilesystemunix.c:
2160 * gtk/gtkfilesystemwin32.c:
2161 * gtk/gtkfilechoosersettings.c:
2162 * gtk/updateiconcache.c: Consistently use folder instead of
2163 directory in translated messages. (#344584, Javier F. Serrador)
2165 2007-01-02 Matthias Clasen <mclasen@redhat.com>
2167 Try to fix #315732, reported by Luke Hutchinson:
2169 * gdk/x11/xsettings-client.[hc]:
2170 * gdk/x11/gdkdevents-x11.c: Don't assume that ref'ing a GdkWindow
2171 will guarantee that it can be looked up in the xid hash later.
2172 Also, use the nesting server grab function during the xsettings
2173 client initialization. Finally, make xsettings client not
2174 eat DestroyNotifys so that GDK can do its regular cleanup.
2176 2007-01-02 Michael Natterer <mitch@imendio.com>
2178 * gtk/gtkrange.c (gtk_range_scroll) (gtk_range_move_slider): beep
2179 when a keybinding didn't change adjustment->value.
2181 2007-01-02 Matthias Clasen <mclasen@redhat.com>
2183 * gtk/gtktextbuffer.c (gtk_text_view_key_press_event):
2184 Try harder not to beep on events which are not meant to
2185 insert stuff in the buffer. (#390514, Yevgen Muntyan)
2187 2007-01-02 Matthias Clasen <mclasen@redhat.com>
2189 * gtk/gtktextbufferrichtext.c: Small documentation fixes.
2191 2007-01-02 Matthias Clasen <mclasen@redhat.com>
2193 * gtk/gtkentry.c (get_text_area_size): Center in the frame.
2194 (#304482, Rob Staudinger, patch by Richard Stellingwerff)
2196 2007-01-02 Michael Emmel <mike.emmel@gmail.com>
2198 * gdkwindow-directfb.c: fixed leak of dfb resource on destroy
2200 2007-01-01 Matthias Clasen <mclasen@redhat.com>
2202 * gtk/gtkscrolledwindow.h:
2203 * gtk/gtkscrolledwindow.c: Only handle key bindings
2204 for scrolling if the scrollbars are visible.
2205 (#340135, Christian Persch)
2207 2007-01-01 Matthias Clasen <mclasen@redhat.com>
2209 * gtk/gtktextview.c (gtk_text_view_scroll_hpages):
2210 Don't segfault on horizontal scrolling.
2212 2007-01-01 Matthias Clasen <mclasen@redhat.com>
2214 * gtk/gtknotebook.h:
2215 * gtk/gtknotebook.c: Only handle key bindings for
2216 tab reordering if the tabs are shown and reorderable.
2217 (#390468, Yevgen Muntyan)
2219 * gtk/gtkmarshalers.list: Add required marshaler
2221 2007-01-01 Matthias Clasen <mclasen@redhat.com>
2223 * gtk/gtkcontainer.c (gtk_container_class_list_child_properties):
2224 Mention in the docs that the return value is
2225 NULL-terminated. (#383373, Christian Neumair)
2227 2007-01-01 Matthias Clasen <mclasen@redhat.com>
2229 * gtk/gtkicontheme.c (load_themes): Waste less time
2230 with non-directories. (#391725, Chris Wilson)
2232 2007-01-01 Matthias Clasen <mclasen@redhat.com>
2234 * gtk/gtkcellrendererprogress.c: Implement activity mode
2235 for GtkCellRendererProgress. (#377851, Brad Taylor)
2237 2007-01-01 Matthias Clasen <mclasen@redhat.com>
2239 Fix some IPP compliance issues. (#391523, Albrecht Dress)
2241 * modules/printbackends/cups/gtkcupsutils.c
2242 (gtk_cups_request_encode_option): Use IPP_TAG_JOB, not
2244 * modules/printbackends/cups/gtkprintbackendcups.c
2245 (gtk_print_backend_cups_print_stream): Don't add the
2246 requesting-user-name attribute a second time.
2248 2007-01-01 Matthias Clasen <mclasen@redhat.com>
2250 * gtk/gtkimcontextsimple.c: Fix en/em dash confusion. (#378462)
2252 2006-12-31 Emmanuele Bassi <ebassi@gnome.org>
2254 * gtk/gtkrecentchoosermenu.c (set_recent_manager): Use the
2255 right object when disconnecting from the GtkRecentManager::changed
2256 signal; save us a few indirections using a variable.
2258 2006-12-31 Emmanuele Bassi <ebassi@gnome.org>
2260 * gtk/gtkrecentchoosermenu.c: Move the signal and idle
2261 disconnections into the dispose function, as well as the
2262 object unrefs; reset every handler id and the
2263 pointers. (suggested by Paolo Borelli, #390873)
2265 2006-12-31 Matthias Clasen <mclasen@redhat.com>
2267 * gtk/gtkprintoperation-win32.c: Include windows.h (#391229,
2270 2006-12-30 Matthias Clasen <mclasen@redhat.com>
2272 * gtk/gtktextview.c (gtk_text_view_destroy): Remove the
2273 scroll timeout. (#390872, Yevgen Muntyan)
2275 2006-12-30 Matthias Clasen <mclasen@redhat.com>
2277 * gtk/gtkprintoperation-unix.c:
2278 * gtk/gtkprintbackend.c:
2279 * gtk/gtkfilechooserdefault.c:
2280 * gtk/gtksettings.c: Move a few settings to gtksettings.c
2281 to make sure they show up in the docs. (#365364, Christian
2284 2006-12-30 Matthias Clasen <mclasen@redhat.com>
2286 * gtk/gtkassistant.c: Redraw assistant on reallocate
2287 to avoid rendering glitches. (#343956, Christian
2288 Persch, Carlos Garnacho)
2290 2006-12-30 Matthias Clasen <mclasen@redhat.com>
2292 * gtk/gtkrange.c: Typo fix. (#352121, Clytie Siddall)
2294 2006-12-30 Matthias Clasen <mclasen@redhat.com>
2296 * gtk/gtkaction.c: Improve the docs of the "label"
2297 property. (#341730, Kristof Vansant)
2299 2006-12-30 Matthias Clasen <mclasen@redhat.com>
2301 * gtk/gtkwindow.c (gtk_window_compute_configure_request_size):
2302 Correctly handle min size. (#320465, Philipp Langdale)
2304 2006-12-30 Matthias Clasen <mclasen@redhat.com>
2306 * gtk/prop-editor.c: Implement editing of flags.
2308 2006-12-30 Matthias Clasen <mclasen@redhat.com>
2313 * gtk/gtkstatusbar.c:
2314 * gtk/gtktextview.c: Don't install cursors on insensitive
2315 widgets. (#358864, Jan Schampera)
2317 2006-12-29 Matthias Clasen <mclasen@redhat.com>
2319 * gtk/gtkrecentmanager.h:
2320 * gtk/gtkprintoperation.c: Fix doc typos. (#370909,
2323 * gtk/gtkstyle.c (gtk_style_attach): Clarify docs. (#353423,
2326 * gtk/gtkentry.c (blink_cb):
2327 * gtk/gtktextview.c (blink_cb): Don't die in an assertion
2328 if focus went missing. Just warn, clean up and continue.
2331 2006-12-29 Carlos Garnacho <carlosg@gnome.org>
2333 * gtk/gtknotebook.c (gtk_notebook_scroll): return if the widget that
2334 originally received the event is a notebook page. (#315440, reported
2337 2006-12-29 Matthias Clasen <mclasen@redhat.com>
2339 * gdk/gdkcolor.c (gdk_color_hash): Fix a typo. (#390613,
2342 2006-12-29 Matthias Clasen <mclasen@redhat.com>
2344 * tests/prop-editor.c: Display children of containers
2345 and cell renderers of cell layouts.
2348 * gtk/gtkcelllayout.[hc] (gtk_cell_layout_get_cells):
2349 New function to get the cell renderers of a cell layout.
2351 * gtk/gtktreeviewcolumn.c:
2352 * gtk/gtkcellview.c:
2353 * gtk/gtkiconview.c: Implement get_cells.
2355 2006-12-28 Matthias Clasen <mclasen@redhat.com>
2357 * gtk/gtkiconview.c: Use word wrapping by default, and
2358 center multiline labels. (#318763, Ross Burton)
2360 * gtk/gtkcellrenderertext.c (get_layout): Remove a special
2361 case for single-line layouts.
2363 2006-12-28 Matthias Clasen <mclasen@redhat.com>
2365 * gtk/gtkarrow.c: Fix a typo in the docs. (#390423,
2368 * gtk/gtkuimanager.c (update_node): Only use the results
2369 of find_menu/toolbar_position() if they succeed. May fix
2372 2006-12-28 Matthias Clasen <mclasen@redhat.com>
2374 * gdk/gdk.c: Fix some formatting errors in docs.
2376 2006-12-28 Tor Lillqvist <tml@novell.com>
2378 * gtk/gtkstatusicon.c (gtk_status_icon_finalize)
2379 (gtk_status_icon_update_image): Don't leak HICONs on
2380 Win32. (#364868, Hiroyuki Yamamoto)
2382 2006-12-28 Carlos Garnacho <carlosg@gnome.org>
2384 Make GtkNotebook able to drop detached tabs anywhere. Bug #360225.
2386 * gtk/gtkwidget.c (gtk_widget_class_init): add "drag-failed" signal.
2387 * gtk/gtkmarshalers.list: add new marshaler definition.
2388 * gtk/gtkenums.h: add GtkDragResult enum.
2390 * gtk/gtkdnd.c (gtk_drag_drop_finished): emit "drag-failed" if DND
2391 operation wasn't successful.
2392 (_gtk_drag_source_handle_event) (gtk_drag_drop)
2393 (gtk_drag_selection_get) (gtk_drag_cancel) (gtk_drag_key_cb)
2394 (gtk_drag_grab_broken_event_cb) (gtk_drag_grab_notify_cb)
2395 (gtk_drag_button_release_cb) (gtk_drag_abort_timeout): tell
2396 gtk_drag_drop_finished() the operation result.
2398 * gtk/gtknotebook.c (gtk_notebook_drag_failed): new function.
2399 (gtk_notebook_drag_data_get): do not call window creation hook here.
2400 (gtk_notebook_init): do not set "application/x-rootwindow-drop"
2401 target, instead connect to "drag-failed".
2402 (gtk_notebook_draw_focus): fix potential crasher if cur_page is NULL.
2404 2006-12-28 Mikael Hallendal <micke@imendio.com>
2406 * gdk/quartz/gdkevents-quartz.c: Factored out the event loop
2407 integration into gdkeventloop-quartz.c.
2409 * gdk/quartz/Makefile.am: Added gdkeventloop-quartz.c
2411 * gdk/quartz/gdkeventloop-quartz.c: New file containing the event loop
2414 2006-12-27 Matthias Clasen <mclasen@redhat.com>
2416 * modules/printbackends/lpr/gtkprintbackendlpr.c
2417 (gtk_print_backend_lpr_print_stream): Close the io channel
2418 on unref. (#390159, Joe Markus Clarke)
2420 2006-12-27 Matthias Clasen <mclasen@redhat.com>
2422 * gdk/gdk.h: Remove redundant declarations (#390097,
2425 2006-12-27 Kristian Rietveld <kris@gtk.org>
2427 Support inverting arrows via XSetting. (#377979, Yevgen Muntyan).
2429 * gtk/gtksettings.c (gtk_settings_class_init): add new setting
2430 gtk-alternative-sort-arrows.
2432 * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): add
2435 * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: set new
2436 gtk-alternative-sort-arrows setting to true.
2438 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
2439 invert direction if gtk-alternative-sort-arrows is TRUE.
2441 2006-12-27 Tor Lillqvist <tml@novell.com>
2443 * gtk/gtk.symbols: Add gtk_status_icon_get_screen and
2444 gtk_status_icon_set_screen.
2446 * gtk/gtkstatusicon.c: Implement gtk_status_icon_position_menu()
2447 on Windows. Keep track of where the last button click on the
2448 taskbar icon took place, and return that. Obviously not correct if
2449 no button has ever been clicked on the icon, or if the geometry of
2450 the taskbar has changed since. But for most use cases where a menu
2451 is going to be displayed as a direct result of a button click on
2452 the status icon, works fine. (#377349)
2454 Implement getting the orientation property on Windows.
2456 (gtk_status_icon_embedded_changed)
2457 (gtk_status_icon_orientation_changed): Ifdefify these functions
2458 that are used only on X11.
2460 2006-12-27 Tor Lillqvist <tml@novell.com>
2462 * gtk/gtkfilesystemwin32.c (execute_callbacks): Fix
2463 typo. (#390035, Kazuki Iwamoto)
2465 2006-12-27 Matthias Clasen <mclasen@redhat.com>
2467 * gtk/gtkcellview.c (gtk_cell_view_set_model): Accept NULL.
2469 * gtk/gtkcombobox.c (gtk_combo_box_set_model):
2470 (gtk_combo_box_unset_model): Handle repeated unsetting
2471 of models without warnings. (#367529, Robert Ancell)
2473 2006-12-27 Matthias Clasen <mclasen@redhat.com>
2475 * modules/printbackends/cups/gtkcupsutils.c:
2476 * modules/printbackends/cups/gtkprintbackendcups.c: Use
2477 getters for http fields where available. (#364866,
2480 2006-12-27 Matthias Clasen <mclasen@redhat.com>
2482 * gtk/gtkwidget.c (gtk_widget_show): Add a g_return_if_fail.
2483 (#362614, Xan Lopez)
2485 2006-12-27 Matthias Clasen <mclasen@redhat.com>
2487 * gtk/gtkuimanager.c (update_node): If a required action
2488 is missing, don't recurse over the children. (#349119,
2491 2006-12-27 Matthias Clasen <mclasen@redhat.com>
2493 Fix a few problems with nested menus in comboboxes
2494 (#386694, Yevgen Muntyan)
2496 * gtk/gtkcombobox.c (gtk_combo_box_menu_fill_level): Always
2497 connect the activate callback.
2498 (gtk_combo_box_menu_item_activate): Do nothing if called on
2499 an item with a submenu.
2500 (gtk_combo_box_menu_row_deleted): Remove a submenu when it
2503 2006-12-26 Mariano Suárez-Alvarez <mariano@gnome.org>
2505 * gtk/gtkfilechooserbuuton.[hc]: Add a file-set signal to the
2506 filechooser button. Bug 353196.
2508 2006-12-26 Kristian Rietveld <kris@gtk.org>
2510 * gtk/gtktreeview.c (gtk_tree_view_search_init): fix typo causing
2511 the search dialog timeout never to be refreshed. (#389581,
2512 Andrzej Szombierski).
2514 2006-12-26 Kristian Rietveld <kris@gtk.org>
2516 Lots of scrolling fixes. Made scrolling work properly in not fully
2517 validated tree views; fixed a bunch of corner cases.
2519 * gtk/gtktreeview.c (validate_visible_area): if a row's dy is past
2520 upper - page_size, we know it is located at the end so the test for
2521 dy + height has been dropped.
2522 In the same case if area_below < 0, we know this is the last node
2523 in the tree view so area_above is page_size - height of this row.
2524 (validate_visible_area): got rid of subtracting new_height -
2525 old_height from area_{below,above}, it didn't make any sense at
2526 all and the full height of the row should be subtracted instead.
2527 (validate_visible_area): when scrolling to a given path, set the
2528 top row directly together with the dy offset, then sync that top_row
2530 (gtk_tree_view_set_top_row): new function to directly set a top_row.
2531 (gtk_tree_view_dy_to_top_row): refactored to use
2532 gtk_tree_view_set_top_row().
2533 (gtk_tree_view_top_row_to_dy): make sure dy >= 0 when done.
2534 (gtk_tree_view_adjustment_changed): only update our dy and
2535 top_row if the adjustment's dy actually changed.
2537 2006-12-26 Christian Persch <chpe@cvs.gnome.org>
2539 * gtk/gtknotebook.c: (gtk_notebook_real_insert_page):
2540 Return the correct value from gtk_notebook_insert_page if the
2541 page-added handler reorders the tabs. Bug #345094.
2543 2006-12-26 Carlos Garnacho <carlosg@gnome.org>
2545 Fix small regressions in GtkNotebook tab detaching. Bug #378852.
2547 * gtk/gtknotebook.c (gtk_notebook_do_arrow): grab focus to allow tabs
2548 scrolling when hovering with a detached tab.
2549 (gtk_notebook_stop_reorder): Do not deparent the wrong tab if the
2550 focus tab has changed during a tab DND operation.
2551 (gtk_notebook_drag_end): ensure that the dropped tab gets focused.
2552 (gtk_notebook_paint): do not take cur_page as a reference to paint the
2553 box if it's detached.
2554 (gtk_notebook_calculate_tabs_allocation): focus_tab may be different
2555 to the detached tab if we hover the arrows during a tabs detaching
2556 operation, do not allocate it unconditionally in 0,0.
2558 2006-12-26 Carlos Garnacho <carlosg@gnome.org>
2560 Expose improvements for GtkNotebook. Bug #383435
2562 * gtk/gtknotebook.c (gtk_notebook_expose): propagate the event to tab
2564 (gtk_notebook_draw_focus): do not repaint the whole focused tab again.
2565 (gtk_notebook_draw_tab): do not send handmade expose events to tab
2568 2006-12-26 Matthias Clasen <mclasen@redhat.com>
2570 * gtk/gtkfilesystemunix.c (execute_callbacks): Return
2571 FALSE. (#389623, Carlos Garnacho Parro)
2573 * gtk/gtkrange.c (stop_scrolling): Avoid spurious
2576 2006-12-25 Christian Persch <chpe@cvs.gnome.org>
2578 * gtk/gtkplug.c: (gtk_plug_construct_for_display),
2579 (gtk_plug_unrealize): Notify the "embedded" property also on
2580 normal construction and when destroying the socket window.
2583 2006-12-25 Christian Persch <chpe@cvs.gnome.org>
2585 * gtk/gtkaboutdialog.c: (gtk_about_dialog_class_init),
2586 (gtk_about_dialog_init), (display_credits_dialog),
2587 (display_license_dialog):
2588 * gtk/gtkfilechooserdialog.c: (gtk_file_chooser_dialog_class_init),
2589 (gtk_file_chooser_dialog_init),
2590 (gtk_file_chooser_dialog_constructor),
2591 (gtk_file_chooser_dialog_unmap):
2592 * gtk/gtkrecentchooserdefault.c:
2593 (_gtk_recent_chooser_default_init):
2594 * gtk/gtkrecentchooserdialog.c:
2595 (gtk_recent_chooser_dialog_class_init),
2596 (gtk_recent_chooser_dialog_init),
2597 (gtk_recent_chooser_dialog_constructor),
2598 (gtk_recent_chooser_dialog_unmap): Set the HIG spacings directly
2599 instead of using style-set handlers. Fix the filechooser's spacing
2600 between content and action area to 12px. Bug #372447.
2602 2006-12-25 Christian Persch <chpe@cvs.gnome.org>
2604 * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate):
2605 Don't assume statusbar->label is the statusbar's frame's child when
2606 shrinking the size allocation when the grip is shown. Bug #372452.
2608 2006-12-25 Christian Persch <chpe@cvs.gnome.org>
2610 * gtk/gtkpagesetupunixdialog.c: (printer_status_cb),
2611 (add_custom_paper): Fix mem leaks. Bug #389194.
2613 2006-12-24 Matthias Clasen <mclasen@redhat.com>
2615 * gtk/gtktextutil.c: Remove debug output.
2617 * gtk/gtktextview.c: Improve the DND scrolling
2618 behaviour. (#92387, Carlos Garnacho Parro)
2620 * gtk/gtkaccellabel.c: Improve translators comments.
2621 (#389298, Christian Persch)
2623 2006-12-24 Bastien Nocera <hadess@hadess.net>
2625 * gtk/gtkrecentmanager.c: Fix typo (s/expansive/expensive)
2628 2006-12-24 Christian Persch <chpe@cvs.gnome.org>
2630 * docs/reference/gtk/gtk-sections.txt:
2632 * gtk/gtkpagesetupunixdialog.c: (fill_paper_sizes_from_printer):
2633 * gtk/gtkprinter-private.h:
2634 * gtk/gtkprinter.c: (gtk_printer_list_papers):
2635 * gtk/gtkprinter.h: Make gtk_printer_list_papers public. Bug #345587.
2637 2006-12-24 Carlos Garcia Campos <carlosgc@gnome.org>
2639 * gtk/gtkpagesetupunixdialog.c: Don't ignore reverse portrait option
2640 when is selected in page setup dialog. Fixes bug #365047.
2642 2006-12-24 Behdad Esfahbod <behdad@gnome.org>
2644 * gtk/gtkentry.c (_gtk_entry_effective_inner_border):
2645 Use gtk_border_free when freeing border.
2647 2006-12-24 Matthias Clasen <mclasen@redhat.com>
2649 * gtk/gtkentry.c (gtk_entry_button_press): When
2650 shift-clicking, keep the larger part of the selection
2651 selected. (#353709, Benjamin Otte)
2653 * gtk/gtkbutton.c (gtk_button_get_props): Use
2654 gtk_border_free when freeing borders.
2656 * gtk/gtkbutton.c (gtk_button_grab_notify): Be more
2657 careful when faking a button release. (#323146,
2660 * gtk/gtkhandlebox.c (draw_textured_frame): Draw the
2661 handle with the right orientation, depending on the
2662 position of the handlebox. (#159764, Benjamin Berg)
2664 2006-12-24 Behdad Esfahbod <behdad@gnome.org>
2666 * gtk/gtkstyle.c (gtk_border_copy), (gtk_border_free): Use gslice for
2667 GtkBorder (#383557).
2669 2006-12-24 Behdad Esfahbod <behdad@gnome.org>
2671 Bug 340141 – Update to Pango 1.16 API
2673 * gdk/gdkpango.c (layout_iter_get_line_clip_region),
2674 (gdk_pango_layout_line_get_clip_region):
2675 * gtk/gtkcalendar.c (gtk_calendar_size_request):
2676 * gtk/gtkentry.c (gtk_entry_get_pixel_ranges),
2677 (get_layout_position), (gtk_entry_find_position),
2678 (gtk_entry_adjust_scroll):
2679 * gtk/gtkiconview.c (get_pango_text_offsets):
2680 * gtk/gtklabel.c (get_cursor_direction):
2681 * gtk/gtkstyle.c (get_insensitive_layout):
2682 * gtk/gtktextdisplay.c (render_para):
2683 * gtk/gtktextlayout.c (allocate_child_widgets),
2684 (find_display_line_below), (find_display_line_above),
2685 (gtk_text_layout_move_iter_to_previous_line),
2686 (gtk_text_layout_move_iter_to_next_line),
2687 (gtk_text_layout_move_iter_to_line_end),
2688 (gtk_text_layout_iter_starts_line),
2689 (gtk_text_layout_move_iter_to_x):
2690 * gtk/gtktextutil.c (limit_layout_lines):
2691 Use the _readonly version of pango_layout_iter_get_line(),
2692 pango_layout_iter_get_run(), pango_layout_get_line(), and
2693 pango_layout_get_lines().
2695 * gtk/gtkmain.c (gtk_get_default_language): Use
2696 pango_get_default_language().
2698 2006-12-24 Matthias Clasen <mclasen@redhat.com>
2700 * gtk/gtkentry.c (gtk_entry_set_text): Emit changed
2701 and notify:text only once. The same fix was applied
2702 for replacing the selection via DND or copy-and-paste.
2703 (#64998, Damon Chaplin, Sven Herzberg)
2705 2006-12-23 Matthias Clasen <mclasen@redhat.com>
2707 * gtk/gtkimmulticontext.c: Be careful to not override
2708 GTK+ translations with the translations of the input
2709 method. (#317080, Tor Lillqvist)
2711 * modules/input/imcedilla.c: Use standard macros
2712 for translation domain and locale dir.
2714 * gtk/gtkimcontextsimple.c: Allow composing l with
2715 stroke. (#349638, Daniel Lublin)
2717 * gtk/gen-paper-names.c: Fix a thinko in the suffix
2718 calculation. (#382369, Christian Persch)
2720 * gtk/paper_names_offsets.c: Regenerated.
2722 2006-12-22 Matthias Clasen <mclasen@redhat.com>
2724 * modules/engines/pixbuf/pixbuf.h:
2725 * modules/engines/pixbuf/pixbuf-rc-style.h:
2726 * modules/engines/pixbuf/pixbuf-style.h: Move
2727 G_GNUC_INTERNAL before function declarations. (#352276,
2730 2006-12-22 Matthias Clasen <mclasen@redhat.com>
2732 * demos/gtk-demo/*.c: Fix some leaks. (#348108, Chris
2735 2006-12-22 Matthias Clasen <mclasen@redhat.com>
2737 * *.c: Replace a lot of idle and timeout calls by
2738 the new gdk_threads api.
2742 * gdk/gdk.c: Add functions to allow threadsafe handling
2743 of idles and timeouts wrt. to the GDK lock. (#321886,
2746 2006-12-22 Matthias Clasen <mclasen@redhat.com>
2748 * gdk/gdkpango.c: Use pango_cairo_show_error_underline.
2749 (#340141, Behdad Esfahbod)
2751 * configure.in: Check for getc_unlocked.
2753 * gtk/xdgmime/xdgmimemagic.c: Use getc if getc_unlocked is
2754 unavailable. (#381499)
2756 * tests/teststatusicon.c: Fix a typo
2758 2006-12-22 Matthias Clasen <mclasen@redhat.com>
2760 Make it possible to track the embeddedness of
2761 statusicon (#387215, Martyn Russell, patch by Christian
2764 * gtk/gtkstatusicon.c: Add orientation and embedded properties.
2766 * gtk/gtkplug-x11.c: Add an embedded property.
2767 * tests/teststatusicon.c: Test the new properties.
2769 * gtk/gtkwidget.c (gtk_widget_get_draw_rectangle): Don't
2770 leak draw_border. (#387170, Kjartan Maraas)
2772 2006-12-21 Matthias Clasen <mclasen@redhat.com>
2774 * gtk/gtkfilechooserembed.c (_gtk_file_chooser_embed_set_delegate()):
2775 Typo fix. (#388123, Murray Cumming)
2777 * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
2778 Generate double-click events. (#380421, Tommi Komulainen)
2780 * gdk/x1/gdkinput-xfree.c (_gdk_input_configure_event):
2781 (_gdk_input_enter_event): Correct return_if_fail checks.
2782 (#379803, Tommi Komulainen)
2784 * gdk/gdkdisplay.c: Improve the docs of some functions operating
2785 on the default display. (##353438, Mariano Suárez-Alvarez)
2787 2006-12-21 Matthew Barnes <mbarnes@redhat.com>
2789 * docs/reference/gdk/gdk-sections.txt:
2790 * gdk/gdkcolor.[ch] (gdk_color_to_string): Add a function for
2791 converting a GdkColor to a string (#373856).
2793 * configure.in: Bump pango requirement to 1.15.2.
2795 2006-12-20 Matthias Clasen <mclasen@redhat.com>
2797 * gdk/keynames.txt: Mark arrow keys as translatable. (#369506,
2800 * gdk/keyname-table.h: Regenerated
2802 * gtk/gtktextbuffer.c: Add signal documentation. (#317064,
2803 Søren Wedel Nielsen)
2805 * gtk/gtktextview.c (gtk_text_view_start_selection_drag):
2806 Silently return if a drag is already in progress, rather
2807 than asserting. (#335622, Li Yuan, testcase by Erwann Chenede)
2809 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new_with_dialog):
2810 Allow any GtkDialog that implements GtkFileChooser as
2811 dialog. (#335473, Tommi Komulainen)
2813 2006-12-20 Mikael Hallendal <micke@imendio.com>
2815 * gtk/gtkstatusicon.c: (gtk_status_icon_init): Fixed a last minute
2816 change in the quartz backend.
2818 2006-12-20 Mikael Hallendal <micke@imendio.com>
2820 * gtk/Makefile.am: Added gtkstatusicon-quartz.c
2821 * gtk/gtkstatusicon-quartz.c: Implements the quartz backend for the
2823 * gtk/gtkstatusicon.c: Hooked in the new quartz backend. Bug #387874.
2825 2006-12-19 Matthias Clasen <mclasen@redhat.com>
2827 * gtk/gtkprintunixdialog.c: Add a tooltip explaining the
2828 format of page ranges, and improve the page sequence icon
2829 for the case of n_copies == 1.
2831 2006-12-19 Mikael Hallendal <micke@imendio.com>
2833 * gdk/quartz/gdkcursor-quartz.c: Splitted out the GdkPixbuf to NSImage
2834 routine so that it can be used from libgtk as well (needed for
2835 upcoming GtkStatusIcon support in the Quartz port).
2836 * gdk/quartz/gdkevents-quartz.c: Don't assume that all NSWindows are
2837 created from GDK, this is not true for the status icon.
2838 * gdk/quartz/gdkprivate-quartz.h:
2839 * gdk/quartz/gdkquartz.h: Added
2840 gdk_quartz_pixbuf_to_ns_image_libgtk_only so that it is available to
2841 the status icon code.
2843 2006-12-16 Tristan Van Berkom <tvb@gnome.org>
2845 * gtk/gtkmessagedialog.c: Added return_if_fail (image) to
2846 gtk_message_dialog_set_image ()
2848 * gtk/gtkscrolledwindow.c: Fixed a bug in set_property()
2849 (setting "window-placement-set" could result in a crash because
2850 of boolean/enum mixup)
2852 2006-12-15 Federico Mena Quintero <federico@novell.com>
2854 Merged from gtk-2-10:
2856 * gtk/gtkmenu.c (gtk_menu_set_title): Don't try to optimize for
2857 the case where the new title is the same as the old title, to
2858 preserve the behavior from GTK+ 2.8 (NULL and "" titles are not
2859 equivalent). Handle the case where title == priv->title. This
2860 was found by the LSB compatibility tests:
2861 https://bugzilla.novell.com/show_bug.cgi?id=223882
2863 2006-12-15 Dom Lachowicz <domlachowicz@gmail.com>
2865 * gtk/gtkcombobox.c: Make GtkComboBox in "appears-as-list" mode
2866 more closely resemble its Win32 counterpart. Bug #340204.
2868 2006-12-14 Carlos Garnacho <carlosg@gnome.org>
2870 * gtk/gtkcalendar.c: draw arrows pointing to the right correctly
2871 placed inside their GdkWindow. Bug #385672.
2873 2006-12-14 Christian Persch <chpe@cvs.gnome.org>
2875 * gtk/gtkiconview.c: Fix docs typo. Bug #385642.
2877 2006-12-13 Dom Lachowicz <domlachowicz@gmail.com>
2879 * src/modules/engines/ms-windows/msw_style.c: Bug 351679 - Notebooks
2880 drawn with extra line below tab in MS-Windows theme. Patch by
2883 2006-12-13 Matthias Clasen <mclasen@redhat.com>
2885 * gtk/Makefile.am: Add --unlink-tempfile to the evince call
2886 for print preview. (#370041, Ghee Teo)
2888 2006-12-11 Matthias Clasen <mclasen@redhat.com>
2890 * gtk/gtkprogressbar.c (gtk_progress_bar_paint_text): Be more
2891 careful when overdrawing antialiased text. (#352435, Alex Jones,
2892 patch by Benjamin Otte)
2894 * gtk/gtksettings.c: Change the way in which color scheme information
2895 is merged to correctly handle vanishing colors. (#374420,
2896 Benjamin Berg, patch by Callum McKenzie)
2897 Also allow to separate entries in color schemes by ';'
2900 2006-12-10 Matthias Clasen <mclasen@redhat.com>
2902 * modules/printbackends/cups/gtkcupsutils.c (gtk_cups_request_encode_option):
2903 Properly pass multi-value options to cups. (#355350, Jürg Billeter)
2905 2006-12-10 Kristian Rietveld <kris@gtk.org>
2907 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_focus_out_event):
2908 cancel editing (ie. don't accept changes) when the entry loses
2909 focus. (Fixes #164494, reported by Chris Rouch).
2911 2006-12-10 Matthias Clasen <mclasen@redhat.com>
2913 * configure.in: Correct a misapplied patch.
2915 2006-12-10 Tor Lillqvist <tml@novell.com>
2917 * gtk-zip.sh.in: Put gdk-pixbuf-query-loaders.exe and
2918 gtk-query-immodules-2.0.exe in the runtime zipfile instead of
2919 developer zipfile. Users might add pixbuf loaders or immodules
2920 even if they are not interested in developing gtk+-using software.
2922 2006-12-10 Matthias Clasen <mclasen@redhat.com>
2924 * configure.in: Check for crt_extern.h and _NSGetEnviron.
2925 * gdk/x11/gdkspawn-x11.c: Fix compilation on Darwin where
2926 environ is not available. (#384168, Min Sik Kim)
2928 2006-12-07 Paolo Maggi <paolo@gnome.org>
2932 * gtk/gtkentry.c (gtk_entry_set_text): check for
2933 completion->priv->changed_id > 0 before calling
2934 g_signal_handler_[un]block.
2935 (gtk_entry_completion_key_press): does not block/unblock the "changed"
2936 signal before calling gtk_entry_set_text.
2938 2006-12-07 Carlos Garnacho <carlosg@gnome.org>
2940 * gtk/gtkcellrendererprogress (compute_dimensions): do not use
2941 xthickness/ythickness, they aren't used any longer for drawing.
2943 2006-12-07 Matthias Clasen <mclasen@redhat.com>
2945 * gtk/gtkrc.c (_gtk_rc_init): Fix clipping of accelerator
2946 underlines by giving labels a small draw-border.
2948 2006-12-06 Kristian Rietveld <kris@gtk.org>
2950 * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render):
2951 draw progress bar through theme engine instead of using our own
2952 custom cairo drawing code (#377244, patch from Carlos Garnacho).
2954 2006-12-06 Matthias Clasen <mclasen@redhat.com>
2956 * gtk/gtkprintunixdialog.c (update_dialog_from_capabilities):
2957 Update the sensitivity of the collate checkbutton more frequently,
2958 proposed by Tim Waugh.
2960 2006-12-04 Matthias Clasen <mclasen@redhat.com>
2962 * gtk/gtkmessagedialog.c (setup_type): Set a11y name and role
2963 since we no longer set window titles.
2965 2006-12-04 Christian Persch <chpe@cvs.gnome.org>
2967 * gtk/gtkpagesetup.c: (gtk_page_setup_get_paper_size),
2968 (gtk_page_setup_set_paper_size): Don't leak the old page size when
2969 setting a new one. Bug #382314.
2971 2006-12-03 Michael Natterer <mitch@gimp.org>
2973 * gtk/gtktextview.c: remove FIXME #include that is no longer needed.
2975 2006-12-03 Kristian Rietveld <kris@gtk.org>
2977 Make sure [xy]_offset are always being initialized, fix pixbuf
2978 renderer padding. (#108235, Sven Neumann).
2980 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_get_size),
2981 (gtk_cell_renderer_pixbuf_render): add padding in _render instead
2984 * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_get_size):
2985 always initialize [xy]_offset.
2986 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): ditto.
2987 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
2990 2006-12-03 Kristian Rietveld <kris@gtk.org>
2992 * gtk/gtktreeview.c (validate_visible_area): when not using an
2993 explicit alignment, use the full area of the row (not just dy)
2994 to determine how to implicitly align it. (Fixes #363191, reported
2995 by Federico Mena Quintero).
2997 2006-12-02 Matthias Clasen <mclasen@redhat.com>
2999 * gtk/gtkicontheme.c (insert_theme): Properly clean up
3000 if an icon theme index file has no directories. (#381236)
3002 2006-12-02 Dom Lachowicz <domlachowicz@gmail.com>
3004 * src/modules/engines/ms-windows/msw_style.c: Bug 351678 - Notebooks
3005 not with PositionType.Top drawn incorrectly. Patch by Cody Russell
3007 2006-11-28 Behdad Esfahbod <behdad@gnome.org>
3009 Remove the broken Thai input method and add a functional Thai and Lao
3010 input method by Theppitak Karoonboonyanan. (#81031)
3012 * modules/input/imthai.c:
3013 * modules/input/gtkimcontextthai.c:
3014 * modules/input/gtkimcontextthai.h:
3015 * modules/input/thai-charprop.c:
3016 * modules/input/thai-charprop.h:
3019 * modules/input/imthai-broken.c:
3022 * modules/input/Makefile.am:
3025 2006-11-27 Christian Persch <chpe@cvs.gnome.org>
3027 * gtk/gtkstatusicon.c: Notify when the screen changes. Bug #379793.
3029 Mon Nov 27 12:27:06 2006 Tim Janik <timj@imendio.com>
3031 * gtk/gtktextview.c: applied patch by Colin Leroy for
3032 Control+GDK_KP_Left to move one word to the left, #356255.
3034 2006-11-26 Benjamin Berg <benjamin@sipsolutions.net>
3036 * gtk/gtkstyle.c: (gtk_default_draw_flat_box): Protect against NULL
3039 2006-11-25 Matthias Clasen <mclasen@redhat.com>
3041 * modules/printbackends/cups/gtkprintbackendcups.c: Make
3042 print dialog work when 'BrowseShortNames Off' is specified
3043 in cups configuration. Patch by Tim Waugh.
3045 2006-11-24 Michael Natterer <mitch@imendio.com>
3047 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): if we
3048 can't go up/down, consult gtk_widget_keynav_failed() and leave the
3049 widget if it returns FALSE (bug #322640).
3051 2006-11-23 Behdad Esfahbod <behdad@gnome.org>
3053 * gtk/gtkmain.c: Fix minor typo in docs. (#378632, Hannes Mueller)
3055 2006-11-22 Emmanuele Bassi <ebassi@gnome.org>
3057 * gtk/gtkrecentmanager.c:
3058 (get_uri_shortname_for_display): g_filename_from_uri() might
3059 fail; catch the failure and fall back to the non-local URI
3062 2006-11-19 Mark McLoughlin <mark@skynet.ie>
3064 Fixes bug #376502 - multi-screen support for GtkStatusIcon
3066 * gtk/gtkstatusicon.[ch]:
3067 (gtk_status_icon_set_screen),
3068 (gtk_status_icon_get_screen): add multi-screen API. Allows
3069 an app to display an icon on a non-default screen
3070 (gtk_status_icon_class_init),
3071 (gtk_status_icon_set_property),
3072 (gtk_status_icon_get_property): add a "screen" property
3074 * tests/teststatusicon.c: update to test on multiple screens
3076 2006-11-17 Matthias Clasen <mclasen@redhat.com>
3078 Fix problems with drag cancellation. (#376535, Michael Natterer)
3080 * gtk/gtkdnd.c (gtk_drag_source_info_destroy): Disconnect signal
3081 handlers before emitting drag-end.
3082 (gtk_drag_end): Disconnect signal handlers before removing
3085 2006-11-16 Mariano Suárez-Alvarez <mariano@gnome.org>
3087 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
3088 add gtk-doc blurb on GtkCellRendererText::edited (#376094)
3090 2006-11-16 Michael Natterer <mitch@imendio.com>
3092 * gtk/gtkradiobutton.c (gtk_radio_button_focus): don't use
3093 gtk_widget_keynav_failed(). Instead, look at gtk-keynav-cursor-only
3094 and gtk-keynav-wrap-around and wrap around, beep or continue outside
3095 the group manually (bug #322640).
3097 2006-11-16 Michael Natterer <mitch@imendio.com>
3099 Add new infrastructure for notifications of failed keyboard
3100 navigation and navigation with restricted set of keys.
3102 The patch handles configurable beeping, navigating the GUI with
3103 cursor keys only (as in phone environments), and configurable
3104 wrap-around. Fixes bugs #322640, #70986, #318827, #334726, #334742
3107 * gtk/gtksettings.c: added properties gtk-keynav-cursor-only,
3108 gtk-keynav-wrap-around and gtk-error-bell.
3110 * gtk/gtkwidget.[ch]: added new signal "keynav-failed" and public
3111 API to emit it. Added New function gtk_widget_error_bell() which
3112 looks at the gtk-error-bell setting and calls gdk_window_beep()
3115 * gtk/gtk.symbols: add the new widget symbols.
3117 * gtk/gtkcellrendereraccel.c
3118 * gtk/gtkimcontextsimple.c
3120 * gtk/gtknotebook.c: use gtk_widget_error_bell() or look at the
3121 gtk-error-bell setting instead of calling gdk_display_beep()
3128 * gtk/gtkmenushell.c
3129 * gtk/gtkspinbutton.c
3131 * gtk/gtktreeview.c: call gtk_widget_error_bell() on failed keynav.
3136 * gtk/gtktextview.c: consult gtk_widget_keynav_failed() on failed
3137 cursor navigation and leave the widget if it returns FALSE.
3139 * gtk/gtkmenushell.c
3140 * gtk/gtknotebook.c: only wrap around if gtk-keynav-wrap-around
3143 * gtk/gtkradiobutton.c: ask gtk_widget_keynav_failed() to decide
3144 whether to to wrap-around, and don't select active items on cursor
3145 navigation if gtk-keynav-cursor-only is TRUE. Should look at
3146 gtk-keynav-wrap-around too, will look into that.
3148 2006-11-16 Emmanuele Bassi <ebassi@gnome.org>
3150 * gtk/gtkrecentmanager.c:
3151 (gtk_recent_info_get_uri_display): Return the URI
3152 of the GtkRecentInfo object (upgraded to UTF-8 if
3153 needed) in case of non-local file. (#351945)
3155 2006-11-16 Emmanuele Bassi <ebassi@gnome.org>
3157 * gtk/gtkrecentchoosermenu.c:
3158 (gtk_recent_chooser_menu_add_tip): Apply the tip only
3159 if we have a displayable name for the item. (#365031,
3160 patch by padraig.obriain(at)sun.com)
3162 2006-11-16 Emmanuele Bassi <ebassi@gnome.org>
3164 * gtk/gtkrecentmanager.c: Provide a fast path returning
3165 NULL when the limit is set to 0.
3167 * gtk/gtkrecentchooserdefault.c:
3168 * gtk/gtkrecentchoosermenu.c: Add the same fast path
3169 inside the RecentChooser implementation; add a check
3170 in the list clamping code. (#373466 and duplicates)
3172 2006-11-15 Matthias Clasen <mclasen@redhat.com>
3174 * modules/printbackends/cups/gtkprintbackendcups.c (cups_printer_get_options):
3175 Don't pass NULL to strncpy. (#359537, patch by Carlos Garcia Campos)
3177 2006-11-15 Michael Natterer <mitch@imendio.com>
3179 * gtk/gtkrange.[ch]: added properties "fill-level",
3180 "show-fill-level" and "restrict-to-fill-level" and getters/setters
3181 for them. The "fill level" is an additional marker on the range's
3182 trough than can be e.g. used to indicate the amount of
3183 pre-buffering in a range showing the play position of streamed
3184 media. See the embedded API docs for details. Made GtkRangeLayout
3185 a GTypeInstance private struct and removed finalize()
3186 implementation. Fixes bug #349808
3188 * gtk/gtk.symbols: added the new symbols.
3190 2006-11-14 Behdad Esfahbod <behdad@gnome.org>
3192 * configure.in: Make libtool magic robust. (#352795)
3194 2006-11-13 Paolo Borelli <pborelli@katamail.com>
3196 * gtk/gtkrc.c (gtk_rc_parse_icon_source): plug small memory
3199 2006-11-09 Kristian Rietveld <kris@imendio.com>
3201 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): disable
3202 don't move cursor case for SELECTION_NONE. (#371756, John Ellis).
3204 2006-11-09 Carlos Garnacho <carlosg@gnome.org>
3206 * gtk/gtkpathbar.c (on_slider_unmap): Fix parenthesis confusion.
3208 2006-11-08 Carlos Garnacho <carlosg@gnome.org>
3210 * gtk/gtkpathbar.c (on_slider_unmap): added, do not leave the scroll
3211 timeout running if the slider buttons are hidden. (#372527)
3213 2006-11-08 Christian Persch <chpe@cvs.gnome.org>
3215 * gtk/gtkfilechooserdefault.c (browse_widgets_create): Don't make
3216 the "Location" label bold. Bug #372449.
3218 2006-11-07 Carlos Garnacho <carlosg@gnome.org>
3220 * gtk/gtknotebook.c (gtk_notebook_calculate_tabs_allocation): make
3221 non-focused tabs xthickness/ythickness thinner. (#353962)
3223 2006-11-07 Paolo Borelli <pborelli@katamail.com>
3225 * gtk/gtktextbtree.c (_gtk_text_btree_delete): avoid memory
3226 corruption (#357050).
3228 2006-11-06 Alexander Larsson <alexl@redhat.com>
3230 * gtk/gtkdnd.c: (gtk_drag_begin_internal),
3231 (gtk_drag_source_info_destroy), (gtk_drag_end),
3232 (gtk_drag_grab_notify_cb):
3233 Cancel drag when the grab is shadowed. (#122688)
3235 2006-11-01 Kristian Rietveld <kris@imendio.com>
3237 * gtk/gtkcombobox.c (gtk_combo_box_class_init),
3238 (gtk_combo_box_size_request): add arrow-size property to control
3239 the minimum size of the arrow, have the arrow scale up with the
3240 font by default. (#357950).
3242 2006-10-30 Kristian Rietveld <kris@gtk.org>
3244 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): don't
3245 forget to queue a draw for the new cursor node. (Fixes #366548,
3246 reported by Sven Herzberg).
3248 2006-10-30 Michael Natterer <mitch@imendio.com>
3250 * gtk/gtkrange.c (gtk_range_key_press): consume the Escape key
3251 only if we actually cancel a drag. Fixes bug #58389.
3253 2006-10-30 Kristian Rietveld <kris@gtk.org>
3255 * gtk/gtktreeview.c (gtk_tree_view_class_init): change left/right
3256 keybindings to collapse/expand rows instead of moving the focus
3257 cursor. (#105895, Brian Bober and others).
3259 2006-10-29 Kristian Rietveld <kris@gtk.org>
3261 * gtk/gtktreeview.c (gtk_tree_view_real_expand_row): guard against
3262 child removal in row-expanded callback. (#366782, John Ellis).
3264 2006-10-29 Tor Lillqvist <tml@novell.com>
3266 * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Improve handling
3267 of the small icon of the window class. (#152620, Kazuki Iwamoto)
3269 2006-10-29 Tor Lillqvist <tml@novell.com>
3271 * gdk/win32/gdkcursor-win32.c
3272 (gdk_win32_icon_to_pixbuf_libgtk_only): Implement for B&W cursors,
3273 for instance the built-in GDK ones.
3275 2006-10-27 Kristian Rietveld <kris@gtk.org>
3277 * gtk/gtktreeview.c (validate_visible_area): rework the area_above == 0
3278 case to not overwrite the variables in the lower scope (which are
3279 used later on ...), get the path correctly and bail out when there
3280 isn't a node above us. (#359231).
3282 2006-10-26 Christian Persch <chpe@cvs.gnome.org>
3284 * gtk/gtkaboutdialog.c: Put initial focus on Close button (#337261).
3286 2006-10-25 Johan Dahlin <jdahlin@async.com.br>
3288 * gtk/gtk.symbols: Add missing symbols to so make check can pass
3290 2006-10-23 Dom Lachowicz <domlachowicz@gmail.com>
3292 * src/modules/engines/ms-windows/msw_style.c (draw_expander): Remember
3293 to free GDI Pen resources, introduced by bug 340201.(#364514)
3295 2006-10-18 Kristian Rietveld <kris@imendio.com>
3297 * tests/testcombo.c (main): connect to notify::popup-shown instead of
3298 popup-show (the latter does not exist).
3300 2006-10-15 Paolo Borelli <pborelli@katamail.com>
3302 * gtk/gtkicontheme.c (pixbuf_supports_svg): plug memory leak.
3305 2006-10-12 Michael Natterer <mitch@imendio.com>
3307 * gtk/gtkcombobox.c (gtk_combo_box_class_init): fix commit below
3308 (committed the wrong patch).
3310 2006-10-12 Michael Natterer <mitch@imendio.com>
3312 * gtk/gtkcombobox.c: added "move-active" and "popup" signals and
3313 bindings to trigger them. Removed gtk_combo_box_key_press(), it's
3314 obsolete now. Fixes bug #358293.
3316 2006-10-11 Michael Emmel <mike.emmel@gmail.com>
3318 * gdkpixmap-directfb.c: add missing RGB24 case (#361176)
3320 2006-10-11 Tor Lillqvist <tml@novell.com>
3322 * configure.in: Enable having some gdk-pixbuf loaders built-in
3323 even if loading the others dynamically. Define Automake
3324 conditional INCLUDE_FOO for each loader as TRUE if that loader is
3325 built-in. See also gdk-pixbuf/ChangeLog.
3327 Wed Oct 11 14:31:30 2006 Tim Janik <timj@imendio.com>
3329 * docs/reference/gtk/gtk-sections.txt:
3330 * gtk/gtkbindings.c: document gtk_binding_entry_skip().
3332 2006-10-11 Tor Lillqvist <tml@novell.com>
3334 * gtk/gtk.symbols: Remove gtk_combo_string_key, which is a static
3337 2006-10-11 Tor Lillqvist <tml@novell.com>
3339 Merge from 2.10 branch:
3341 * gtk/gtkmain.c (do_pre_parse_initialization): On Win32, if
3342 environment variable LC_ALL or LANG is set, set the Win32 thread
3343 locale to the corresponding locale. Then call the C library
3344 setlocale() to set the C library locale accordingly. The
3345 inconsistency mentioned below is gone. (#339756) Do some special
3346 casing for Serbia and Montenegro. Handle the Latin and Cyrillic
3347 scripts for Azeri, Uzbek and Serbian.
3348 (enum_locale_proc): Helper function for the above functionality.
3350 * gtk/gtkcalendar.c (gtk_calendar_init): No longer need to check
3351 if the environment variables are set here, as they have already
3352 been taken into account and the Win32 thread locale has been
3355 Tue Oct 10 16:38:23 2006 Tim Janik <timj@imendio.com>
3357 * gtk/tmpl/gtkbindings.sgml:
3358 * gtk/gtkbindings.c: applied patch from Michael Natterer to move to
3359 inline docs. applied wording fixes suggested by Martyn Russell.
3361 2006-10-09 Matthias Clasen <mclasen@redhat.com>
3363 * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state):
3364 Update the docs to state which out parameters may be NULL.
3365 (#360870, Attilio Fiandrotti)
3367 2006-10-08 Matthias Clasen <mclasen@redhat.com>
3369 * gtk/gtkprintunixdialog.c (update_dialog_from_capabilities): Fix
3370 a typo. (#359542, Ghee Teo)
3372 2006-10-08 Matthias Clasen <mclasen@redhat.com>
3374 * gtk/gtknotebook.c (gtk_notebook_reorder_tab): Only
3375 reorder tabs if the focus is in the tab. (#350342, Carlos
3378 2006-10-08 Michael Emmel <mike.emmel@gmail.com>
3380 * gdk/directfb/gdkproperty-directfb.c strdup atom name (#357611)
3382 2006-10-08 Kristian Rietveld <kris@gtk.org>
3384 * gtk/gtktreeview.[ch] (gtk_tree_view_set_property),
3385 (gtk_tree_view_set_show_expanders),
3386 (gtk_tree_view_get_show_expanders): add getter/setter for
3387 show-expanders property, queue a redraw when this property
3388 is toggled (#351167, Martin Ejdestig),
3389 (gtk_tree_view_set_level_indentation),
3390 (gtk_tree_view_get_level_indentation): also add getter/setter
3391 and docs for level-indentation property.
3393 2006-10-08 Matthias Clasen <mclasen@redhat.com>
3395 * gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't
3396 leak a list. (#360350, Benjamin Berg)
3398 * Apply a cleanup patch by Kjartan Maraas (#341812)
3400 2006-10-07 Tor Lillqvist <tml@novell.com>
3402 * gtk/gtkcalendar.c (gtk_calendar_init): Use the Win32 thread
3403 locale's first day of week setting on Win32. (#339752, Bogdan
3404 Nicula) Don't do this if one of the environment variables that
3405 affect gettext is set, though. In that case use the week start day
3406 from the corresponding message catalog.
3408 Unfortunately the same logic isn't possible in the weekday and
3409 month name lookup; there even if you have set one of the
3410 aforementioned environment variables, you still get the weekday
3411 and month names from the Win32 thread locale. Yes, this is
3414 Use only wide-character API in the Win32 code in this file, too.
3416 2006-10-06 Matthias Clasen <mclasen@redhat.com>
3418 * gtk/gtkfilechooser.c (gtk_file_chooser_set_select_multiple):
3419 Fix the docs. (#360112)
3421 * gtk/gtkcellview.c: Don't set the background of the
3422 window in a no-window widget. (#359581, Xan Lopez)
3425 2006-10-05 Behdad Esfahbod <behdad@gnome.org>
3427 * gtk/Makefile.am, gtk/aliasfilescheck.sh: Propagate srcdir into the
3428 test correctly. (#359845)
3430 2006-10-05 Michael Natterer <mitch@imendio.com>
3432 * gtk/gtkrc.[ch]: added new scanner token "unbind" which gets
3433 rid of a key binding (in fact, it only lets it appear unbound).
3435 * gtk/gtkbindings.[ch] (struct GtkBindingEntry): added
3436 "guint marks_unbound : 1"
3438 (gtk_binding_entry_skip): new API which marks the entry as unbound.
3440 Changed code so it returns FALSE when "marks_unbound == TRUE" is
3441 encountered while activating bindings, effectively letting the
3442 binding appear unbound (regardless of still existing bindings in
3443 lower binding priority levels). Fixes bug #358329.
3445 (gtk_binding_entry_add)
3446 (gtk_binding_entry_clear)
3447 (gtk_binding_entry_add_signall)
3448 (gtk_binding_parse_binding): deprected these functions.
3450 (_gtk_binding_parse_binding)
3451 (_gtk_binding_entry_add_signall): new internal API.
3453 * gtk/gtk.symbols: changed accordingly.
3455 2006-10-03 Matthias Clasen <mclasen@redhat.com>
3457 Fix interaction of GtkEntryCompletion with input
3458 methods. (#354495, Diego Escalante Urrelo)
3460 * gtk/gtkentry.c (gtk_entry_completion_key_press): Only reset
3461 the im context if we actually handle the key event.
3463 * gtk/gtkentrycompletion.c: Also propagate key release events
3466 2006-10-03 Matthias Clasen <mclasen@redhat.com>
3468 * gtk/gtkprintsettings.c (gtk_print_settings_get_duplex):
3469 Fix a typo. (#359052, Ghee Teo)
3471 * gtk/*.c, gdk/*.c: Apply a patch by Behdad Esfahbod to
3472 reduce relocations. (#359053)
3474 2006-10-03 Matthias Clasen <mclasen@redhat.com>
3476 * modules/printbackends/cups/gtkcupsutils.c:
3477 * modules/printbackends/cups/gtkprintbackendcups.c: Complete
3478 the fix for bug 357280.
3480 2006-10-02 Behdad Esfahbod <behdad@gnome.org>
3482 * gdk-pixbuf/Makefile.am:
3485 Include pltcheck.sh in EXTRA_DIST.
3487 2006-10-02 Behdad Esfahbod <behdad@gnome.org>
3489 * gdk/x11/gdkevents-x11.c: Move all includes before including
3492 2006-10-02 Behdad Esfahbod <behdad@gnome.org>
3494 * gtk/Makefile.am: Fix typo in file name. (#358931)
3496 2006-10-02 Matthias Clasen <mclasen@redhat.com>
3498 * modules/printbackends/cups/gtkprintbackendcups.c (available_choices):
3499 Only use the group name field if cups is new enough. (#357280)
3501 * gtk/gtksizegroup.c: Make sure that the quarks are
3502 initialized before using them. (#353736)
3504 * gtk/Makefile.am (stamp-icons): Use rm instead of ln -f to
3505 replace existing links. (#354849, James Evans)
3507 2006-10-01 Matthias Clasen <mclasen@redhat.com>
3509 * gtk/gtkexpander.c (gtk_expander_realize)
3510 (gtk_expander_size_allocate): Make the event_window large
3511 enough to cover the full height of the label_widget. (#358351,
3514 2006-10-01 Tor Lillqvist <tml@novell.com>
3516 * gtk/gtkfilesystemwin32.c: Same change as to gtkfilesystemunix.c.
3518 2006-09-30 Matthias Clasen <mclasen@redhat.com>
3520 * gtk/gtkfilechooserbutton.c (update_combo_box): Protect
3521 against base_path being NULL. (#358405, many reporters)
3523 2006-09-29 Matthias Clasen <mclasen@redhat.com>
3525 * gtk/gtkfilesystemunix.c: Apply a patch by Padraig O'Briain
3526 to avoid a deadlock.
3528 2006-09-27 Kristian Rietveld <kris@imendio.com>
3530 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_free_level),
3531 (gtk_tree_model_filter_ref_node),
3532 (gtk_tree_model_filter_real_unref_node): bring zero ref count loops
3533 in sync with each other and the sort model.
3535 2006-09-27 Kristian Rietveld <kris@imendio.com>
3537 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_init),
3538 (gtk_tree_model_filter_finalize), (gtk_tree_model_filter_row_deleted),
3539 (gtk_tree_model_filter_new): unref the virtual root path once that
3540 node (or one if its ancestors) is deleted, set virtual_root_deleted
3541 so we only unref it once.
3543 2006-09-27 Kristian Rietveld <kris@imendio.com>
3545 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_changed),
3546 (gtk_tree_model_sort_sort_level): ref count nodes the proper way,
3547 (gtk_tree_model_sort_ref_node), (gtk_tree_model_sort_real_unref_node),
3548 (gtk_tree_model_sort_free_level): bring zero ref count loops in
3550 (gtk_tree_model_sort_free_level): free child levels before
3551 decreasing the zero ref count of the current level,
3552 (gtk_tree_model_sort_clear_cache): only clear cache if zero_ref_count
3555 2006-09-25 Matthias Clasen <mclasen@redhat.com>
3557 * demos/gtk-demo/*.c:
3558 * gtk/gtkeventbox.c:
3559 * gtk/gtkprintoperation.c: Fix typos. String change.
3561 2006-09-25 Kristian Rietveld <kris@gtk.org>
3563 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): if the tree view
3564 has already been realized; scroll to background area instead of
3565 cell area. (Fixes #330683, Johan Dahlin, Tommi Komulainen).
3567 2006-09-25 Kristian Rietveld <kris@gtk.org>
3569 * gtk/gtktreeview.c (gtk_tree_view_set_grid_lines): only attempt
3570 to create the GCs if the widget is realized. (Fixes #357578).
3572 2006-09-25 Matthias Clasen <mclasen@redhat.com>
3574 * gtk/gtkuimanager.c (_gtk_menu_is_empty): Don't leak
3575 the list of children (#357454, Paolo Borelli)
3577 2006-09-25 Michael Natterer <mitch@imendio.com>
3579 * gdk/x11/gdkdisplay-x11.c (gdk_display_x11_finalize): free
3580 display->input_windows with g_free(), not g_object_unref()
3581 (#357566, Tommi Komulainen).
3583 2006-09-24 Kristian Rietveld <kris@gtk.org>
3585 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init),
3586 (gtk_cell_renderer_text_[sg]et_property): actually add align-set
3587 property to the API (left-over patch from #157439).
3589 2006-09-24 Kristian Rietveld <kris@gtk.org>
3591 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button): draw
3592 the indicator if the column has a sort column id (and the model is
3593 sortable) or if the user explicitly requested the indicator
3594 to be shown. (Fixes #352738, Chris Vine).
3596 2006-09-23 Tor Lillqvist <tml@novell.com>
3598 * gtk/Makefile.am: Use EXEEXT.
3600 2006-09-22 Michael Natterer <mitch@imendio.com>
3602 * gtk/gtkstyle.c (gtk_style_real_copy): also copy icon factories
3603 and color hashes. Fixes bug #357132.
3605 2006-09-22 Matthias Clasen <mclasen@redhat.com>
3607 Make remote bookmarks work better (#354887)
3609 * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons):
3610 (shortcuts_insert_path):
3611 * gtk/gtkfilechooserbutton.c (change_icon_theme):
3612 (model_add_bookmarks):
3613 (model_update_current_folder):
3614 (update_label_and_image):
3615 If the bookmark points to a remote file, don't call get_info(),
3616 since that may a) take a long time and b) pop up an auth dialog.
3617 Instead, just use a folder icon and create a display name
3620 * gtk/gtkfilechooserdefault.c (_gtk_file_chooser_label_for_uri):
3621 New function to create a suitable display name for a remote
3622 uri. This should really be done in GtkFileSystem.
3624 2006-09-21 Michael Natterer <mitch@imendio.com>
3626 Implement lots of value setters for GdkGC, based on a heavily
3627 modified patch from Thomas Broyer (bug #328853):
3629 * gdk/quartz/gdkcolor-quartz.c: removed functions which set colors
3630 on the CGContext. Instead, added gdk_quartz_get_rgba_from_pixel()
3631 which simply returns RGBA values from a GdkColor's pixel value.
3632 See gdk_quartz_update_context_from_gc() below.
3634 * gdk/quartz/gdkprivate-quartz.h (struct GdkGCQuartz): added lots
3635 of members for the newly suppored GC values. Added enum
3636 GdkQuartzContextValuesMask which is used for setting up the
3637 CGContext for filling and/or stroking.
3639 * gdk/quartz/gdkgc-quartz.c (gdk_quartz_gc_get_values)
3640 (gdk_quartz_gc_set_values)
3641 (_gdk_windowing_gc_copy): support a lot more GC values.
3643 (gdk_quartz_update_context_from_gc): added
3644 GdkQuartzContextValuesMask parameter and set filling/stroking
3645 parameters accordingly. This function also gained full control
3646 over the FG and BG colors (they can't be set separately any more).
3648 The stipple mask part of the patch doesn't work but seems to take
3649 the right approach and doesn't make things worse, so I applied it.
3651 Did *not* apply the clipping part of the patch since I don't
3652 understand it (I don't understand the version in CVS either, but
3653 it at least works :-)
3655 * gdk/quartz/gdkdrawable-quartz.c: pass the right masks to
3656 gdk_quartz_update_context_from_gc() and removed separate color
3657 setting calls. Some minor fixes.
3659 * gdk/quartz/gdkwindow-quartz.c
3660 (gdk_window_impl_quartz_begin_paint_region): set the CGContext's
3661 fill color manually. We don't have/need a GC here.
3663 2006-09-21 Michael Natterer <mitch@imendio.com>
3665 * gdk/quartz/gdkwindow-quartz.c
3666 (gdk_window_impl_quartz_begin_paint_region): fix cast: it's
3667 drawable_impl->wrapper that is the GdkWindow, not the
3668 drawable_impl itself.
3670 2006-09-20 Behnam Esfahbod <behnam@zwnj.org>
3672 * gdk/x11/gdkkeys-x11.c:
3673 (get_direction): just check the first shift-level of keyboard
3674 layout for RTL and LTR keysyms() (compliment to #116626)
3676 Wed Sep 20 16:59:38 2006 Tim Janik <timj@imendio.com>
3678 * gtk/gtkviewport.c: always update the bin_window position and size
3679 in size_allocate, even if we don't have a visible child. this fixes
3680 expose artefacts as described in #313508.
3682 * gtk/gtkscrolledwindow.c: make hiding of automatic scrollbars when we
3683 have no visible child explicit.
3685 2006-09-19 Ryan Lortie <desrt@desrt.ca>
3687 * docs/reference/gdk/gdk-sections.txt:
3690 * gdk/gdkpango.c: Bug 355343. Add a GdkPangoAttrEmbossColor.
3691 (gdk_pango_layout_get_clip_region): Remove an unused variable.
3692 (gdk_pango_attr_embossed_new): Fix documentation.
3694 Tue Sep 19 17:00:04 2006 Tim Janik <timj@imendio.com>
3696 * gtk/gtkarrow.c: added GtkArrow::arrow-scaling style property to
3697 control the arrow/border ratio within the allocation.
3699 * tests/testgtk.c: added a GtkArrow to handle box test.
3701 * tests/testgtkrc: test ::arrow-scaling property.
3703 2006-09-19 Matthias Clasen <mclasen@redhat.com>
3705 * gtk/gtkfilechooserdefault.c (update_current_folder_get_info_cb):
3706 Display an error when we come to the root.
3708 2006-09-16 Matthias Clasen <mclasen@redhat.com>
3710 * gtk/gtkfilechooserbutton.c: Use bookmark labels in
3713 * gtk/gtkfilechooserbutton.c: Don't add remote volumes and
3714 bookmarks to the model in local-only mode, to avoid
3715 authentication dialogs pop up for invisible bookmarks, and
3716 to fix issues with separators not being hidden when
3717 they should. (#354887, Dennis Cranston)
3719 2006-09-16 Matthias Clasen <mclasen@redhat.com>
3721 * gtk/gtkcombobox.c (gtk_combo_box_finalize): Unref the
3722 treeview use in list mode. (#355732, Richard Hult)
3724 * gtk/gtktreeview.c (gtk_tree_view_set_grid_lines): Send
3725 change notification for the right property. (#355308,
3728 2006-09-15 Michael Natterer <mitch@imendio.com>
3730 * gtk/gtktreeview.c (gtk_tree_view_key_press): refactored column
3731 header navigation/resizing/reordering to be more readable and lose
3732 one level of nesting.
3734 2006-09-15 Kristian Rietveld <kris@imendio.com>
3736 * gtk/gtktreeview.c (gtk_tree_view_key_press): actually directly
3737 return after handling column button focus; we disable wrap around
3738 with this (which actually happened via a really weird code path).
3741 2006-09-15 Kristian Rietveld <kris@imendio.com>
3743 * gtk/gtktreeview.c (gtk_tree_view_key_press): make column resizing
3744 code RTL aware, also break from the loops after we have seen the
3745 focussed column button (Michael Natterer).
3747 Thu Sep 14 12:28:51 2006 Tim Janik <timj@imendio.com>
3749 * tests/testrichtext.c (main): intialize random number generator state
3750 upon program start, to enable truely random testing.
3752 2006-09-13 Michael Emmel <mike.emmel@gmail.com>
3754 * gdk/directfb/gdkcolor-directfb.c small clean ups include order
3755 * gdk/directfb/gdkwindow-directfb.c fixed beep compile error
3756 * gdk/directfb/Makefile.am removed GDK_PIXBUF_DISABLE_DEPRECATED
3757 GDK_DISABLE_DEPRECATED to allow compile per Behdad
3758 * gdk/quartz/Makefile.am same change as directfb Makefile
3759 * gtk/Makefile.am fixed typo that cause socket stubs not to compile
3761 2006-09-13 Matthias Clasen <mclasen@redhat.com>
3763 * gtk/gtkcolorsel.c: Use a GtkWindow instead of a GtkInvisible
3764 for the grab widget, to make the color picker work with window
3767 2006-09-12 Hong Jen Yee <pcman.tw@gmail.com>
3769 signed off by: Dom Lachowicz
3771 * modules/engines/ms-windows/msw_style.c: Bug 340201. This contains
3772 a large number of improvements to the Microsoft Windows theme engine
3773 which are fully described in the bug report.
3775 Mon Sep 11 14:22:39 2006 Tim Janik <timj@imendio.com>
3777 * tests/testgtk.c: fixed compiler warnings.
3779 2006-09-10 Matthias Clasen <mclasen@redhat.com>
3781 * gtk/gtkfilechooserbutton.c (model_add_special): Request
3782 the display name too, otherwise "Desktop" does not appear
3783 in the file chooser button.
3785 2006-09-10 Tor Lillqvist <tml@novell.com>
3787 * gdk/win32/gdkprivate-win32.h
3788 * gdk/win32/gdkmain-win32.c
3789 * gdk/win32/gdkwindow-win32.c: Define WINVER and _WIN32_WINNT as
3790 0x0500 in gdkprivate-win32.h instead of doing it in two source
3791 files. (#355212, Mike Edenfield)
3793 * gdk/win32/gdkwindow-win32.c: We can also remove the ersatz
3794 GetAncestor() for the _MSC_VER && WINVER < 0x0500 case, I hope.
3796 2006-09-10 Matthias Clasen <mclasen@redhat.com>
3798 * Commit a patch by Behdad to fix typos, omissions and other
3799 errors in the symbol aliasing, and add checks for local PLT
3800 entries. (#354687, Behdad Esfahbod)
3802 * gtk/gtktreeview.c (gtk_tree_view_search_scroll_event): Renew
3803 the flush timeout. (#354043, Nelson Benitez)
3805 * gtk/gtkfilechoosersettings.c (set_unexpected_element_end_error):
3806 Improve wording. String change! (#355126, David Lodge)
3808 * gtk/updateiconcache.c: Improve wording. String change! (#355128,
3811 * gtk/paper_names_offsets.c: Fix a typo. String change! (#355134,
3814 2006-09-09 Matthias Clasen <mclasen@redhat.com>
3816 * gdk/x11/gdkfonts-x11.c: Fix small theoretical memory leaks.
3817 (#353916, Chris Wilson)
3819 * gtk/gtksettings.c (_gtk_settings_reset_rc_values):
3820 Don't leak the to_reset list. (#353914, Chris Wilson)
3822 * gtk/gtkwidget.c: Add docs for the parent-set signal.
3823 (#353772, Mariano Suárez-Alvarez)
3825 2006-09-08 Matthias Clasen <mclasen@redhat.com>
3827 * gtk/gtktextbuffer.c (remove_all_selection_clipboards):
3828 Don't clear clipboards here, since we are called from finalize
3829 and can't emit signals.
3831 * configure.in: Set version to 2.11.0
3833 2006-09-06 Richard Hult <richard@imendio.com>
3835 * gdk/quartz/gdkkeys-quartz.c: (maybe_update_keymap): Special-case
3836 shift-tab and map it to GDK_ISO_Left_Tab, fixes bug #350806.
3838 2006-09-04 Kristian Rietveld <kris@imendio.com>
3840 * gtk/gtkfilechooserdefault.c (update_current_folder_get_info_cb):
3841 if setting the given folder failed, try setting the parent folder
3842 until we succeed; display an error box at the end.
3844 2006-09-04 Kristian Rietveld <kris@imendio.com>
3846 * gtk/gtkpathbar.c (gtk_path_bar_dispose): don't cancel the
3847 operations spawned by buttons here,
3848 (set_button_image_get_info_cb): bail out if button is NULL, but
3849 do free button_data,
3850 (button_data_free): only free the data if non NULL (since this
3851 function can be called multiple times for the same data), cancel
3852 handle if pending but don't free button_data in this case (will
3853 happen in the callback).
3855 2006-09-04 Michael Natterer <mitch@imendio.com>
3857 * gtk/gtkrc.c (rc_parse_token_or_compound)
3858 (gtk_rc_parse_assignment): serialize floating point values using
3859 locale-independent functions. (#346751, Frederic Crozat)
3861 2006-09-04 Tor Lillqvist <tml@novell.com>
3863 * gdk/win32/gdkevents-win32.c
3864 * gdk/win32/gdkwindow-win32.c: Use wide-char API for message and
3865 window handling (PeekMessage, PostMessage, SendMessage,
3866 DispatchMessage, DefWindowProc, RegisterClassEx,
3867 CreateWindowEx). (#321597)
3869 2006-09-03 Kristian Rietveld <kris@imendio.com>
3871 * gtk/gtkfilechooserdefault.c (save_entry_get_info_cb),
3872 (file_exists_get_info_cb), (gtk_file_chooser_default_should_respond):
3873 change file_exists_and_is_not_folder checks to get the file info
3874 for the path directly instead of querying the current file folder
3877 * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserDefault): add
3880 * tests/autotestfilechooser.c (wait_for_idle_idle), (wait_for_idle),
3881 (test_reload_sequence), (test_button_folder_states_for_action): wait
3882 for idle after setting a folder to ensure the async operations to load
3883 the folder are finished,
3884 (test_confirm_overwrite), (test_confirm_overwrite_for_path):
3885 factor out test_confirm_overwrite code so we can add tests for more
3888 2006-09-03 Richard Hult <richard@imendio.com>
3890 * gdk/quartz/GdkQuartzView.c (drawRect): Don't do anything if
3891 exposure isn't in the event mask, plug a leak, and check that the
3892 window isn't destroyed.
3893 (isOpaque): Check that the window isn't destroyed, fixes bug
3896 2006-09-03 Matthias Clasen <mclasen@redhat.com>
3898 * gtk/gtkwidget.c (gtk_widget_class_init): Fix a typo.
3899 (#354035, Mariano Suárez-Alvarez)
3901 * gtk/gtkmain.c (post_parse_hook):
3902 * gdk/gdk.c (gdk_init): Handle display_name being NULL.
3903 (#354004, Chris Wilson)
3905 2006-09-03 Tor Lillqvist <tml@novell.com>
3907 * gdk/win32/gdkwindow-win32.c (gdk_window_beep): No
3908 GDK_WINDOW_DISPLAY in the Win32 backend.
3910 * gtk/gtkfilesystemwin32.c: Copy what Kris did to
3913 2006-09-02 Kristian Rietveld <kris@imendio.com>
3915 First part of file chooser fixes.
3917 * gtk/gtkfilechooserbutton.c (model_add_special): also set the
3918 handle in the model for the desktopdir case.
3920 * gtk/gtkfilechooserdefault.c (shortcuts_add_current_folder): free
3921 volume in case we retrieved it but don't pass it on to insert_path,
3922 (shortcuts_model_create): change the column type for the handles
3923 to pointer instead of GObject so our handle ref counting is not
3925 (show_and_select_paths_finished_loading): don't forget to unref
3928 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_class_init),
3929 (gtk_file_system_unix_init), (gtk_file_system_unix_dispose):
3930 remove pending execute_callbacks_idle during dispose, also
3931 execute all callbacks waiting to be run in the next idle,
3932 (queue_*callback), (execute_callbacks_idle): refactor to maintain
3933 a list of callbacks to call per file system instead of globally,
3934 guard the file system during callback invocation,
3935 (gtk_file_system_unix_get_folder): only add load folder idle if
3936 none has been added yet.
3938 2006-09-01 Matthias Clasen <mclasen@redhat.com>
3940 * gtk/gtkentry.c: Don't unnecessarily reset the im context
3941 when deleting the selection. (#353803, Alex Larsson)
3943 2006-09-01 Abel Cheung <abel@oaka.org>
3945 * configure.in: Added 'ang' 'dz' to ALL_LINGUAS.
3947 2006-08-31 Matthias Clasen <mclasen@redhat.com>
3949 Stop cursor blinking after a configurable timeout.
3950 (#353670, #352442, Arjan van de Ven, Manu Cornet)
3952 * gtk/gtksettings.c (gtk_settings_class_init): Add a
3953 gtk-cursor-blink-timeout setting, which specifies the number
3954 of seconds that the cursor should blink after a user interaction.
3955 The default value is G_MAXINT to preserve the current behaviour.
3957 * gtk/gtkentry.c (blink_cb): Stop blinking after blink-timeout
3960 * gtk/gtkentry.c (gtk_entry_completion_key_press)
3961 (gtk_entry_button_press, gtk_entry_focus_in): Reset the
3964 * gtk/gtktextview.c (blink_cb): Stop blinking after blink-timeout
3967 * gtk/gtktextview.c (gtk_text_view_key_press_event)
3968 (gtk_text_view_button_press_event, gtk_text_view_focus_in_event):
3969 Reset the blink timer.
3971 2006-08-31 Matthias Clasen <mclasen@redhat.com>
3973 * gtk/gtkprintoperation-unix.c (get_print_dialog): Don't specify
3974 explicit format capabilities. (#346505, Christian Persch)
3976 * modules/printbackends/cups/gtkprintbackendcups.c (cups_request_printer_list_cb): Send printer-list-done on error.
3978 2006-08-31 Michael Natterer <mitch@imendio.com>
3980 * gdk/x11/gdkwindow-x11.c (gdk_window_beep): Fix build.
3982 2006-08-30 Richard Hult <richard@imendio.com>
3984 * gdk/quartz/gdkwindow-quartz.c (gdk_window_beep): Fix build.
3986 2006-08-30 Matthias Clasen <mclasen@redhat.com>
3988 * gdk/x11/gdkwindow-x11.c (gdk_window_beep): Only use XKB
3989 for beeping if we are using XKB.
3991 2006-08-29 Matthias Clasen <mclasen@redhat.com>
3995 * gdk/directfb/gdkwindow-directfb.c (gdk_window_beep):
3996 * gdk/win32/gdkwindow-win32.c (gdk_window_beep):
3997 * gdk/quartz/gdkwindow-quartz.c (gdk_window_beep):
3998 * gdk/x11/gdkwindow-x11.c (gdk_window_beep): Add a function
3999 to beep on a window. For X11, implement this with
4000 XkbBell. (#353455, Mariano Suárez-Alvarez)
4002 2006-08-29 Tor Lillqvist <tml@novell.com>
4004 Remove support for Windows 9x/ME. GTK+ hasn't worked on Win9x
4005 since 2.6 or 2.8. It's pointless to keep the Win9x code in here as
4006 it isn't being maintained anyway. If somebody is interested, it
4007 can always be found in older GTK+ versions, and in CVS.
4012 * gdk/win32/Makefile.am
4013 * gdk/win32/libie55uid.la
4014 * gdk/win32/gdkevents-win32.c: Remove the --with-ie55 configure
4015 switch and associated stuff. Active IMM and the <dimm.h> header
4016 was used for IM support on NT4 and Win9x. Win2k and later have IM
4019 * gdk/win32/gdkcursor-win32.c
4020 * gdk/win32/gdkdnd-win32.c
4021 * gdk/win32/gdkdrawable-win32.c
4022 * gdk/win32/gdkevents-win32.c
4023 * gdk/win32/gdkgc-win32.c
4024 * gdk/win32/gdkglobals-win32.c
4025 * gdk/win32/gdkkeys-win32.c
4026 * gdk/win32/gdkmain-win32.c
4027 * gdk/win32/gdkproperty-win32.c
4028 * gdk/win32/gdkselection-win32.c
4029 * gdk/win32/gdkwindow-win32.c: Remove the G_WIN32_IS_NT_BASED()
4030 and G_WIN32_HAVE_WIDECHAR_API() tests and their false (Win9x)
4031 branches, and any variables or static functions used only by the
4034 * gdk/win32/gdkprivate-win32.h: Remove backup definitions for
4035 constants that aren't missing from current mingw and MSVC6
4038 * gdk/win32/gdkmain-win32.c
4039 * gdk/win32/gdkprivate-win32.h: Remove the _gdk_win32_gdi_failed()
4040 function. On NT-based Windows GetLastError() returns error codes
4041 also for failed GDI calls, so we can use _gdk_win32_api_failed()
4044 2006-08-29 Emmanuele Bassi <ebassi@gnome.org>
4046 * gtk/gtkrecentchoosermenu.c
4047 (gtk_recent_chooser_menu_set_current_uri): Break when an item
4048 is found and activated. (#353449, based on a patch by Jan Arne
4051 Fri Jul 14 16:13:37 2006 Tim Janik <timj@gtk.org>
4053 * gtk/gtkprogressbar.c: introduced ::xspacing and ::yspacing style
4054 properties which make all hardcoded padding and spacing values
4055 configurable. properly swap ::text-xalign treatment for RTL widgets.
4057 * gtk/gtkprogress.c: fixed style property blurbs. made alignment
4058 proeprty more consistent with GtkMisc alignment blurbs. mention
4059 RTL treatment for text-xalign.
4061 Tue Aug 29 11:57:40 2006 Tim Janik <timj@imendio.com>
4063 * tests/testgtk.c: allow (most) windows to be resizable.
4064 added ellipsization settings to progress bars.
4066 2006-08-28 Matthias Clasen <mclasen@redhat.com>
4068 * modules/printbackend/cups/gtkprintbackendcups.c: Use a
4069 resonable timeout of 3 seconds when polling for printer
4070 list updates, instead of 300000 seconds...
4072 2006-08-28 Michael Natterer <mitch@imendio.com>
4074 * gtk/gtktextbufferserialize.c (serialize_text): don't write out
4075 </apply_tag> for tags that have already been closed by the logic
4076 which turns overlapping spans into XML-able trees. Fixes broken
4077 XML when there are overlapping tags in the buffer. Also free two
4078 leaked GLists and did some cleanup.
4081 * tests/testrichtext.c: new test which creates randomly tagged
4082 GtkTextBuffers and serializes/deserializes them.
4084 2006-08-26 Matthias Clasen <mclasen@redhat.com>
4086 * gtk/gtkstatusicon.c (gtk_status_icon_reset_image_data):
4087 Don't leak pixbufs. (#352264, Ross Burton)
4089 * gtk/gtklinkbutton.c (set_link_underline): Don't leak
4090 PangoAttributes. (#352391, Paolo Borelli)
4092 2006-08-25 Matthias Clasen <mclasen@redhat.com>
4094 * demos/gtk-demo/Makefile.am:
4095 * demos/gtk-demo/textscroll.c: Add an example of automatic
4096 scrolling, thanks to Yevgen Muntyan. (#351206)
4098 * gtk/gtkmodules.c (find_module): Use local binding when
4099 loading modules. (#351868)
4101 2006-08-24 Michael Natterer <mitch@imendio.com>
4103 * gdk/quartz/gdkdisplay-quartz.c (gdk_display_get_name): return
4104 the hostname instead of NULL.
4106 2006-08-23 Matthias Clasen <mclasen@redhat.com>
4108 * gtk/gtkprinteroptionwidget.[hc]: Fix confusion about
4109 names and values in comboboxes, and clean up some
4110 coding style issues.
4112 2006-08-23 Tor Lillqvist <tml@novell.com>
4114 * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path):
4115 Revert unintended translatable string addition. Use same string
4116 in GError as in gtkfilesystemunix.c.
4118 * gtk/gtkfilesystemwin32.c (_gtk_file_system_win32_path_compare):
4119 Fix logic at the end of strings.
4121 * gtk/gtkfilesystemwin32.c: Maintain a hash table of live
4122 handles and check that we have no outstanding handles at
4123 finalization time. (Copying what Matthias did for
4124 gtkfilesystemunix.c)
4126 2006-08-23 Matthias Clasen <mclasen@redhat.com>
4128 * gtk/gtkfilesystemunix.c: Maintain a hash table
4129 of live handles and check that we have no outstanding
4130 handles at finalization time. (Copying what
4131 Federico did for gtkfilesystemgnomevfs.c)
4133 2007-08-22 Matthias Clasen <mclasen@redhat.com>