summaryrefslogtreecommitdiff
path: root/gtk/gtktreeviewcolumn.c
Commit message (Collapse)AuthorAgeFilesLines
* Bug 589336 – Add GtkTreeViewColumn:sort-column-id propertyPhilip Withnall2009-07-261-2/+32
| | | | Add the property, change notifications and documentation stubs.
* Move get_cells implementation from deprecated functionAlexander Larsson2009-07-081-16/+17
| | | | | This way the deprecated function calls the new one instead of the other way around, which fixes pltcheck.sh
* Deprecate get_cell_renderers implementationsMatthias Clasen2009-06-151-0/+2
| | | | | These have been superseded by gtk_cell_layout_get_cells. Fixes bug 562335.
* gtk/gtktext.c gtk/gtktextbuffer.c gtk/gtktextlayout.cSven Neumann2008-08-081-2/+2
| | | | | | | | | | | | | | | | | | | | 2008-08-08 Sven Neumann <sven@gimp.org> * gtk/gtktext.c * gtk/gtktextbuffer.c * gtk/gtktextlayout.c * gtk/gtktexttagtable.c * gtk/gtktextview.c * gtk/gtktipsquery.c * gtk/gtktoolbar.c * gtk/gtktoolitem.c * gtk/gtktreeitem.c * gtk/gtktreemodelfilter.c * gtk/gtktreemodelsort.c * gtk/gtktreeviewcolumn.c: use canonical signal names. svn path=/trunk/; revision=21045
* Fix #316087.Kristian Rietveld2008-07-111-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-07-11 Kristian Rietveld <kris@gtk.org> Bug 316087 - Resizing columns is chaotic * gtk/gtktreeprivate.h: add new member fields. * gtk/gtktreeview.c (gtk_tree_view_init), (validate_row): set post validation flag, (gtk_tree_view_size_allocate_columns): rework the size allocation mechanism to only recalculate the expand values if the width of the widget, content or the column configuration has changed, (gtk_tree_view_size_allocate): move call to size_allocate_columns() to before the adjustment updates so the proper width is used after we updated it, (gtk_tree_view_button_press), (gtk_tree_view_motion_resize_column): use the column width minus the expand value for the resized width, (gtk_tree_view_move_column_after): update call to gtk_tree_view_size_allocate_columns(). * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_expand): set use resized width to FALSE. * tests/Makefile.am: * tests/testtreecolumnsizing.c: new interactive test program for testing column resizing with different column configurations. svn path=/trunk/; revision=20818
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-221-1/+1
| | | | | | | | | | | | 2008-06-21 Johan Dahlin <jdahlin@async.com.br> * *.[ch]: Include "config.h" instead of <config.h> Command used: find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g' Rubberstamped by Mitch and Tim svn path=/trunk/; revision=20669
* deprecate GtkDestroyNotify.Michael Natterer2008-06-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | 2008-06-18 Michael Natterer <mitch@imendio.com> * gtk/gtktypeutils.h: deprecate GtkDestroyNotify. * gtk/gtkactiongroup.[ch] * gtk/gtkcombobox.[ch] * gtk/gtkcontainer.[ch] * gtk/gtkliststore.[ch] * gtk/gtkmain.[ch] * gtk/gtkmenu.c * gtk/gtkstock.[ch] * gtk/gtktreedatalist.[ch] * gtk/gtktreemodelfilter.[ch] * gtk/gtktreemodelsort.[ch] * gtk/gtktreeprivate.h * gtk/gtktreeselection.[ch] * gtk/gtktreesortable.[ch] * gtk/gtktreestore.[ch] * gtk/gtktreeview.[ch] * gtk/gtktreeviewcolumn.[ch]: s/GtkDestroyNotify/GDestroyNotify/g. svn path=/trunk/; revision=20448
* gtk/gtkbutton.h gtk/gtkcellrenderer.h gtk/gtkimcontext.h gtk/gtkstyle.hMichael Natterer2008-01-251-27/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* always determine what arrow to show if show_sort_indicator is true.Kristian Rietveld2007-12-171-2/+1
| | | | | | | | | | | 2007-12-17 Kristian Rietveld <kris@imendio.com> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button): always determine what arrow to show if show_sort_indicator is true. (#352738, Chris Vine). svn path=/trunk/; revision=19188
* Plug leak: When reordering the info in the list the old node is removedXan Lopez2007-12-151-1/+1
| | | | | | | | | | | 2007-12-15 Xan Lopez <xan.lopez@nokia.com> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_reorder): Plug leak: When reordering the info in the list the old node is removed but not freed. (#503569) svn path=/trunk/; revision=19184
* Require gtk-doc 1.8Matthias Clasen2007-11-251-3/+3
| | | | | | | | | | | 2007-11-25 Matthias Clasen <mclasen@redhat.com> * configure.in: Require gtk-doc 1.8 * */*.c: Use gtk-doc abbreviations for examples in docs. svn path=/trunk/; revision=19041
* fix up if-condition to only set the true arrow type if show_sort_indicatorKristian Rietveld2007-10-011-1/+1
| | | | | | | | | | | 2007-10-01 Kristian Rietveld <kris@imendio.com> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button): fix up if-condition to only set the true arrow type if show_sort_indicator is TRUE. (#448343, reported by Emil Nowak). svn path=/trunk/; revision=18871
* Rename buildable methods to not clash with widget methods. (#448928,Johan Dahlin2007-06-191-1/+1
| | | | | | | | | | 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
* Add GtkBuilder, fixes #172535Johan Dahlin2007-06-151-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* use GTK_IS_TREE_VIEW_COLUMN() in g_return_if_fail here.Kristian Rietveld2007-06-061-1/+1
| | | | | | | | | | 2007-06-06 Kristian Rietveld <kris@imendio.com> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_queue_resize): use GTK_IS_TREE_VIEW_COLUMN() in g_return_if_fail here. svn path=/trunk/; revision=18054
* new function. (#342471, Lorenzo Gil Sanchez).Kristian Rietveld2007-06-061-0/+21
| | | | | | | | | | | | 2007-06-06 Kristian Rietveld <kris@imendio.com> * gtk/gtktreeviewcolumn.[ch] (gtk_tree_view_column_get_tree_view): new function. (#342471, Lorenzo Gil Sanchez). * gtk/gtk.symbols: updated. svn path=/trunk/; revision=18053
* calculate the depth with the corrected real_cell_area and don't subtractKristian Rietveld2007-03-241-5/+5
| | | | | | | | | | | 2007-03-24 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action): calculate the depth with the corrected real_cell_area and don't subtract horizontal_separator/2. svn path=/trunk/; revision=17562
* add _gtk_tree_view_column_get_focus_area().Kristian Rietveld2007-03-201-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* use TREE_VIEW_DRAG_WIDTH/2 when calculating the drag window positionKristian Rietveld2007-02-141-1/+1
| | | | | | | | | | | 2007-02-14 Kristian Rietveld <kris@imendio.com> * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button): use TREE_VIEW_DRAG_WIDTH/2 when calculating the drag window position instead of a hardcoded value. (Taken from maemo-gtk). svn path=/trunk/; revision=17292
* New function to get the cell renderers of a cell layout.Matthias Clasen2006-12-291-0/+8
| | | | | | | | | | | | 2006-12-29 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkcelllayout.[hc] (gtk_cell_layout_get_cells): New function to get the cell renderers of a cell layout. * gtk/gtktreeviewcolumn.c: * gtk/gtkcellview.c: * gtk/gtkiconview.c: Implement get_cells.
* Support inverting arrows via XSetting. (#377979, Yevgen Muntyan).Kristian Rietveld2006-12-271-2/+8
| | | | | | | | | | | | | | | | | | 2006-12-27 Kristian Rietveld <kris@gtk.org> Support inverting arrows via XSetting. (#377979, Yevgen Muntyan). * gtk/gtksettings.c (gtk_settings_class_init): add new setting gtk-alternative-sort-arrows. * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): add new setting. * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: set new gtk-alternative-sort-arrows setting to true. * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button): invert direction if gtk-alternative-sort-arrows is TRUE.
* draw the indicator if the column has a sort column id (and the model isKristian Rietveld2006-09-241-21/+22
| | | | | | | | | 2006-09-24 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button): draw the indicator if the column has a sort column id (and the model is sortable) or if the user explicitly requested the indicator to be shown. (Fixes #352738, Chris Vine).
* take the cell spacing into account when calculating the available extraKristian Rietveld2006-08-161-1/+6
| | | | | | | | 2006-08-16 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action): take the cell spacing into account when calculating the available extra space. (#350938, patch from Peter Johanson).
* Protect against tree_view being NULL. (#348652, Patrick K. O'Brian, ChrisMatthias Clasen2006-08-061-1/+2
| | | | | | | | 2006-08-05 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_reorder): Protect against tree_view being NULL. (#348652, Patrick K. O'Brian, Chris Wilson)
* only check sort column id if connected to sortable model.Kristian Rietveld2006-05-301-4/+11
| | | | | | | 2006-05-30 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button): only check sort column id if connected to sortable model.
* refactor to work correctly in RTL mode.Kristian Rietveld2006-05-281-9/+42
| | | | | | | | | | 2006-05-28 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_cell_focus): refactor to work correctly in RTL mode. * gtk/gtktreeview.c (gtk_tree_view_move_cursor_left_right): make cursor movement to left/right work correctly in RTL mode.
* add GTK_ARROW_NONE.Kristian Rietveld2006-05-281-15/+25
| | | | | | | | | | 2006-05-28 Kristian Rietveld <kris@gtk.org> * gtk/gtkenums.h: add GTK_ARROW_NONE. * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_column): always "show" the arrow if sort_column_id >= 0, only set arrow type if this column is the column we are currently sorting on. (#331338).
* broken pipeKristian Rietveld2006-05-271-11/+13
|
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Boilerplate reductionMatthias Clasen2006-05-021-45/+4
|
* Reorganize to avoid a possible NULL pointer dereference. (Coverity)Matthias Clasen2006-04-131-52/+27
| | | | | | | 2006-04-12 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_get_neighbor_sizes): Reorganize to avoid a possible NULL pointer dereference. (Coverity)
* deprecated floating/sink API and implemented it in terms of the GObjectTim Janik2005-11-231-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Nov 23 18:55:47 2005 Tim Janik <timj@imendio.com> * gtk/gtkobject.[hc]: deprecated floating/sink API and implemented it in terms of the GObject floating/sink API. * gtk/gtkaboutdialog.c: * gtk/gtkaction.c: * gtk/gtkcellview.c: * gtk/gtkclist.c: * gtk/gtkcolorsel.c: * gtk/gtkcombobox.c: * gtk/gtkfilechooserdefault.c: * gtk/gtkiconview.c: * gtk/gtkinvisible.c: * gtk/gtkitemfactory.c: * gtk/gtklayout.c: * gtk/gtkmenu.c: * gtk/gtkmenutoolbutton.c: * gtk/gtknotebook.c: * gtk/gtkprogress.c: * gtk/gtkrange.c: * gtk/gtkspinbutton.c: * gtk/gtkstatusicon.c: * gtk/gtktext.c: * gtk/gtktextview.c: * gtk/gtktoolbar.c: * gtk/gtktoolbutton.c: * gtk/gtktoolitem.c: * gtk/gtktreeitem.c: * gtk/gtktreeview.c: * gtk/gtktreeviewcolumn.c: * gtk/gtkuimanager.c: * gtk/gtkviewport.c: * gtk/gtkwidget.c: * gtk/gtkwindow.c: ported to use GObject's g_object_ref_sink(). * gtk/gtkcolorsel.c: * gtk/gtkfilechooserdefault.c: * gtk/gtkaboutdialog.c: fixed compiler warnings.
* Fix some issues with background drawing in RTL. (#318781, Eric Cazeaux)Matthias Clasen2005-10-261-3/+19
| | | | | | | | 2005-10-25 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action): Fix some issues with background drawing in RTL. (#318781, Eric Cazeaux)
* Make drag reordering work properly for columns other than the first.Matthias Clasen2005-09-091-5/+1
| | | | | | | | 2005-09-09 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event): Make drag reordering work properly for columns other than the first. (#315054, Dan Winship)
* Intern some more strings.Matthias Clasen2005-09-011-2/+2
| | | | | | | | | 2005-09-01 Matthias Clasen <mclasen@redhat.com> * gdk/*.c: Intern some more strings. * gtk/gtkintl.h: * gtk/*.c: Define an I_() macro and use it instead of the bulky g_intern_static_string().
* Intern type names in code generated by glib-mkenums, too.Matthias Clasen2005-08-311-1/+1
| | | | | | | | | | | | | 2005-08-31 Matthias Clasen <mclasen@redhat.com> * gdk/Makefile.am: * gtk/Makefile.am: Intern type names in code generated by glib-mkenums, too. * gtk/*.c: * gdk/x11/*.c: * gdk/*.c: Intern type names before registering the type to avoid unnecessary copies.
* new function (fixes #169961, reported by Morten Welinder).Kristian Rietveld2005-07-141-0/+18
| | | | | | | 2005-07-14 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeviewcolumn.[ch] (gtk_tree_view_column_queue_resize): new function (fixes #169961, reported by Morten Welinder).
* paint a flat box on the area the treeview got allocated extra verticallyKristian Rietveld2005-07-131-9/+7
| | | | | | | | | | | | 2005-07-13 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeview.c (gtk_tree_view_bin_expose): paint a flat box on the area the treeview got allocated extra vertically (fixes #142063, reported by Brian Bober). * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action): make this function calculate real_cell_area and real_background_area correctly. (fixes #309249, reported by Bernd Demian).
* This commit includes a fix for #169463, Stefan Kost.Kristian Rietveld2005-06-191-0/+2
| | | | | | | | | | | | | | | | | | | 2005-06-19 Kristian Rietveld <kris@gtk.org> This commit includes a fix for #169463, Stefan Kost. * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_get_size): when cell_area is set, return cell_area width/height as width/height, so the focus rectangle will be drawn correctly. * gtk/gtktreeview.c (gtk_tree_view_bin_expose): drop unneeded get of focus-line-width property, (validate_row): take focus_line_width into account. * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action): also take focus_line_width into account when calculating the cell_area y and height (before, we only took it into account when calculating x and width).
* 2005-06-10 Matthias Clasen <mclasen@redhat.com>Matthias Clasen2005-06-101-2/+2
| | | | | | | | | | * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_expand): * gtk/gtktoolbar.c (gtk_toolbar_get_show_arrow): * gtk/gtktextview.c (gtk_text_view_get_iter_at_position): * gtk/gtkstock.c (gtk_stock_set_translate_func): * gtk/gtkspinbutton.c (gtk_spin_button_get_adjustment): * gtk/gtkscrolledwindow.h: * gtk/gtkmenushell.c (gtk_menu_shell_get_take_focus):
* Use canonical names for g_object_notify() as well.Matthias Clasen2005-03-261-9/+9
| | | | | | | | 2005-03-26 Matthias Clasen <mclasen@redhat.com> * gtk/*.c: * gdk/gdkdisplaymanager.c: Use canonical names for g_object_notify() as well.
* Define macros GTK_PARAM_READABLE, GTK_PARAM_WRITABLE, GTK_PARAM_READWRITEMatthias Clasen2005-03-221-16/+17
| | | | | | | | | | | | 2005-03-21 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprivate.h: Define macros GTK_PARAM_READABLE, GTK_PARAM_WRITABLE, GTK_PARAM_READWRITE which are like their G_ counterparts, but also mark the name, nick and blurb as static. * gtk/*.c: Mark param spec strings as static, using the new macros.
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-201-1/+3
| | | | | | | | | | | | | | | | | | 2005-03-20 Matthias Clasen <mclasen@redhat.com> Make PLT-reduction work with gcc4, and don't include everything in gdkalias.h: * gtk/grk.symbols: Group symbols by header and source file. * gtk/makegtkalias.pl: Protect definitions by the same preprocessor symbols used to guard the headers. Move the alias declarations to a separate file which is produced when calling makegtkalias.pl -def * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate this file. * gtk/*.c: Include gtkalias.h after the other headers, include gtkaliasdef.c at the bottom. * gtk/*.h: Small cleanups.
* xMatthias Clasen2005-03-091-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-03-08 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): * gtk/gtkrange.c (gtk_range_class_init): * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init): * gtk/gtktexttag.c (gtk_text_tag_class_init): * gtk/gtktextview.c (gtk_text_view_class_init): * gtk/gtkscrollbar.c (gtk_scrollbar_class_init): * gtk/gtknotebook.c (gtk_notebook_class_init): * gtk/gtkentry.c (gtk_entry_class_init): * gtk/gtkexpander.c (gtk_expander_class_init): * gtk/gtkarrow.c (gtk_arrow_class_init): * gtk/gtkalignment.c (gtk_alignment_class_init): * gtk/gtkbutton.c (gtk_button_class_init): * gtk/gtklabel.c (gtk_label_class_init): * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): x * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): * gtk/gtktreeview.c (gtk_tree_view_class_init): * gtk/gtkbox.c (gtk_box_class_init): * gtk/gtkwindow.c (gtk_window_class_init, gtk_window_class_init): * gtk/gtkcontainer.c (gtk_container_class_init): * gtk/gtkwidget.c (gtk_widget_class_init): * gtk/gtkobject.c (gtk_object_class_init): Use canonical names when registering param specs.
* only reorder on button 1, part of #141937Jonathan Blandford2005-01-041-1/+2
| | | | | | | Tue Jan 4 16:52:14 2005 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event): only reorder on button 1, part of #141937
* Don't mess up the column header state if the button release event isMatthias Clasen2004-12-081-4/+4
| | | | | | | | 2004-12-07 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event): Don't mess up the column header state if the button release event is missed. (#159640)
* gdk/linux-fb/gdkgc-fb.c gdk/win32/gdkgc-win32.cManish Singh2004-11-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Nov 19 14:54:09 2004 Manish Singh <yosh@gimp.org> * gdk/linux-fb/gdkgc-fb.c * gdk/win32/gdkgc-win32.c * gdk/win32/gdkwindow-win32.c * gtk/gtkaboutdialog.c * gtk/gtkaction.c * gtk/gtkactiongroup.c * gtk/gtkcellrendererprogress.c * gtk/gtkcellview.c * gtk/gtkcolorbutton.c * gtk/gtkcombobox.c * gtk/gtkcomboboxentry.c * gtk/gtkentrycompletion.c * gtk/gtkfilechooserbutton.c * gtk/gtkmenutoolbutton.c * gtk/gtkrc.c * gtk/gtksettings.c * gtk/gtkstyle.c * gtk/gtktoggletoolbutton.c * gtk/gtktoolbutton.c * gtk/gtktoolitem.c * gtk/gtktreemodelfilter.c * gtk/gtktreeselection.c * gtk/gtktreeviewcolumn.c * gtk/gtkuimanager.c: get rid of unnecessary casts. * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_set_property): cast away the const for g_value_set_enum. This is after the g_warning, so this is a hack to begin with. * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_set_property): add a cast to GTK_FILE_CHOOSER for impl here.
* somehow this got missed mid-commitJonathan Blandford2004-11-151-1/+0
|
* Set sort_indicator to FALSE when appropriate. (#153714, Reinout vanMatthias Clasen2004-10-031-3/+6
| | | | | | | | | 2004-10-03 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_setup_sort_column_id_callback): Set sort_indicator to FALSE when appropriate. (#153714, Reinout van Schouwen)
* Silently ignore info being NULL. This is unavoidable with the currentMatthias Clasen2004-10-011-1/+2
| | | | | | | | | | | 2004-10-01 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes): * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_clear_attributes): Silently ignore info being NULL. This is unavoidable with the current design where we have every implementation of layout_clear call layout_clear_attributes, and also delegate calls to dependent cell layouts. (#154191, Martyn Russell)