2004-08-01 Matthias Clasen * === Released 2.5.1 === Thu Jul 29 16:36:42 2004 Jonathan Blandford * gtk/gtktreeprivate.h: New arguments * gtk/gtktreeview.c: (gtk_tree_view_class_init): Add key_release callback (gtk_tree_view_init): Initialize timeout handler (gtk_tree_view_unrealize): clear timeout if needed (gtk_tree_view_key_press): Typeahead support (gtk_tree_view_key_release): Not used yet -- will be needed for typeahead. (gtk_tree_view_search_entry_flush_timeout): Remove typeahead entry in a timeout. (gtk_tree_view_ensure_interactive_directory): (gtk_tree_view_real_start_interactive_search): (gtk_tree_view_search_init): (gtk_tree_view_start_interactive_search): Typeahead support added. (gtk_tree_view_search_dialog_hide): Clear timeout and text when we hide. Sat Jul 31 23:17:44 2004 Matthias Clasen * NEWS: Updates Sat Jul 31 01:13:01 2004 Matthias Clasen * gtk/gtkwindow.c: * gtk/gtkentry.c: * gtk/gtkaction.c: Use the canonical form of signal names after "notify::". Otherwise, no notification arrives. GObject should have a warning for that, really. (#148879, Lorenzo Gil Sánchez) Sat Jul 31 00:42:08 2004 Matthias Clasen * gdk/x11/gdkwindow-x11.c (gdk_window_set_keep_below): * gdk/x11/gdkwindow-x11.c (gdk_window_set_keep_above): Don't set both states at once. (#148789, Matthew Garrett) 2004-07-30 Matthias Clasen * gtk/gtkcombobox.c: Don't forget to destroy the row separator function user data when the combo box is destroyed. 2004-07-30 Matthias Clasen * gtk/gtkcombobox.h: * gtk/gtkcombobox.c: Change the api for separators to use a separator function instead of a boolean column. * tests/testcombo.c: Update to match the api change. Fri Jul 30 02:21:41 2004 Matthias Clasen * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): Fix the positioning of the popup. Fri Jul 30 00:56:31 2004 Matthias Clasen * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_active_changed): Implement this in terms of gtk_combo_box_get_active_iter(), instead of gtk_combo_box_get_active(). 2004-07-29 Federico Mena Quintero * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault): Add a field for an "add to shortcuts" menu item. (popup_menu_detach_cb): Clear out the field. (file_list_build_popup_menu): Only build the menu here. (file_list_update_popup_menu): Build the menu, then update the sensitivity of its items. (file_list_popup_menu): Use file_list_update_popup_menu(). (bookmarks_check_add_sensitivity): Also set the sensitivity of the popup menu item. Correctly handle the case for a *single* file. Simplify a bit. (bookmarks_add_selected_folder): New helper function; code moved over from add_bookmark_button_clicked_cb(). (add_bookmark_button_clicked_cb): Use the function above. (selection_check): Rather than returning a boolean value for emptiness, actually return the number of selected rows. Also, simplify a bit. (get_selected_path): New helper function. 2004-07-29 Anders Carlsson * demos/gtk-demo/Makefile.am: * demos/gtk-demo/clipboard.c: (copy_button_clicked), (paste_received), (paste_button_clicked), (do_clipboard): Add clipboard demo. 2004-07-28 Federico Mena Quintero * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault): Store signal IDs in gulongs, not guints! (gtk_file_chooser_default_hierarchy_changed): We now monitor the focus widget on our toplevel to know which widget was last focused at the time our "should_respond" method gets called. (shortcuts_activate_selected): New helper function. (shortcuts_get_selected): New helper function. (remove_selected_bookmarks): Use shortcuts_get_selected(). (bookmarks_check_remove_sensitivity): Likewise. (shortcuts_reorder): Likewise. (shortcuts_activate_iter): Renamed from shortcuts_activate_item(). Activate by iter, not by item number. (save_folder_combo_changed_cb): Use shortcuts_activate_iter(). (shortcuts_row_activated_cb): Likewise. (gtk_file_chooser_default_should_respond): If the last focused widget on the toplevel was the shortcuts list, activate the selected shortcut. 2004-07-28 Matthias Clasen * gdk/linux-fb/gdkprivate-fb.h: Make the fb backend compile against current freetype. (#148558, Nicolas Deves) * gtk/gtktreeview.c: Replace the EXPANDER_MAX macro by ROW_HEIGHT. (#145528) * gtk/gtkuimanager.c: Warning fixes. * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_background): Fix prototype mismatch. (#148589, Nicolas Deves) 2004-07-28 Anders Carlsson * gdk/x11/gdkdrawable-x11.c (gdk_draw_rectangle_alpha_libgtk_only): Cast to 32-bit integers when premultiplying, suggested by Keith Packard. 2004-07-27 Anders Carlsson * demos/gtk-demo/iconview.c: (do_iconview): Change selection mode to multiple. * gdk/gdkdrawable.h: * gdk/linux-fb/gdkdrawable-fb2.c: (gdk_draw_rectangle_alpha_libgtk_only): * gdk/win32/gdkdrawable-win32.c: (gdk_draw_rectangle_alpha_libgtk_only): * gdk/x11/gdkdrawable-x11.c: (gdk_x11_draw_image), (get_impl_drawable), (gdk_x11_draw_pixbuf), (gdk_draw_rectangle_alpha_libgtk_only): Add gdk_draw_rectangle_alpha_libgtk_only which uses XRenderFillRectangle on X11. It's stubbed out on the Win32 and fb backends. * gtk/gtkiconview.c: (gtk_icon_view_paint_rubberband): Use gdk_draw_rectangle_alpha_libgtk_only here. 2004-07-27 Anders Carlsson * gtk/gtkaboutdialog.c: (gtk_about_dialog_init), (text_view_style_set), (add_credits_page), (display_credits_dialog), (display_license_dialog): Remove dialog separators, fix text view background setting, use Close buttons instead of OK buttons. 2004-07-27 Matthias Clasen * gtk/gtktreeview.c (gtk_tree_view_ensure_interactive_directory): Add a frame around the C-f popup to stop it from merging visually in whatever is underneath. * gtk/gtkcombobox.h: * gtk/gtkcombobox.c (gtk_combo_box_get_popup_accessible): New function necessary to make GtkComboBox accessible. (#132847, Padraig O'Briain) Tue Jul 27 02:34:06 2004 Matthias Clasen * gtk/gtkwidget.c (gtk_widget_dispose): Hide parentless windows when disposing them. (#133231, Michael Natterer) 2004-07-26 Matthias Clasen * gtk/gtklabel.c (gtk_label_class_init): Expand the documentation for GtkLabel::ellipsize. Mon Jul 26 00:38:27 2004 Matthias Clasen Make the GtkComboBox in list mode scroll if the list is too large to fit in the popup. (#135543) * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Add a o scrolled window to the popup in list mode. (gtk_combo_box_list_position): Calculate the height of the popup so that it fits on the screen, set the scrollbar policy of the scrolled window appropriately. (gtk_combo_box_popup): Use the height calculated by gtk_combo_box_list_position(). (gtk_combo_box_remeasure): Don't add unnecessary padding. (gtk_combo_box_size_request): But add the focus with here. (gtk_combo_box_list_setup): Connect to enter notify on the popup window to activate auto scrolling. (gtk_combo_box_list_enter_notify): Activate auto scrolling. (gtk_combo_box_list_button_pressed): Setup a timeout for auto scrolling. (gtk_combo_box_list_scroll_timeout): Timeout function for auto scrolling. (gtk_combo_box_list_auto_scroll): Scroll the list when the pointer leaves the window. Sun Jul 25 19:51:17 2004 Matthias Clasen * gtk/gtknotebook.c (gtk_notebook_scroll): Ignore scroll events from the content of the page. (#148409, Gabriel de Perthuis) Sat Jul 24 21:38:12 2004 Soeren Sandmann * gtk/gtktoolbar.c (internal_insert_element): Warn if you try to add a tool item to a toolbar using the deprecated API. Fri Jul 23 13:04:10 2004 Matthias Clasen * gtk/gtkdnd.c (gtk_drag_dest_set): Revert the change to initialize target_list to an empty list instead of NULL, since it broke tree dnd. (#148215, Ernst Persson) * gtk/gtkdnd.c (gtk_drag_dest_add_text_targets): * gtk/gtkdnd.c (gtk_drag_source_add_text_targets): Instead handle target list being NULL here. 2004-07-23 Dafydd Harries * gtk/gtkradioaction.c: * gtk/gtkradiobutton.c: * gtk/gtkentry.c: * gtk/gtkmisc.c: Improve various translatable messages. (#137616) Fri Jul 23 11:11:10 2004 Matthias Clasen * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_start_editing): Align the entry in the same way as the cell. (#136749) Fri Jul 23 11:01:00 2004 Matthias Clasen * gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag): Don't iterate too far up. (#147965, Olivier Sessink) Fri Jul 23 10:28:43 2004 Matthias Clasen * gtk/gtktreeview.c (gtk_tree_view_finalize): * gtk/gtkradioaction.c (gtk_radio_action_finalize): * gtk/gtkfontsel.c (gtk_font_selection_finalize): * gtk/gtkcellview.c (gtk_cell_view_finalize): * gtk/gtkcalendar.c (gtk_calendar_finalize): * gtk/gtkactiongroup.c (gtk_action_group_finalize): Remove unnecessary checks. (#148175, Morten Welinder) Thu Jul 22 01:42:16 2004 Matthias Clasen * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): Add a new :ellipsize property which controls ellipsization of the rendered text. (#144835, Vincent Untz, patch by Jonathan Blandford and Anders Carlsson) * gtk/gtkfilechooserdefault.c (create_file_list): Use ellipsization for the name column. Thu Jul 22 01:21:28 2004 Matthias Clasen * gtk/gtkfontsel.c (gtk_font_selection_init): Add additional accessability relations. (#141804, Padraig O'Briain) Thu Jul 22 01:16:23 2004 Matthias Clasen * gtk/gtkcombobox.c: Avoid some warnings. Thu Jul 22 01:05:16 2004 Matthias Clasen * configure.in: Require Pango 1.5.1 (for ellipsisation). * gtk/gtklabel.h: * gtk/gtklabel.c (gtk_label_class_init): Add a new :ellipsize property which controls ellipsization of the label. (#125250, Tim Van Wassenhove, patch by James M. Cape) * tests/testellipsise.c: Simple test for ellipsizsation. Wed Jul 21 22:46:27 2004 Matthias Clasen * gtk/gtkcombobox.c (gtk_combo_box_new_text): Don't leak the list store. (#148134, Crispin Flowerday) Wed Jul 21 22:35:47 2004 Matthias Clasen * gtk/gtkcombobox.c (gtk_combo_box_destroy): Don't leak the menu. (#148110, Tommi Komulainen) Wed Jul 21 22:24:10 2004 Matthias Clasen * gtk/gtkcellview.c (gtk_cell_view_finalize): Don't leak tree model and tree row reference. (#148125, Crispin Flowerday) Wed Jul 21 22:17:06 2004 Matthias Clasen * tests/testcombo.c (main): Don't leak models. (#148128, Tommi Komulainen) Wed Jul 21 21:26:08 2004 Matthias Clasen * gtk/gtkviewport.c (viewport_set_adjustment): Don't leak the adjustments. (#148089, Tommi Komulainen) Wed Jul 21 21:20:21 2004 Matthias Clasen * gtk/gtktreeview.c (gtk_tree_view_destroy): Don't leak the adjustments. (#148073, Tommi Komulainen) Wed Jul 21 21:04:50 2004 Matthias Clasen * gtk/gtktoolbar.c (gtk_toolbar_finalize): Don't leak the arrow. (#148064, Tommi Komulainen) 2004-07-21 Matthias Clasen * gtk/gtkcalendar.c: Use the new text target functionality in GtkTargetList instead of hardcoding a subset of text targets. Tue Jul 20 23:11:23 2004 Matthias Clasen * gdk/x11/gdkevents-x11.c: Hook up gtk-menu-bar-accel to an XSetting, Gtk/MenuBarAccel. (#120859, Scott James Remnant) Tue Jul 20 22:26:29 2004 Matthias Clasen * gtk/gtkfilechooserutils.h: * gtk/gtktoolbutton.c: * gtk/gtktoolbar.c: * gtk/gtkicontheme.c: * gtk/gtkcalendar.c: * demos/gtk-demo/ui_manager.c: * demos/gtk-demo/appwindow.c: Remove trailing commas from enumerations. (#148035) 2004-07-20 Federico Mena Quintero * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Fix the documentation comment for the editing-started signal. * gtk/gtkmarshalers.list: Added VOID:OBJECT,STRING for GtkCellRenderer::editing-started. 2004-07-20 Matthias Clasen * tests/testactions.c (main): * tests/testmerge.c (main): Add some refcount debugging. * gtk/gtkuimanager.c (update_node, free_node): Ref an sink all proxies, so that we can properly clean up floating proxies which the app didn't adopt. (#147926, Tommi Komulainen) 2004-07-20 Matthias Clasen Allow custom initialization of cell editables. (#147221) * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Add a ::editing-started signal as a hook for setting up the GtkCellEditable. (gtk_cell_renderer_start_editing): ...and emit it here. Mon Jul 19 23:51:50 2004 Matthias Clasen * gtk/gtktreeview.c (gtk_tree_view_button_press): Set drag_pos before grabbing the focus, since we may reenter into gtk_tree_view_motion_resize_column() which requires drag_pos to be set. (#147913, Guilherme Salgado, patch by John Finlay) Mon Jul 19 23:51:50 2004 Matthias Clasen * gtk/gtktreeview.c (gtk_tree_view_enter_notify): Don't use uninitialized node pointer. (#147911, Peter Zelezny) Tue Jul 20 04:34:56 2004 Soeren Sandmann * configure.in: Bump version number