summaryrefslogtreecommitdiff
path: root/gtk/gtktreeview.c
Commit message (Collapse)AuthorAgeFilesLines
* gtk/gtkbutton.h gtk/gtkcellrenderer.h gtk/gtkimcontext.h gtk/gtkstyle.hMichael Natterer2008-01-251-95/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-25 Michael Natterer <mitch@imendio.com> * gtk/gtkbutton.h * gtk/gtkcellrenderer.h * gtk/gtkimcontext.h * gtk/gtkstyle.h * gtk/gtktoolbar.h * gtk/gtktooltip.h * gtk/gtktreeprivate.h * gtk/gtktreeviewcolumn.h * gtk/gtkwidget.h: add const to constant structs which are passed into GTK+. Also add some forgotten const for const strings. * gtk/gtkbutton.c * gtk/gtkcellrenderer.c * gtk/gtkimcontext.c * gtk/gtkstyle.c * gtk/gtktoolbar.c * gtk/gtktooltip.c * gtk/gtktreeview.c * gtk/gtktreeviewcolumn.c * gtk/gtkwidget.c: changed accordingly. svn path=/trunk/; revision=19399
* fully initialize GdkWindowAttr to avoid valgrind warnings. (#507751, patchKristian Rietveld2008-01-101-11/+12
| | | | | | | | | | | 2008-01-10 Kristian Rietveld <kris@imendio.com> * gtk/gtktreeview.c (gtk_tree_view_motion_draw_column_motion_arrow), (_gtk_tree_view_column_start_drag): fully initialize GdkWindowAttr to avoid valgrind warnings. (#507751, patch from Christian Persch). svn path=/trunk/; revision=19333
* Fix #477175, reported by Juri Pakaste.Kristian Rietveld2008-01-101-11/+14
| | | | | | | | | | | | | | | | | | | | | | | | 2008-01-10 Kristian Rietveld <kris@imendio.com> Fix #477175, reported by Juri Pakaste. * gtk/gtktreeprivate.h: * gtk/gtktreeview.c (gtk_tree_view_top_row_to_dy): do not set tree_view->priv->dy here directly, just calculate the new value and set it on the adjustment, (gtk_tree_view_adjustment_changed): add guards to not call gtk_tree_view_dy_to_top_row() if we are currently in gtk_tree_view_top_row_to_dy(), (gtk_tree_view_put): fix coordinate annotation: these are bin_window coordinates, not tree coordinates, (gtk_tree_view_real_start_editing): add cast. * gtk/tests/treeview-scrolling.c: add an assertion for checking the position of the editable in the "create new row and start editing" tests. svn path=/trunk/; revision=19331
* Use G_OBJECT_WARN_INVALID_PROPERTY_ID consistently. Fixes #5075Johan Dahlin2008-01-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-06 Johan Dahlin <johan@gnome.org> * gtk/gtkcellrenderercombo.c: (gtk_cell_renderer_combo_get_property), (gtk_cell_renderer_combo_set_property): * gtk/gtkcombobox.c: (gtk_combo_box_set_property): * gtk/gtkcomboboxentry.c: (gtk_combo_box_entry_set_property): * gtk/gtknotebook.c: (gtk_notebook_set_property): * gtk/gtkspinbutton.c: (gtk_spin_button_set_property): * gtk/gtktextbuffer.c: (gtk_text_buffer_set_property), (gtk_text_buffer_get_property): * gtk/gtktextview.c: (gtk_text_view_set_property): * gtk/gtktogglebutton.c: (gtk_toggle_button_set_property): * gtk/gtktoolbutton.c: (gtk_tool_button_set_property), (gtk_tool_button_get_property): * gtk/gtktoolitem.c: (gtk_tool_item_set_property), (gtk_tool_item_get_property): * gtk/gtktreeview.c: (gtk_tree_view_set_property): * gtk/gtkwidget.c: (gtk_widget_set_property): * gtk/gtkwindow.c: (gtk_window_set_property): Use G_OBJECT_WARN_INVALID_PROPERTY_ID consistently. Fixes #5075 svn path=/trunk/; revision=19311
* More default property value fixesMatthias Clasen2007-12-281-1/+1
| | | | svn path=/trunk/; revision=19280
* pass correct argument to g_signal_emit for TEST_EXPAND_ROW (GtkTreeIter*Xan Lopez2007-12-231-1/+1
| | | | | | | | | | | 2007-12-23 Xan Lopez <xan@gnome.org> * gtk/gtktreeview.c (gtk_tree_view_build_tree): pass correct argument to g_signal_emit for TEST_EXPAND_ROW (GtkTreeIter* vs. GtkTreeIter**). Patch by Sadrul Habib Chowdhury (#504804) svn path=/trunk/; revision=19225
* Fix a typoMatthias Clasen2007-11-251-1/+1
| | | | svn path=/trunk/; revision=19039
* make sure the new cursor node is visible when we are done. (Fixes #472965,Kristian Rietveld2007-10-091-0/+1
| | | | | | | | | | | 2007-10-09 Kristian Rietveld <kris@imendio.com> * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): make sure the new cursor node is visible when we are done. (Fixes #472965, Carlos Garnacho). svn path=/trunk/; revision=18899
* we should only "don't move the cursor, but just select the current node"Kristian Rietveld2007-10-091-2/+8
| | | | | | | | | | | | 2007-10-09 Kristian Rietveld <kris@imendio.com> * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): we should only "don't move the cursor, but just select the current node" if the cursor node is actually selectable. (Fixes #483730, reported by Geoff Bache). svn path=/trunk/; revision=18898
* the tooltip-column property getter needs to set an integer, not a boolean.Kristian Rietveld2007-09-131-1/+1
| | | | | | | | | | | 2007-09-14 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeview.c (gtk_tree_view_get_property): the tooltip-column property getter needs to set an integer, not a boolean. (#476689, spotted and patch by Christian Persch). svn path=/trunk/; revision=18818
* if cell is set, always pass in path to gtk_tree_view_get_cell_area()Kristian Rietveld2007-09-131-3/+13
| | | | | | | | | | | | 2007-09-13 Kristian Rietveld <kris@imendio.com> * gtk/gtktreeview.c (gtk_tree_view_set_toooltip_cell): if cell is set, always pass in path to gtk_tree_view_get_cell_area() whether it is NULL or set. Added explanatory comment and added this side case to the API documentation. svn path=/trunk/; revision=18812
* only start typeahead search if tree_view has focus (and not one of theKristian Rietveld2007-09-101-1/+2
| | | | | | | | | | | 2007-09-10 Kristian Rietveld <kris@imendio.com> * gtk/gtktreeview.c (gtk_tree_view_key_press): only start typeahead search if tree_view has focus (and not one of the column buttons). svn path=/trunk/; revision=18779
* Reverted r16699:Kristian Rietveld2007-09-091-19/+16
| | | | | | | | | | | | | | | 2007-09-09 Kristian Rietveld <kris@gtk.org> Reverted r16699: 2006-10-30 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeview.c (gtk_tree_view_class_init): change left/right keybindings to collapse/expand rows instead of moving the focus cursor. (#105895, Brian Bober and others). svn path=/trunk/; revision=18768
* Do not allow the cursor to go to a separator row. Fixes #441219, modifiedKristian Rietveld2007-08-221-42/+200
| | | | | | | | | | | | | | | | | | | | | | | | | 2007-08-22 Kristian Rietveld <kris@imendio.com> Do not allow the cursor to go to a separator row. Fixes #441219, modified patch by Carlos Garnacho. * gtk/gtktreeview.c (row_is_separator): new inline function for calling the row-separator-func, made all of gtktreeview.c use this function instead of calling the func themselves, (gtk_tree_view_button_press): treat a click on a separator like a click on empty space, (gtk_tree_view_update_rubber_band_selection_rage): skip non-selectable rows, (search_first_focusable_path), (gtk_tree_view_focus_to_cursor), (gtk_tree_view_move_cursor_up_down), (gtk_tree_view_move_cursor_page_up_down), (gtk_tree_view_move_cursor_start_end): skip separators, (gtk_tree_view_real_set_cursor): do not allow setting the cursor on a separator. svn path=/trunk/; revision=18672
* make sure we fail keynav if the only item in the list is already selected.Kristian Rietveld2007-08-141-2/+3
| | | | | | | | | | | 2007-08-14 Kristian Rietveld <kris@imendio.com> * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): make sure we fail keynav if the only item in the list is already selected. (Fixes #465039, reported by Fernando Herrera). svn path=/trunk/; revision=18610
* Fix documentation. (#461225, Murray Cumming).Kristian Rietveld2007-07-301-1/+1
| | | | | | | | | | 2007-07-30 Kristian Rietveld <kris@imendio.com> * gtk/gtktreeview.c (gtk_tree_view_set_tooltip_cell): Fix documentation. (#461225, Murray Cumming). svn path=/trunk/; revision=18557
* Fix some doc formatting errorsMatthias Clasen2007-07-231-1/+1
| | | | svn path=/trunk/; revision=18530
* Small fixesMatthias Clasen2007-07-191-4/+11
| | | | svn path=/trunk/; revision=18503
* handle no-window and regular widgets seperately.Kristian Rietveld2007-07-191-1/+1
| | | | | | | | | | | | | 2007-07-19 Kristian Rietveld <kris@imendio.com> * gtk/gtktooltip.c (find_topmost_widget_coords_from_event): handle no-window and regular widgets seperately. * gtk/gtktreeview.c (gkt_tree_view_set_tooltip_cell): rect.x should be zero. svn path=/trunk/; revision=18502
* markup fixesMatthias Clasen2007-07-191-6/+6
| | | | svn path=/trunk/; revision=18500
* markup fixMatthias Clasen2007-07-191-2/+2
| | | | svn path=/trunk/; revision=18499
* typo fixMatthias Clasen2007-07-191-1/+1
| | | | svn path=/trunk/; revision=18498
* add more convenience API.Kristian Rietveld2007-07-191-1/+188
| | | | | | | | | | | | | | | | | | 2007-07-19 Kristian Rietveld <kris@imendio.com> * gtk/gtk.symbols: * gtk/gtktreeprivate.h: * gtk/gtktreeview.[ch] (gtk_tree_view_get_tooltip_context), (gtk_tree_view_[sg]et_tooltip_column): add more convenience API. * tests/testtooltip.c (query_tooltip_tree_view_cb): use gtk_tree_view_get_tooltip_context(). * demos/gtk-demo/demo.ui: add a tooltip column to the list store, set tooltip-column on the tree view. svn path=/trunk/; revision=18496
* Correct some mistakes in the documentation of the test-expand/collapse-rowMatthias Clasen2007-07-181-2/+2
| | | | | | | | | | | 2007-07-18 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreeview.c: Correct some mistakes in the documentation of the test-expand/collapse-row signals. (#457774, Olivier Andrieu) svn path=/trunk/; revision=18489
* #408327, improve tooltip positioning.Kristian Rietveld2007-07-131-0/+108
| | | | | | | | | | | | | | | | | | | | | | | | | 2007-07-13 Kristian Rietveld <kris@imendio.com> #408327, improve tooltip positioning. * gtk/gtk.symbols: updated. * gtk/gtktooltip.[ch] (gtk_tooltip_position): factor out positioning code in here, (gtk_tooltip_set_tip_area): new function to set the tooltip area, (gtk_tooltip_reset), (_gtk_tooltip_handle_event): hide tooltip once the pointer leaves the tip area. * gtk/gtktreeview.[ch] (gtk_tree_view_set_tooltip_row), (gtk_tree_view_set_tooltip_cell): convenience functions to set tip area for row/column/cell. * tests/testtooltips.c (query_tooltip_tree_view_cb): use gtk_tree_view_set_tooltip_row. svn path=/trunk/; revision=18464
* Make parameter naming consistent.Matthias Clasen2007-07-121-10/+10
| | | | | | | | | | | 2007-07-11 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreeview.c: * gtk/gtktoolitem.[hc]: Make parameter naming consistent. svn path=/trunk/; revision=18452
* x should be changed when converting widget <=> bin_window coordinates, notKristian Rietveld2007-07-111-4/+4
| | | | | | | | | | | 2007-07-11 Kristian Rietveld <kris@imendio.com> * gtk/gtktreeview.c (gtk_tree_view_*_to_*_coords): x should be changed when converting widget <=> bin_window coordinates, not when bin_window <=> tree_window. svn path=/trunk/; revision=18446
* Fix a typo in the docs. (#453673, Guillaume Cottenceau)Matthias Clasen2007-07-091-1/+1
| | | | | | | | | | | | 2007-07-09 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreeview.c (gtk_tree_view_convert_bin_window_to_widget_coords: Fix a typo in the docs. (#453673, Guillaume Cottenceau) svn path=/trunk/; revision=18417
* new function to check whether a rubber banding operation is currentlyKristian Rietveld2007-07-021-0/+24
| | | | | | | | | | | | 2007-07-02 Kristian Rietveld <kris@gtk.org> * gtk/gtk.symbols: * gtk/gtktreeview.[ch] (gtk_tree_view_is_rubber_banding_active): new function to check whether a rubber banding operation is currently active. (#393579, Christian Neumair). svn path=/trunk/; revision=18344
* Rename buildable methods to not clash with widget methods. (#448928,Johan Dahlin2007-06-191-10/+10
| | | | | | | | | | 2007-06-19 Johan Dahlin <jdahlin@async.com.br> * gtk/*: Rename buildable methods to not clash with widget methods. (#448928, Torsten Schoenfeld) svn path=/trunk/; revision=18187
* Fix up docsMatthias Clasen2007-06-151-8/+7
| | | | svn path=/trunk/; revision=18150
* Add GtkBuilder, fixes #172535Johan Dahlin2007-06-151-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-15 Johan Dahlin <jdahlin@async.com.br> * demos/gtk-demo/Makefile.am: * demos/gtk-demo/builder.c: (quit_activate), (about_activate), (do_builder): * demos/gtk-demo/demo.ui: * docs/reference/gtk/gtk-docs.sgml: * docs/reference/gtk/gtk-sections.txt: * docs/reference/gtk/gtk.types: * docs/reference/gtk/tmpl/gtkbuildable.sgml: * docs/reference/gtk/tmpl/gtkbuilder.sgml: * gtk/Makefile.am: * gtk/gtk.h: * gtk/gtk.symbols: * gtk/gtkaction.c: (gtk_action_buildable_init), (gtk_action_buildable_set_name), (gtk_action_buildable_get_name): * gtk/gtkactiongroup.c: (gtk_action_group_get_type), (gtk_action_group_buildable_init), (gtk_action_group_buildable_add), (gtk_action_group_buildable_set_name), (gtk_action_group_buildable_get_name): * gtk/gtkbuildable.c: (gtk_buildable_get_type), (gtk_buildable_set_name), (gtk_buildable_get_name), (gtk_buildable_add), (gtk_buildable_set_property), (gtk_buildable_parser_finished), (gtk_buildable_construct_child), (gtk_buildable_custom_tag_start), (gtk_buildable_custom_tag_end), (gtk_buildable_custom_finished), (gtk_buildable_get_internal_child): * gtk/gtkbuildable.h: * gtk/gtkbuilder.c: (gtk_builder_class_init), (gtk_builder_init), (gtk_builder_finalize), (gtk_builder_set_property), (gtk_builder_get_property), (_gtk_builder_resolve_type_lazily), (gtk_builder_real_get_type_from_name), (gtk_builder_get_parameters), (gtk_builder_get_internal_child), (_gtk_builder_construct), (_gtk_builder_add), (apply_delayed_properties), (_gtk_builder_finish), (gtk_builder_new), (gtk_builder_add_from_file), (gtk_builder_add_from_string), (gtk_builder_get_object), (object_add_to_list), (gtk_builder_get_objects), (gtk_builder_set_translation_domain), (gtk_builder_get_translation_domain), (gtk_builder_connect_signals_default), (gtk_builder_connect_signals), (gtk_builder_connect_signals_full), (gtk_builder_value_from_string), (gtk_builder_value_from_string_type), (_gtk_builder_enum_from_string), (_gtk_builder_flags_from_string), (gtk_builder_get_type_from_name), (gtk_builder_error_quark): * gtk/gtkbuilder.h: * gtk/gtkbuilderparser.c: (state_push), (state_peek), (state_pop), (error_missing_attribute), (error_invalid_attribute), (error_invalid_tag), (builder_construct), (parse_object), (free_object_info), (_get_type_by_symbol), (parse_child), (free_child_info), (parse_property), (free_property_info), (parse_signal), (_free_signal_info), (parse_interface), (create_subparser), (free_subparser), (subparser_start), (subparser_end), (parse_custom), (start_element), (end_element), (text), (_gtk_builder_parser_parse_buffer): * gtk/gtkbuilderprivate.h: * gtk/gtkcelllayout.c: (attributes_start_element), (attributes_text_element), (_gtk_cell_layout_buildable_custom_tag_start), (_gtk_cell_layout_buildable_custom_tag_end), (_gtk_cell_layout_buildable_add): * gtk/gtkcelllayout.h: * gtk/gtkcellview.c: (gtk_cell_view_buildable_init), (gtk_cell_view_buildable_custom_tag_start), (gtk_cell_view_buildable_custom_tag_end): * gtk/gtkcolorseldialog.c: (gtk_color_selection_dialog_buildable_interface_init), (gtk_color_selection_dialog_buildable_get_internal_child): * gtk/gtkcombobox.c: (gtk_combo_box_buildable_init), (gtk_combo_box_buildable_custom_tag_start), (gtk_combo_box_buildable_custom_tag_end): * gtk/gtkcomboboxentry.c: (gtk_combo_box_entry_buildable_interface_init), (gtk_combo_box_entry_buildable_get_internal_child): * gtk/gtkcontainer.c: (gtk_container_get_type), (gtk_container_buildable_init), (gtk_container_buildable_add), (gtk_container_buildable_set_child_property), (attributes_start_element), (attributes_text_element), (gtk_container_buildable_custom_tag_start), (gtk_container_buildable_custom_tag_end): * gtk/gtkdebug.h: * gtk/gtkdialog.c: (gtk_dialog_buildable_interface_init), (gtk_dialog_buildable_get_internal_child), (attributes_start_element), (attributes_text_element), (gtk_dialog_buildable_custom_tag_start), (gtk_dialog_buildable_custom_finished): * gtk/gtkentrycompletion.c: (gtk_entry_completion_buildable_init): * gtk/gtkexpander.c: (gtk_expander_buildable_add), (gtk_expander_buildable_init): * gtk/gtkfontsel.c: (gtk_font_selection_dialog_buildable_interface_init), (gtk_font_selection_dialog_buildable_get_internal_child): * gtk/gtkframe.c: (gtk_frame_buildable_init), (gtk_frame_buildable_add): * gtk/gtkiconview.c: (gtk_icon_view_buildable_init), (gtk_icon_view_buildable_custom_tag_start), (gtk_icon_view_buildable_custom_tag_end): * gtk/gtkliststore.c: (gtk_list_store_buildable_init), (list_store_start_element), (list_store_end_element), (list_store_text), (gtk_list_store_buildable_custom_tag_start), (gtk_list_store_buildable_custom_tag_end): * gtk/gtkmain.c: * gtk/gtknotebook.c: (gtk_notebook_buildable_init), (gtk_notebook_buildable_add): * gtk/gtksizegroup.c: (gtk_size_group_buildable_init), (size_group_start_element), (gtk_size_group_buildable_custom_tag_start), (gtk_size_group_buildable_custom_finished): * gtk/gtktreestore.c: (gtk_tree_store_buildable_init), (tree_model_start_element), (gtk_tree_store_buildable_custom_tag_start), (gtk_tree_store_buildable_custom_finished): * gtk/gtktreeview.c: (gtk_tree_view_buildable_init), (gtk_tree_view_buildable_add): * gtk/gtktreeviewcolumn.c: (gtk_tree_view_column_buildable_init): * gtk/gtkuimanager.c: (gtk_ui_manager_buildable_init), (gtk_ui_manager_buildable_add), (gtk_ui_manager_buildable_construct_child), (gtk_ui_manager_buildable_custom_tag_start), (gtk_ui_manager_buildable_custom_tag_end): * gtk/gtkwidget.c: (gtk_widget_get_type), (gtk_widget_buildable_interface_init), (gtk_widget_buildable_set_name), (gtk_widget_buildable_get_name), (gtk_widget_buildable_set_property), (gtk_widget_buildable_parser_finshed), (accel_group_start_element), (gtk_widget_buildable_custom_tag_start), (gtk_widget_buildable_custom_finshed): * gtk/gtkwindow.c: (gtk_window_buildable_interface_init), (gtk_window_buildable_set_property), (gtk_window_buildable_parser_finished): * tests/Makefile.am: * tests/buildertest.c: (builder_new_from_string), (test_parser), (signal_normal), (signal_after), (signal_object), (signal_object_after), (signal_first), (signal_second), (signal_extra), (signal_extra2), (test_connect_signals), (test_uimanager_simple), (test_domain), (test_translation), (test_sizegroup), (test_list_store), (test_tree_store), (test_types), (test_spin_button), (test_notebook), (test_construct_only_property), (test_children), (test_child_properties), (test_treeview_column), (test_icon_view), (test_combo_box), (test_combo_box_entry), (test_cell_view), (test_dialog), (test_accelerators), (test_widget), (main): Add GtkBuilder, fixes #172535 svn path=/trunk/; revision=18141
* Audit of GtkTreeView coordinate system usage. (#142494).Kristian Rietveld2007-06-131-59/+248
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-13 Kristian Rietveld <kris@imendio.com> Audit of GtkTreeView coordinate system usage. (#142494). * gtk/gtktreeview.[ch]: general documentation updates, (gtk_tree_view_scroll_to_cell), (gtk_tree_view_get_dest_row_at_pos): update coordinate translations, (gtk_tree_view_tree_to_widget_coords), (gtk_tree_view_widget_to_tree_coords): Deprecated, (gtk_tree_view_convert_.*_coords): 6 new functions for doing transformations between coordinate systems. * gtk/gtk.symbols: updated. * tests/testtooltips.c (query_tooltip_tree_view_cb): fix testcase with new gtk_tree_view_convert_widget_to_bin_window_coords(). * docs/reference/gtk/Makefile.am * docs/reference/gtk/images/tree-view-coordinates.png: add new image. * docs/reference/gtk/tmpl/gtktreeview.sgml: eloborate on the different coordinate systems. svn path=/trunk/; revision=18119
* Documentation additionsMatthias Clasen2007-06-071-0/+14
| | | | svn path=/trunk/; revision=18074
* also remove the auto expand timeout if it exists.Kristian Rietveld2007-06-061-0/+6
| | | | | | | | | | 2007-06-06 Kristian Rietveld <kris@imendio.com> * gtk/gtktreeview.c (gtk_tree_view_unrealize): also remove the auto expand timeout if it exists. svn path=/trunk/; revision=18048
* Disable key bindings during rubber banding, make pressing Esc stop rubberKristian Rietveld2007-05-091-0/+13
| | | | | | | | | | | | | | 2007-05-09 Kristian Rietveld <kris@imendio.com> * gtk/gtktreeview.c (gtk_tree_view_key_press), (gtk_tree_view_key_release): * gtk/gtkiconview.c (gtk_icon_view_class_init), (gtk_icon_view_key_press), (gtk_icon_view_key_release): Disable key bindings during rubber banding, make pressing Esc stop rubber banding. (#405027). svn path=/trunk/; revision=17807
* stop the rubber band if it's active.Kristian Rietveld2007-05-021-1/+6
| | | | | | | | | | 2007-05-02 Kristian Rietveld <kris@imendio.com> * gtk/gtktreeview.c (gtk_tree_view_grab_notify): stop the rubber band if it's active. svn path=/trunk/; revision=17770
* Set the background of the header window again. (#431067, Benjamin Berg)Matthias Clasen2007-04-251-0/+1
| | | | | | | | | | | 2007-04-25 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreeview.c (gtk_tree_view_style_set): Set the background of the header window again. (#431067, Benjamin Berg) svn path=/trunk/; revision=17640
* add _gtk_tree_view_column_get_focus_area().Kristian Rietveld2007-03-201-105/+87
| | | | | | | | | | | | | | | | | | | | | | | | | 2007-03-20 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeviewcolumn.c: * gtk/gtktreeprivate.h: add _gtk_tree_view_column_get_focus_area(). * gtk/gtktreeview.c (gtk_tree_view_clamp_column_visible): add focus_to_cell parameter, rework to handle clamping columns which are bigger than the available page size better, (gtk_tree_view_key_press): remove code handling moving the focus to other column headers, (gtk_tree_view_header_focus): add clamp_column_visible parameter, fix RTL support, don't wrap around when moving focus to other column headers, call gtk_tree_view_clamp_column_visible() instead of duplicating code, (gtk_tree_view_focus): only clamp the column visible when we are explicitly moving to another column header (fixes #399555, Charles Kerr), (gtk_tree_view_move_cursor_left_right): update call to gtk_tree_view_clamp_column_visible(). svn path=/trunk/; revision=17546
* only hide the search dialog and send focus events if the search dialog isKristian Rietveld2007-03-101-5/+8
| | | | | | | | | | | 2007-03-10 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeview.c (gtk_tree_view_search_dialog_hide): only hide the search dialog and send focus events if the search dialog is currently visible. svn path=/trunk/; revision=17464
* add cursor_offset field.Kristian Rietveld2007-02-161-1/+14
| | | | | | | | | | | | | | 2007-02-16 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeprivate.h: add cursor_offset field. * gtk/gtktreeview.c (gtk_tree_view_init), (gtk_tree_view_move_cursor_page_up_down): fix off by one error in page up/down handling by memorizing the offset into the cursor row. (Fixes #399809, reported by Bruce Bowler). svn path=/trunk/; revision=17316
* send a focus-in event to the tree view after hiding the search dialog.Kristian Rietveld2007-02-161-0/+1
| | | | | | | | | | | 2007-02-16 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeview.c (gtk_tree_view_search_dialog_hide): send a focus-in event to the tree view after hiding the search dialog. (#356515, Rich Burridge, Peter Parente). svn path=/trunk/; revision=17314
* remove unused style_get of vertical-separator. (#403165, Chris Wilson).Kristian Rietveld2007-02-021-3/+0
| | | | | | | | | | 2007-02-02 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeview.c (gtk_tree_view_row_changed): remove unused style_get of vertical-separator. (#403165, Chris Wilson). svn path=/trunk/; revision=17252
* factor out add_scroll_timeout(). (taken from maemo-gtk).Kristian Rietveld2007-01-191-9/+16
| | | | | | | | | | | 2007-01-19 Kristian Rietveld <kris@imendio.com> * gtk/gtktreeview.c (gtk_tree_view_motion_bin_window), (add_scroll_timeout), (gtk_tree_view_drag_motion): factor out add_scroll_timeout(). (taken from maemo-gtk). svn path=/trunk/; revision=17192
* gtk/gtkcheckbutton.c gtk/gtkdnd.c gtk/gtkentry.c gtk/gtkmenu.cMichael Natterer2007-01-181-4/+4
| | | | | | | | | | | | | | | 2007-01-18 Michael Natterer <mitch@imendio.com> * gtk/gtkcheckbutton.c * gtk/gtkdnd.c * gtk/gtkentry.c * gtk/gtkmenu.c * gtk/gtktreeview.c * gtk/gtkviewport.c: pass more clip rectangles to gtk_paint_foo() functions. Based on a patch from maemo-gtk (bug #398023). svn path=/trunk/; revision=17183
* don't include "gtkprivate.h" to avoid differing definitions ofHans Breuer2007-01-131-4/+4
| | | | | | | | | | | | | | 2007-01-13 Hans Breuer <hans@breuer.org> * gtk/gtkimmulticontext.c : don't include "gtkprivate.h" to avoid differing definitions of GTK_LOCALEDIR (bug #396175). * gtk/gtktreeview.c : use g_snprintf instead of snprintf, which is not available everywhere * gtk/makefile.msc.in : updated svn path=/trunk/; revision=17137
* handle tree == NULL. (Fixes #392259, reported by Christian Persch).Kristian Rietveld2007-01-051-3/+12
| | | | | | | | | | 2007-01-05 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): handle tree == NULL. (Fixes #392259, reported by Christian Persch). svn path=/trunk/; revision=17092
* do allow for invalidated nodes if the tree view is not realized. (#363147,Kristian Rietveld2007-01-051-7/+3
| | | | | | | | | | | 2007-01-05 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeview.c (gtk_tree_view_row_changed): do allow for invalidated nodes if the tree view is not realized. (#363147, Carlos Garnacho, Miguel Cabrera). svn path=/trunk/; revision=17089
* fix typo causing the search dialog timeout never to be refreshed.Kristian Rietveld2006-12-261-1/+1
| | | | | | | | 2006-12-26 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeview.c (gtk_tree_view_search_init): fix typo causing the search dialog timeout never to be refreshed. (#389581, Andrzej Szombierski).
* Lots of scrolling fixes. Made scrolling work properly in not fullyKristian Rietveld2006-12-261-53/+47
| | | | | | | | | | | | | | | | | | | | | | | | | 2006-12-26 Kristian Rietveld <kris@gtk.org> Lots of scrolling fixes. Made scrolling work properly in not fully validated tree views; fixed a bunch of corner cases. * gtk/gtktreeview.c (validate_visible_area): if a row's dy is past upper - page_size, we know it is located at the end so the test for dy + height has been dropped. In the same case if area_below < 0, we know this is the last node in the tree view so area_above is page_size - height of this row. (validate_visible_area): got rid of subtracting new_height - old_height from area_{below,above}, it didn't make any sense at all and the full height of the row should be subtracted instead. (validate_visible_area): when scrolling to a given path, set the top row directly together with the dy offset, then sync that top_row to the dy. (gtk_tree_view_set_top_row): new function to directly set a top_row. (gtk_tree_view_dy_to_top_row): refactored to use gtk_tree_view_set_top_row(). (gtk_tree_view_top_row_to_dy): make sure dy >= 0 when done. (gtk_tree_view_adjustment_changed): only update our dy and top_row if the adjustment's dy actually changed.