summaryrefslogtreecommitdiff
path: root/gtk/gtktreeviewcolumn.c
Commit message (Collapse)AuthorAgeFilesLines
* Use standard cursor namesMatthias Clasen2015-07-261-2/+3
| | | | | | | This changes GTK+ to use gdk_cursor_new_from_name() with the 'standard' css names, instead of GdkCursorType. https://bugzilla.gnome.org/show_bug.cgi?id=652085
* GtkTreeViewColumn: Fix a documentation typoMatthias Clasen2015-07-041-4/+4
|
* Stop using GDK_POINTER_MOTION_HINT_MASK in widgetsMatthias Clasen2015-03-221-1/+0
| | | | | | It is deprecated and no longer needed, and,as observed in https://bugzilla.gnome.org/show_bug.cgi?id=746253 it interferes with turning off event compression.
* GtkTreeViewColumn: a better way to avoid overlapMatthias Clasen2014-07-101-46/+10
| | | | | | | The overlap was caused by using pack-end for the arrow, which causes it to be allocated from the other end. Avoid the problem by using pack-start for both the title and the arrow, and reordering them according to xalign.
* GtkTreeView: Avoid overlapping sort indicatorMatthias Clasen2014-07-101-0/+30
| | | | Hide the sort indicator when it would overlap the column title.
* gtk: Don't use GObjectClass.constructorJasper St. Pierre2014-06-261-16/+6
| | | | Use the newer constructed instead, which has a fast path in GObject.
* treeviewcolumn: Avoid a device position queryCarlos Garnacho2014-06-111-5/+2
| | | | | This happens in an event handler, and the button event should be expected to have the right coordinates on the event window already.
* GtkTreeViewColumn: Use G_PARAM_EXPLICIT_NOTIFYMatthias Clasen2014-06-091-41/+34
|
* Revert "Use minimum/natural size semantics"Matthias Clasen2014-06-011-31/+31
| | | | | | | This reverts commit 6d53c2339f79baa0b295ecc614f41f9daab2e132. https://bugzilla.gnome.org/show_bug.cgi?id=731054 showed some major regressions caused by this commit.
* gtk: fix several out argument annotationsEvan Nemerson2014-05-271-4/+4
| | | | | | | These mostly just switch from allow-none to optional, nullable, or both, as necessary. https://bugzilla.gnome.org/show_bug.cgi?id=730745
* gtk: fix many callback annotations to include closure informationEvan Nemerson2014-05-271-1/+1
| | | | | | | | | Without this information introspection-based consumers don't realize they can include context information, but instead think that they receive an extra gpointer argument (which they don't know how to handle). https://bugzilla.gnome.org/show_bug.cgi?id=730745
* Deprecate GtkAligmentMatthias Clasen2014-05-231-3/+6
| | | | | | This has been dangling ever since 3.0. https://bugzilla.gnome.org/show_bug.cgi?id=645781
* treeview: Don't show missing imagesMatthias Clasen2014-05-171-0/+5
| | | | | | | | When a model is sortable, but the the column is not currently used for sorting, we want to reserve the space for showing the sort indicator. But we currently set the icon to 'missing-image', which is not great to show all over the place. So, just set the opacity to 0.
* Drop GtkArrow use in GtkTreeViewColumnMatthias Clasen2014-05-131-8/+6
| | | | | This is in preparation for GtkArrow getting deprecated. https://bugzilla.gnome.org/show_bug.cgi?id=729564
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-25/+25
| | | | Instead of Return value:
* docs: use apostrophe in *'reWilliam Jon McCann2014-02-071-1/+1
|
* docs: use apostrophes in *n'tWilliam Jon McCann2014-02-071-1/+1
|
* docs: use proper apostropheWilliam Jon McCann2014-02-071-3/+3
| | | | https://wiki.gnome.org/Design/OS/Typography
* docs: Use markup for linksWilliam Jon McCann2014-02-071-2/+2
|
* GtkTreeViewColumn: fix critical warningClaudio Saavedra2014-02-061-2/+2
| | | | | | Do not call _column_autosize() if there is no treeview set yet. https://bugzilla.gnome.org/show_bug.cgi?id=723637
* docs: use proper quotesWilliam Jon McCann2014-02-051-5/+5
|
* docs: Identify examples that are C codeWilliam Jon McCann2014-01-291-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=723119
* docs: don't use <emphasis>William Jon McCann2014-01-281-1/+1
| | | | It is a little heavy handed. The text can speak for itself.
* docs: fix dnd docs linksWilliam Jon McCann2014-01-211-2/+3
|
* GtkTreeViewColumn: start padding at 0Ryan Lortie2013-09-301-1/+1
| | | | | | | | | | | | | | If we start with a padding of -1 then it can leak out of the size allocation request for the column when the treeview is empty. The GtkTreeView will then collect these -1 values and add them together, returning -n where 'n' is the number of columns. This is usually not a problem because treeviews tend to be used with a scrollbar and the width of the scrollbar will be added to this number bringing it into positive territory again. On Ubuntu, with overlay scrollbars, this is not the case, however. https://bugzilla.gnome.org/show_bug.cgi?id=703062
* Improve struct packing in various placesMatthias Clasen2013-09-211-1/+1
|
* gtk: Use new macros for defining private dataEmmanuele Bassi2013-07-091-5/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702996
* Deprecate gtk_widget_push_composite_child & friendsTristan Van Berkom2013-04-081-2/+0
| | | | | | | | Deprecate gtk_widget_push_composite_child, gtk_widget_pop_composite_child, gtk_widget_set_composite_name, gtk_widget_get_composite_name. This API is just bloat and was never useful, this patch deprecates it and removes all internal calls to the composite child APIs
* Add gtk_widget_(un)register_windowAlexander Larsson2013-02-071-2/+2
| | | | | | | | | | | | This replaces the previously hardcoded calls to gdk_window_set_user_data, and also lets us track which windows are a part of a widget. Old code should continue working as is, but new features that require the windows may not work perfectly. We need this for the transparent widget support to work, as we need to specially mark the windows of child widgets. https://bugzilla.gnome.org/show_bug.cgi?id=687842
* docs: Update docs for recent treeviewcolumn changesJohn Lindgren2013-01-171-21/+30
|
* docs: Don't mark up numbersBenjamin Otte2013-01-171-1/+1
|
* treeviewcolumn: always hide button widget if the header is not shownCarl-Anton Ingmarsson2013-01-171-3/+3
| | | | | | Fixes the following warning from appearing: Gtk-WARNING **: GtkTreeView 0xb44010 is mapped but visible child GtkButton 0xad9320 is not mapped
* Use minimum/natural size semanticsJohn Lindgren2013-01-151-31/+31
| | | | | | | | | | | | | | | | Rewrites gtk_tree_view_column_request_width() and gtk_tree_view_size_allocate_columns() to respect the minimum and natural sizes that are already being returned by gtk_cell_area_context_get_preferred_width(). The convoluted logic explained (not!) by this comment has been removed: “Only update the expand value if the width of the widget has changed, or the number of expand columns has changed, or if there are no expand columns, or if we didn't have an size-allocation yet after the last validated node.” This logic seems to have been a workaround for the “jumping” behavior fixed in 16195ad and is no longer necessary. https://bugzilla.gnome.org/show_bug.cgi?id=691751
* Use fixed width for resizingJohn Lindgren2013-01-151-51/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes the hidden “resized-width” and “use-resized-width” properties from GtkTreeViewColumn and instead uses the “fixed-width” property to serve the same purpose. “fixed-width”, if set, will now override the auto-sized width (-1 is now a legal value meaning “not set”). Additional “cleanups” in this commit: 1. When the user resizes the column the “expand” property is now also set to FALSE, in order to prevent the column from suddenly jumping to a different width when the window is resized. 2. The code that translated mouse movement to column sizes has been simplified: the change in column width is now calculated directly from the distance the mouse cursor has traveled. Weird behavior that might have happened previously if the position of the column changed during resizing, is now prevented. 3. There was some lengthy logic handling the keyboard shortcuts used to resize treeview columns, which would call gtk_widget_error_bell() once the minimum or maximum width was reached. Instead of rewriting these checks I simply set the “fixed-width” property to what was requested, relying on the fact that it is already clamped between the minimum and maximum width during size allocation. I will greatly surprised if anyone notices the missing error bell. https://bugzilla.gnome.org/show_bug.cgi?id=691751
* treeviewcolumn: Show button if we're visibleBenjamin Otte2013-01-081-0/+2
| | | | Previously, we were happily working with a hidden button.
* Make accessible implementations publicMatthias Clasen2012-12-271-1/+1
| | | | | | | | | | | | | | This commit exposes the get_type() functions and standard headers for accessible implementations. This makes it possible to derive from the GTK accessible implementations without GType magic tricks. This is necessary, because we require the a11y type hierarchy to be parallel to the widget type hierarchy. So, if you derive a widget and need to adjust its a11y implementation, you have to be able to derive its accessible implementation. This commit probably exposes more than is absolutely necessary, it also exposes accessibles of widgets that are unlikely candidates for deriving from.
* docs: fix a number of typos and obsolete referencesCosimo Cecchi2012-07-021-3/+3
|
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* docs: fix typos in functions' descriptionsJiří Klimeš2012-02-201-2/+2
| | | | | | | gtk_tree_view_set_hover_expand() gtk_tree_view_column_set_clickable() Signed-off-by: Jiří Klimeš <jklimes@redhat.com>
* gtktreeviewcolumn: Use symbolic names for button numbersCarlos Garcia Campos2012-01-271-1/+1
|
* treeview: Call a11y functions for culmn changes directlyBenjamin Otte2011-11-161-1/+6
| | | | | | | | | This way, the a11y code knows if a column was reordered, added or removed and can do the right things instead of trying to guess and getting it wrong. Also, this patch finalizes the changes so that only visible columns exist to the accessibility interface.
* Remove one instance of gdk_window_get_pointerMatthias Clasen2011-11-021-4/+5
|
* GtkTreeViewColumn: dispose: Remove from the treeviewKjell Ahlstedt2011-10-061-0/+6
| | | | | | This handles the case (with gtkmm) that the GtkTreeViewColumn is destroyed before the GtkTreeView is destroyed. Bug #659672
* GtkTreeViewColumn: initialize a variableCosimo Cecchi2011-09-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Shut up valgrind complaining about uninitialized values ==5330== Conditional jump or move depends on uninitialised value(s) ==5330== at 0x624FF4C: gdk_window_move_resize_internal (gdkwindow.c:6037) ==5330== by 0x62502C3: gdk_window_move_resize (gdkwindow.c:6274) ==5330== by 0x5E4FBB5: _gtk_tree_view_column_allocate (gtktreeviewcolumn.c:2169) ==5330== by 0x5E3846B: gtk_tree_view_size_allocate_columns (gtktreeview.c:2631) ==5330== by 0x5E43D76: gtk_tree_view_size_allocate (gtktreeview.c:2686) ==5330== by 0x7F03959: g_closure_invoke (gclosure.c:774) ==5330== by 0x7F16446: signal_emit_unlocked_R (gsignal.c:3202) ==5330== by 0x7F20256: g_signal_emit_valist (gsignal.c:3003) ==5330== by 0x7F20421: g_signal_emit (gsignal.c:3060) ==5330== by 0x5E6DFBE: gtk_widget_size_allocate (gtkwidget.c:4886) ==5330== by 0x5D94ADD: gtk_scrolled_window_allocate_child (gtkscrolledwindow.c:1506) ==5330== by 0x5D95299: gtk_scrolled_window_size_allocate (gtkscrolledwindow.c:1704) ==5330== by 0x7F03959: g_closure_invoke (gclosure.c:774) ==5330== by 0x7F16446: signal_emit_unlocked_R (gsignal.c:3202) ==5330== by 0x7F20256: g_signal_emit_valist (gsignal.c:3003) ==5330== by 0x7F20421: g_signal_emit (gsignal.c:3060) ==5330== by 0x5E6DFBE: gtk_widget_size_allocate (gtkwidget.c:4886) ==5330== by 0x5C62708: gtk_box_size_allocate (gtkbox.c:658) ==5330== by 0x7F03959: g_closure_invoke (gclosure.c:774) ==5330== by 0x7F16446: signal_emit_unlocked_R (gsignal.c:3202) ==5330== Uninitialised value was created by a stack allocation ==5330== at 0x5E4FA8D: _gtk_tree_view_column_allocate (gtktreeviewcolumn.c:2139)
* Documentation fixesMatthias Clasen2011-09-251-10/+10
| | | | | Mostly making sure that return values and varargs don't loose their docs.
* GtkTreeViewColumn: fix x_offset returned by cell_get_position()Michael Natterer2011-09-251-6/+1
| | | | | | | | Fixes #640741 - gtk_tree_view_column_get_cell_position() seems to be broken It is supposed to return the offset within the column, but returned the offset within the tree, changed by allocation.x of the column's button (which I don't really unserstand and was clearly not working).
* GtkTreeViewColumn: fix return value of gtk_tree_view_column_cell_get_position()Michael Natterer2011-09-251-0/+3
| | | | | Return FALSE again if the passed in cell is not part of the column. It was always returning TRUE since GtkCellArea was introduced.
* More include cleanupsMatthias Clasen2011-08-281-1/+1
|
* gtk: Use const instead G_CONST_RETURNJavier Jardón2011-06-101-1/+1
|
* Add API to get x position of treeview columnsMatthias Clasen2011-06-101-0/+37
| | | | Their width was already available.