2007-06-04 Matthias Clasen * === Released 2.11.1 === * gdk/gdkwindow.c (gdk_window_set_composited): Improve docs. * NEWS: * README.in: Updates 2007-06-04 Michael Natterer Move "move-focus" signals from several widgets to GtkWidget to enable more flexible costomization of keyboard navigation via bindings. Fixes bug #414947. * gtk/gtkwidget.c: add "move-focus" binding signal, default to calling the toplevel GtkWindow's "move-focus" vfunc. * gtk/gtktextview.[ch] * gtk/gtkwindow.[ch]: remove "move-focus" signals and add compat code that makes sure that both emitting the signal on the widget and overriding the virtual functions keeps working as before. * gtk/gtktoolbar.c: remove "move-focus" signal here too and use GtkWidget's signal. This change slightly changes keyboard navigation in toolbars. I'll fix the behavior if somebody can explain me if and how exactly the new behavior is broken. 2007-06-04 Matthias Clasen * gtk/gtkmarshalers.list: * gtk/gtknotebook.[hc]: Add a create-window signal that allows to override the global create-window-hook on a per-notebook basis. The default handler falls back to the global hook. (#386935, Christian Hammond) 2007-06-04 Emmanuele Bassi * gtk/gtkradiobutton.[ch]: * gtk/gtk.symbols: * tests/testgtk.c: Revert previous commit; the API is not yet finalized - see bug #166995. 2007-06-04 Emmanuele Bassi * gtk/gtkradiobutton.h: * gtk/gtkradiobutton.c: * gtk/gtk.symbols: Add gtk_radio_button_set_value(), gtk_radio_button_get_current_value() and gtk_radio_button_get_value(). Use these functions to set and get an arbitrary integer associated to a GtkRadioButton in a group, like the value associated to a GtkRadioAction. * tests/testgtk.c: (create_radio_buttons), (radio_toggled_cb): Exercise the new API. 2007-06-03 Torsten Schoenfeld * gtk/gtkicontheme.c (choose_icon): Initialize unthemed_icon to NULL to avoid accessing uninitialized memory when gtk_icon_theme_choose_icon() is called with an empty names list. 2007-06-03 Richard Hult * gdk/quartz/gdkevents-quartz.c: (create_crossing_event): Set the key modifier state. 2007-06-03 Richard Hult * gdk/quartz/gdkevents-quartz.c: Make pointer grab emulation work a bit better: (gdk_display_pointer_is_grabbed): Do what the docs say and don't consider implicit grabs here. (gdk_pointer_grab): Overriding a grab by the same app should always be succesful. (gdk_event_translate): Implicit grabs should not be owner events. 2007-06-03 Matthias Clasen * NEWS: Updates 2007-06-03 Matthias Clasen * docs/tools/widgets.c: Add a volume button 2007-06-03 Matthias Clasen * gtk/gtkradiobutton.c: * gtk/gtkradiomenuitem.c: Fix doc typos. 2007-06-03 Matthias Clasen * configure.in: Allow to disable Xinerama. (#348065, Diego Pettenò) 2007-06-03 Xan Lopez * gtk/gtknotebook.c: remove index parameter in gtk_notebook_switch_page and remove g_return_if checks in private functions. (#443247) 2007-06-01 Richard Hult * gdk/quartz/gdkevents-quartz.c: (get_converted_window_coordinates), (create_crossing_event): Fix the coordinates in crossing events so they are relative to the right window. 2007-06-01 Richard Hult * gdk/quartz/gdkevents-quartz.[ch]: Make function naming consistent for the various functions that retrieve data from an event. * gdk/quartz/gdkprivate-quartz.h: * gdk/quartz/gdkwindow-quartz.[ch]: Remove the now unused _gdk_quartz_window_find_child_by_point() function. 2007-06-01 Matthias Clasen Add support for composited child windows. (#412882, Ryan Lortie) * gdk/gdk.symbols: * gdk/gdkdisplay.h: * gdk/gdkinternals.h: * gdk/gdkwindow.[hc]: Add gdk_display_supports_composite() and gdk_window_set_composited(). * gdk/x11/gdkevents-x11.c: * gdk/x11/gdkdisplay-x11.[hc]: * gdk/x11/gdkwindow-x11.[hc]: X11 implementation. * gdk/win32/gdkdisplay-win32.c: * gdk/win32/gdkwindow-win32.c: Dummy win32 implementration. * gdk/quartz/gdkdisplay-quartz.c: * gdk/quartz/gdkwindow-quartz.c: Dummy Quartz implementation. * gdk/directfb/gdkdisplay-directfb.c: * gdk/directfb/gdkwindow-directfb.c: Dummy DirectFB implementation. * tests/testgtk.c: Add a "composited window" test. 2007-06-01 Michael Natterer * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): don't switch submenu opening direction for overlapping reasons if there is even less space on the other side (bug #441863, Tommi Komulainen). 2007-06-01 Michael Natterer * gtk/gtkfilechooserdialog.c (response_cb): change fix for #347883 to not obfuscate the code. 2007-06-01 Yevgen Muntyan Avoid recreating pangolayouts in GtkTextView on cursor movement (#435405, Behdad Esfahbod). * gtk/gtktextlayout.c: * gtk/gtktextlayout.h: new GtkTextLayout method invalidate_cursors(), and functions gtk_text_layout_invalidate_cursors() and gtk_text_layout_cursors_changed(), to use when invalidation is due to moved marks or changed selection. * gtk/gtktextbtree.c: * gtk/gtktextbtree.h: use what's appropriate when invalidating layout. * gtk/gtk.symbols: add new functions. * README.in: added a note about changed GtkTextLayout API. 2007-06-01 Alp Toker * gdk/gdkcairo.c (gdk_cairo_set_source_pixmap): Fix doc typos. 2007-05-31 Yevgen Muntyan * gtk/gtkstyle.c (get_insertion_cursor_gc): use text colors from widget style to draw cursor instead of hardcoded black and grey (#79585, comment #30). 2007-06-01 Kristian Rietveld * gtk/gtkcellrenderertext.c (get_size): transform the ink_rect using pango_extents_to_pixels to avoid rounding errors. (Fixes #430218, Shlomi Israel). 2007-05-31 Mathias Hasselmann * tests/autotestfilechooser.c: Reactivate the other file-chooser tests. Forgot that before commiting revision 17994. 2007-05-31 Mathias Hasselmann * gtk/gtkfilechooserdialog.c, tests/autotestfilechooser.c: Reset the internal response_requested flag, once the response triggered by file_chooser_widget_response_requested has been processed (#347883). 2007-05-30 Richard Hult * gdk/quartz/gdkselection-quartz.c (gdk_free_text_list): Add this function, bug #438440. 2007-05-30 Tor Lillqvist * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Subtract the multi-monitor offset from x and y before setting up the rectangle for ClipCursor(). Fixes #442326. 2007-05-30 Matthias Clasen * gtk/gtkiconview.c (gtk_icon_view_layout): Queue a resize if the size changed. (#418047, Alex Graveley) 2007-05-30 Simos Xenitellis * gdk/gdkkeysyms-update.pl: Updated script to new upstream location of keysymdef.h (#442183) 2007-05-30 Emmanuele Bassi * gtk/gtkfilechooserdefault.c (update_chooser_entry): Return after setting the file chooser entry with the current selection. 2007-05-30 Matthias Clasen * gtk/gtkiconcachevalidator.c: Correct the handling of display names. (#441767, Marcin Bachry) 2007-05-30 Xan Lopez * gtk/gtknotebook.c (gtk_notebook_set_current_page): Small cleanup. Fixes #442172. 2007-05-28 Cody Russell * gdk/win32/xcursors.h: Fix initialization of last item. (#440511) 2007-05-28 Richard Hult * gdk/quartz/gdkevents-quartz.c (get_child_coordinates_from_ancestor) (get_ancestor_coordinates_from_child): Break out code that was repeated into separate functions and call them instead. (find_window_for_mouse_nsevent): Break out this from find_window_for_nsevent to make the code clearer. (find_window_for_nsevent): Use the above and fix the returned coordinates in the process so that they are always relative the found window, both for the normal case and during grabs. Still needs fixing for the case where we get nsevents for a window other than than grab window during grabs. 2007-05-28 Richard Hult * gdk/quartz/gdkevents-quartz.c (gdk_event_translate): Fix typo, we need both press and release in the mask to trigger implicit grabs. 2007-05-28 Richard Hult * gdk/quartz/gdkevents-quartz.c (pointer_ungrab_internal): Reset all the grab state, to help debugging. (gdk_event_translate): Use pointer_ungrab_internal instead of duplicating the code here. 2007-05-28 Richard Hult * gdk/quartz/gdkprivate-quartz.h: * gdk/quartz/gdkwindow-quartz.c (find_child_window_helper) (_gdk_quartz_window_find_child): Refactored version of _gdk_quartz_window_find_child_by_point, that doesn't return any coordinates as the users of this function already have the coordinates and need to translate them differently. (_gdk_windowing_window_get_pointer): Fixup coordinate translation. (_gdk_windowing_window_at_pointer): Likewise. 2007-05-28 Richard Hult * gdk/quartz/gdkevents-quartz.c (find_window_interested_in_event_mask): Don't traverse beyond the toplevel of the passed in window. 2007-05-28 Richard Hult * gdk/quartz/gdkwindow-quartz.c: (_gdk_windowing_window_init): Set a size for the root window. 2007-05-28 Richard Hult * gdk/quartz/gdkwindow-quartz.c: Add comments about what various coordinates are relative to. 2007-05-28 Carlos Garnacho * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed_recurse): Add back variable declaration removed in r17958. 2007-05-28 Carlos Garcia Campos * gtk/gtkprinter.[ch]: Add new capability GTK_PRINT_CAPABILITY_NUMBER_UP. * docs/reference/gtk/tmpl/gtkprintunixdialog.sgml: * gtk/gtkprintunixdialog.c: (update_dialog_from_capabilities): * modules/printbackends/file/gtkprintbackendfile.c: (file_printer_get_options), (file_printer_get_settings_from_options): * modules/printbackends/cups/gtkprintbackendcups.c: (cups_printer_get_capabilities): Add a new print capability to specify whether print dialog will offer printing multiple pages per sheet. (#398414) 2007-05-28 Matthias Clasen * gtk/gtktoolbar.h: Actually undeprecate gtk_toolbar_[un]set_icon_size. (#314172. Yevgen Muntyan) 2007-05-28 Matthias Clasen * gtk/gtkwidget.c: Document some more signals * gtk/gtktextview.c: Improve docs 2007-05-27 Tor Lillqvist * configure.in (GDK_EXTRA_LISB): Drop bogus -user32 switch. Was supposed to be -luser32, but he "l" was missing. But nobody has noticed, so presumably unnecessary. 2007-05-26 Matthias Clasen * gtk/gtkprintoperationpreview.c: Improve docs 2007-05-26 Matthias Clasen * gtk/gtkentry.c: Move docs inline. 2007-05-26 Matthias Clasen * gdk/directfb/gdkkeys-directfb.c: Remove duplicate doc comments that cause problems when building the docs. 2007-05-26 Matthias Clasen * gdk/x11/gdkdisplay-x11.c: Update docs * gdk/gdk.c: Update docs * gdk/directfb/gdkwindow-directfb.c: Remove duplicate doc comments. * gdk/x11/gdkwindow-x11.c: Fix doc formatting 2007-05-26 Matthias Clasen * gtk/gtktooltip.c: * gtk/gtkstatusicon.c: * gtk/gtkscalebutton.c: * gtk/gtkrecentaction.c: * gtk/gtkrange.c: * gtk/gtkprinter.c: * gtk/gtkprintsettings.c: * gtk/gtkpapersize.c: * gtk/gtkpagesetup.c: * gtk/gtknotebook.c: * gtk/gtkentrycompletion.c: Document new api 2007-05-26 Richard Hult * gtk/gtkprinter.c: (gtk_printer_set_location): Fix typo to get the build working. 2007-05-26 Matthias Clasen * configure.in: Require gtk-doc 1.6, for signal and property links. * gtk/gtkbox.c: * gtk/gtkbutton.c: * gtk/gtkcontainer.c: * gtk/gtkdialog.c: * gtk/gtkentry.c: * gtk/gtkimage.c: * gtk/gtklabel.c: * gtk/gtkmisc.c: * gtk/gtksettings.c: * gtk/gtkwidget.c: Documentation improvements, link signals and properties where it makes sense. 2007-05-25 Matthias Clasen * gtk/gtktextmark.c: * gtk/gtktextbuffer.c: Formatting fixes. 2007-05-25 Matthias Clasen Allow to separate GtkTextMark creation from buffer insertion. (#132818, Gustavo Giráldez, patch by Yevgen Muntyan) * gtk/gtktextmarkprivate.h: * gtk/gtktextmark.[hc] (gtk_text_mark_new): New function to create a GtkTextMark. * gtk/gtktextbuffer.[hc] (gtk_text_buffer_add_mark): New function to add an existing mark to a buffer. * gtk/gtktextbtree.c: Allow adding existing marks. * gtk/gtk.symbols: Add new functions. * tests/testtextbuffer.c: Add some tests for new mark functionality. 2007-05-25 Xan Lopez * gtk/gtkaction.c: (gtk_action_set_short_label): Use private->data->short_label to update the proxies. (#440780) 2007-05-25 Richard Hult * gdk/quartz/gdkimage-quartz.c: (_gdk_quartz_image_copy_to_image): Implement copying from a window, part of bug #348493. 2007-05-25 Matthias Clasen * gtk/gtkprintoperation-unix.c (unix_end_run): Hold a refence on the print operation until gtk_print_job_send() is done. (#440040, Chris Vine) 2007-05-25 Matthias Clasen * gtk/gtkiconview.c (gtk_icon_view_accessible_ref_child): Don't crash and don't leak. (#439565, Pedro Villavicencio) 2007-05-25 Matthias Clasen * gtk/gtkiconfactory.c: Improve a warning * gtk/gtkicontheme.c (gtk_icon_info_load_icon): Always set the error when returning NULL. (#440982, Carlos Garcia Campos) 2007-05-25 Michael Natterer Merge fix from maemo-gtk: * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): open submenus also if the menu item we're entering is already selected. Also, it makes no sense to forward the event to the parent menu shell if we are entering a menu item of *this* menu shell. 2007-05-24 Matthias Clasen * gtk/stock-icons/*: Make sure all svg icons are added as pngs. 2007-05-24 Matthias Clasen * modules/input/Makefile.am: Fix broken DESTDIR support 2007-05-24 Michael Natterer * gtk/gtktooltip.c (find_widget_under_pointer): apply patch from Bogdan Nicula which fixes a crash on GdkWindows which have no GtkWidget as user_data (bug #440890).