2007-05-02 Matthias Clasen * === Released 2.10.12 === * gtk/Makefile.am: Forgotten changes for the icon cache validator 2007-05-02 Kristian Rietveld Merge from trunk: * gtk/gtktreeview.c (gtk_tree_view_grab_notify): stop the rubber band if it's active. 2007-05-01 Matthias Clasen * NEWS: Updates 2007-05-01 Matthias Clasen Merge from trunk: * gtk/gtkiconcachevalidator.c: Don't be too strict when checking icon flags. (#435062) 2007-05-01 Matthias Clasen Merge from trunk: * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_path_do): Don't ignore the fact that gtk_file_system_get_parent() may return NULL. (#424042, Jan Martinek) 2007-05-01 Dan Winship Merge from trunk: * gdk/x11/gdkwindow-x11.c (setup_toplevel_window): Make sure the leader_window's WM_CLIENT_LEADER points to itself. #435028 2007-05-01 Matthias Clasen Merge from trunk: * gtk/gtkfilechooserdefault.c (struct UpdateCurrentFolderData), (update_current_folder_get_info_cb): add a new struct field to clear the file entry after the current folder has been updated. (gtk_file_chooser_default_update_current_folder), (change_folder_and_display_error): Add a new function parameter to trigger file entry clearing. (edited_idle_create_folder_cb), (file_list_drag_data_received_get_info_cb), (gtk_file_chooser_default_map), (gtk_file_chooser_default_set_current_folder), (switch_to_selected_folder), (save_entry_get_info_cb), (shortcuts_activate_volume_mount_cb), (shortcuts_activate_volume), (shortcuts_activate_get_info_cb), (list_row_activated), (path_bar_clicked): use new function parameter appropriately. (gtk_file_chooser_default_should_respond): trigger file entry clearing after the directory is updated instead of clearing it before, this way we avoid reloading the completion model with the soon to be old folder, causing a warning and a glitch in the folder where completion happens. (#379414, Carlos Garnacho) 2007-05-01 Matthias Clasen Merge from trunk: * gtk/gtkiconcachevalidator.[hc]: Add an icon cache validator. * gtk/updateiconcache.c: Validate the generated cache before moving it in place. * gtk/gtkiconcache.c: Validate icon caches before using them. * gtk/Makefile.am: Integrate it. 2007-04-30 Matthias Clasen Merge from trunk: * gtk/gtksettings.c (settings_update_color_scheme): Make sure we always have a color_hash. (#423916, Jens Granseuer) 2007-04-30 Matthias Clasen Merge from trunk: * gtk/gtkexpander.c (gtk_expander_realize): A NO_WINDOW widget must not set the background of its window. (#433972, Guilherme Polo) 2007-04-30 Matthias Clasen Merge from trunk: * modules/printbackends/cups/gtkprintbackendcups.c: Get all the printer attributes when getting the list of printers, not via separate requests. (#387889, Krishan Purahoo) 2007-04-30 Cody Russell Merge from trunk: * gdk/win32/gdkwindow-win32.c: Reintroduced erase_background(), but now we're calling it from _gdk_windowing_window_clear_area() instead of from the WM_ERASEBKGND event. Also fixes the area that is cleared so that it is not an extra row and column too large. (Neil Roberts, #415681) 2007-04-30 Matthias Clasen Merge from trunk: * gtk/gtkprintoperation.c: Translate the default job name, and don't utf8-validate the job name in the setter. (#421993, Morten Welinder) 2007-04-30 Matthias Clasen Merge from trunk: * gtk/gtkprintjob.c (gtk_print_job_get_surface): Use g_unlink. (#421990, Morten Welinder) 2007-04-29 Matthias Clasen Merge from trunk: Fix some issues with reference handling in the printing code. (#429902, Mathias Hasselmann) * gtk/gtkprintoperation.c (gtk_print_operation_finalize): Unref the print context, if we have one. (gtk_print_operation_done): Add a default ::done handler that unrefs the print context. (preview_ready): Take a reference on the print operation preview here. (print_pages_idle): ...not here, (preview_print_idle_done): ...and release it here. * tests/print-editor.c (preview_cb): Take a reference on the print operation here. 2007-04-29 Matthias Clasen Merge from trunk: Make the emission of ::end-print and ::done consistent for previews. (#347567, Yevgen Muntyan) * gtk/gtkprintoperation.c (preview_iface_end_preview): Set the finished status here. (preview_end_run): ...and not here. (print_pages_idle_done): Emit ::done for a cancelled preview. (print_pages_idle): If a preview has been cancelled, don't emit ::ready, but emit ::end-print. * tests/print-editor.c: Use ::end-print to undo allocations from ::begin-print. 2007-04-29 Matthias Clasen Merge from trunk: * gtk/gtkprintoperation.c (gtk_print_operation_run): Document that a print operation can be run only once, and add a corresponding g_return_if_fail(). (#379399, Masao Mutoh) 2007-04-29 Matthias Clasen * gtk/gtkprintoperation-unix.c (_gtk_print_operatin_platform_launch_preview): Unlink the file if launching the preview failed, use the settings from the correct screen, and don't make the error dialog modal. (#421985, Morten Welinder) 2007-04-29 Matthias Clasen Merge from trunk: * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Only strip parentheses of the form (_x). (#434261, Brian Wellington) 2007-04-29 Matthias Clasen Merge from trunk: * gtk/gtkprintoperation.c (print_pages_idle): Also check the default handler when deciding whether to emit the paginate signal. (#345345, Yevgen Muntyan) 2007-04-29 Matthias Clasen Merge from trunk: * gtk/gtkpagesetupunixdialog.c (gtk_page_setup_unix_dialog_finalize): Free the custom paper list. (#403267, Felix Riemann) 2007-04-29 Matthias Clasen Merge from trunk: * gtk/gtkprintjob.c (gtk_print_job_get_surface): Fix a small memory leak. (#403251, Felix Riemann) 2007-04-28 Matthias Clasen Merge from trunk: * gtk/gtkeventbox.c (gtk_event_box_realize): Fix the offsets of the input-only window if we also have a visible window. (#405089) 2007-04-28 Matthias Clasen * gtk/gtkliststore.c (gtk_list_store_set_valist_internal): * gtk/gtktreestore.c (gtk_tree_store_set_valist_internal): Recognize negative column indices as invalid. (#415260, Chris Wilson) 2007-04-28 Matthias Clasen Merge from trunk: * gdk/win32/bdfcursor.c (compose_cursors_from_fonts): * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_reorder): * gtk/gtkfilesystemmodel.c (got_root_folder_cb): (get_children_folder_cb): Plug memory leaks caused by wrong use of g_slist_remove_link(). (#405515, Nicolas Peninguy) 2007-04-28 Matthias Clasen Merge from trunk: * demos/gtk-demo/printing.c: Fix the headers in the print demo. (#423722, Yevgen Muntyan) 2007-04-26 Tor Lillqvist * gtk/gtkinputdialog.c (gtk_input_dialog_fill_axes) (gtk_input_dialog_fill_keys): Remove old child of scrolled window before adding a new one when switching what input device is being handled. (#399425) 2007-04-26 Matthias Clasen Merged from trunk: * modules/printbackends/lpr/gtkprintbackendlpr.c (gtk_print_backend_lpr_init): Mark the printer list as done. (#428665, Bogdan Gheorghe) 2007-04-26 Matthias Clasen Merged from trunk: * Makefile.am: * gtk/Makefile.am: Don't install UNIX-printing headers and support files on non-UNIX platforms. (#425655, Vincent Geddes) 2007-04-26 Matthias Clasen Merged from trunk: * gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Accept unnamed separators. (#369112, Christian Persch) 2007-04-26 Matthias Clasen Merged from trunk: * gtk/gtkaccelgroup.c (gtk_accel_group_finalize): Don't access invalid memory. (#429732, Armin Burgmeier) 2007-04-26 Cody Russell Merged from trunk: * gdk/win32/xcursors.h: * gdk/win32/gdkcursor-win32.c: Use Win32 native cursors instead of the ones built into GTK where it makes sense. (#128852, Tim Evans) 2007-04-25 Cody Russell Merged from trunk: * gdk/gdkwindow.h: * gtk/gtkwidget.c: * gtk/gtkhandlebox.c: * gdk/directfb/gdkwindow-directfb.c: * gdk/linux-fb/gdkwindow-fb.c: * gdk/quartz/gdkwindow-quartz.c: * gdk/win32/gdkwindow-win32.c: * gdk/x11/gdkwindow-x11.c: Added window type hint and implement drop shadows on Win32 for menus, tooltips, etc. (#148535, Tim Evans, Dom Lachowicz) 2007-04-25 Matthias Clasen Merged from trunk: * gtk/gtktreeview.c (gtk_tree_view_style_set): Set the background of the header window again. (#431067, Benjamin Berg) 2007-04-25 Matthias Clasen Merged from trunk: * gtk/gtkicontheme.c (theme_lookup_icon): Set the filename to NULL for builtin icons, since gtk_icon_info_get_builtin_pixbuf() depends on it. * tests/testicontheme.c: Report builtin icons. 2007-04-25 Matthias Clasen Merged from trunk: * gtk/gtkprintoperation.c (preview_iface_end_preview): Don't crash if end_run is not set. (#424168, Matthias Hasselmann) 2007-04-25 Michael Natterer Merged from trunk: * gtk/gtkmenu.c (gtk_menu_handle_scrolling): fix ACTIVE state of scroll buttons (we were setting the state to ACTIVE but immediately overwriting it with NORMAL or PRELIGHT). Also got rid of many separate calls to gdk_window_invalidate_rect() by remembering the old button state and only invalidating the area if the state has changed (addresses parts of bug #433242, Tommi Komulainen). (gtk_menu_scroll_to): change the arrow states only if changing from or to INSENSITIVE state, so we don't overwrite the ACTIVE state set by above function. 2007-04-24 Chris Wilson * gtk/gtkicontheme.c (scan_directory): Ensure the icon_theme->all_icons and dir->icons hash tables use the same string as their keys. (#418531) 2007-04-23 Cody Russell Backported from trunk: * modules/engines/ms-windows/msw_style.c: Fixed one-pixel drawing error on left-most tab when notebooks are top-oriented. Also general cleanup of notebook tab related code. (Lieven van der Heide, Cody Russell) 2007-04-23 Cody Russell Backported from trunk: * modules/engines/ms-windows/msw_style.c: Fix prematurely released DC that prevented fonts with multi-byte font names from being loaded. (#404506, Hiroyuki Yamamoto) 2007-04-23 Matthias Clasen Mreged from trunk: * modules/printbackends/cups/gtkprintbackendcups.c: Reduce the amount of debug spew if we are not debugging. 2007-04-19 Cody Russell Backported from trunk: * modules/engines/ms-windows/msw_style.c: Fix pixbuf leaks in non-WinXP rendering paths. From Daniel Atallah (#403470) 2007-04-19 Cody Russell Merged from trunk: * modules/engines/ms-windows/msw_style.c: Fix menuitem rendering for Windows Vista. (#392015, Hiroyuki Yamamoto) 2007-04-18 Matthias Clasen Merged from trunk: * gdk/gdkregion-generic.h (GROWREGION): Handle the case of nRects == 0 correctly. 2007-04-18 Emmanuele Bassi Merged from trunk: * gtk/gtkrecentmanager.c (gtk_recent_manager_lookup_item): Fix a leak by not increasing the refcount of the GtkRecentInfo object when returning it (thanks to Matthias Clasen). 2007-04-16 Dan Williams Merged from trunk: * gtk/gtkrc.c: (gtk_rc_context_get): Initialise variable (#423064) 2007-04-16 Alexander Larsson Merged from trunk: * gtk/gtkprintoperation.c (gtk_print_operation_run): Make async print preview work by actually starting the print process in that case (#424168) 2007-04-11 Chris Wilson * gtk/gtkiconfactory.c (hash_table_get_keys), (_gtk_icon_factory_list_ids): * gtk/gtkstock.c (hash_table_get_keys), (gtk_stock_list_ids): s/g_hash_table_get_keys/hash_table_get_keys/ Avoid the naming conflict with the recent GLib implementation of the similar function. 2007-04-10 Matthias Clasen Merged from trunk: * gdk/x11/xsettings-client.[hc]: Change the XSettingsWatchFunc to return a Bool to indicate success. Update callers and implementors. Based on a patch by Owen Taylor. * gdk/x11/gdkevents-x11.c (gdk_xsettings_watch_cb): Don't leak a reference to gdkwin. 2007-04-03 Loïc Minier * gdk/x11/gdkscreen-x11.c: (check_xfree_xinerama): Revert to non-xinerama mode when XineramaQueryScreens returns NULL; patch from Simon McVittie; #425786. 2007-04-01 Cody Russell * modules/engines/ms-windows/msw_style.c: Unref the rotated pixbuf. Somehow this got applied to HEAD but not to gtk-2-10. (Daniel Atallah, #403470) 2007-04-01 Cody Russell Merge from trunk: * modules/engines/ms-windows/msw_style.c: Fix rendering of notebook tabs when they are bottom-oriented. Fixes #399253. 2007-03-28 Matthias Clasen Merge from trunk: * modules/printbackends/cups/gtkcupsutils.[hc]: * modules/printbackends/cups/gtkprintbackendcups.c: Apply a patch by John Palmieri to make the cups print backend support raw printers. 2007-03-28 Kristian Rietveld Merge from trunk: * gtk/gtkfilechooserdefault.c: Add a keybinding (C-h) to toggle whether to show hidden files. (#344657, Wouter Bolsterlee, Priit Laes, et al) 2007-03-23 Matthias Clasen Merge from trunk: * gtk/gtkfilechooserdefault.c: Add a keybinding (C-l) to toggle the visibility of the location entry. (#383354, John Pye, patch by Carlos Garnacho) 2007-03-22 Matthias Clasen Merge from trunk: * gtk/gtksettings.c (merge_color_scheme): Freeze property notification. * gtk/gtksettings.c (_gtk_settings_handle_event): Handle the gtk-color-scheme xsetting being unset. * gtk/gtkrc.c (gtk_rc_reparse_all_for_settings): Handle recursion locally. 2007-03-21 Matthias Clasen Merge from trunk: * gtk/gtkprintoperation-unix.c: Remove leftover debug spew. 2007-03-18 Matthias Clasen Merge from trunk: * gtk/gtkentrycompletion.c (gtk_entry_completion_compute_prefix): Ensure that the prefix is valid UTF-8. (#419568, Nickolay V. Shmyrev) 2007-03-17 Chris Wilson * gdk/x11/gdkvisual-x11.c (_gdk_visual_init): Initialise nxvisuals to 0 in order to handle XGetVisualInfo() failures gracefully. (#419171) 2007-03-16 Matthias Clasen Merge from trunk: * gtk/gtkprintunixdialog.c (printer_added_cb): Scroll to make the selected printer visible. (#418403, Nickolay V. Shmyrev, patch by Christian Persch) 2007-03-15 Federico Mena Quintero * gtk/gtkfilechooserdefault.c (find_good_size_from_style): PANGO_PIXELS() gives us device units, which are *points* in pangocairo's parlance, but we want actual pixels. So, get the screen's resolution to compute the actual number of pixels. Fixes bug #418585. 2007-03-15 Emmanuele Bassi Merge from trunk: * gtk/gtkrecentmanager.c (gtk_recent_manager_add_item): Remove unused GError; do not allocate GtkRecentData and use a variable on the stack. (#418673, Morten Welinder) 2007-03-15 Chris Wilson * gtk/gtkicontheme.c (ensure_valid_themes), (rescan_themes), (gtk_icon_theme_rescan_if_needed): Protect ensure_valid_themes() from recursion, which can happen for example if the app tries to reload an icon from within a theme-changed handler. (#418531) 2007-03-15 Emmanuele Bassi Merge from trunk: * gtk/gtkrecentmanager.c: Fix documentation errors. (Morten Welinder) 2007-03-15 Emmanuele Bassi Merge from trunk: * gtk/gtkrecentchooserprivate.h: * gtk/gtkrecentchooserutils.c: Share between the widgets the recent chooser function for getting the filtered, sorted and clamped list of recent files from the manager. (#418219) * gtk/gtkrecentchoosermenu.c: Use the newly defined _gtk_recent_chooser_get_items() function; remove some pointer indirections. * gtk/gtkrecentchooserdefault.c: Reload the items every time a property affecting the view is changed; move the objects unref and the source removal into the dispose function; use the newly defined _gtk_recent_chooser_get_items() function. (see #338843)