summaryrefslogtreecommitdiff
path: root/gtk/gtkiconview.c
Commit message (Collapse)AuthorAgeFilesLines
* gtk: Don't call gdk_window_process_updates() when scrollingBenjamin Otte2012-04-051-16/+0
| | | | | | | This can cause lagging when scrolling as it causes us to repaint on every scroll event. This wasn't historically a great problem, but with smooth scrolling we get a lot more events, so this now creates visible lagging on slower machines.
* iconview: Don't resize on size allocationBenjamin Otte2012-03-161-2/+0
| | | | | | | Let's see how much this breaks. But then, it also fixes things, so more power to me! https://bugzilla.gnome.org/show_bug.cgi?id=672173
* iconview: Fix autoscrollBenjamin Otte2012-03-031-6/+6
| | | | ... when the iconview is not the only child in it's parent GdkWindow.
* types: Move GtkAdustment declaration to gtktypes.hBenjamin Otte2012-03-031-0/+1
| | | | | ... and make all the headers to not include gtkadjustment.h anymore. Of course, also include it in the source files instead.
* iconview: set GDK_SMOOTH_SCROLL_MASKCarlos Garnacho2012-03-011-6/+7
| | | | | This is so smooth scroll events are send/handled by the parent GtkScrolledWindow if any.
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* iconview: Set background on the widget's windowCarlos Garnacho2012-02-231-0/+1
| | | | | | The widget window is usually covered by the bin_window. Its background color will become relevant when we introduce kinetic scrolling with overshooting.
* Documentation: Correct references to properties.Murray Cumming2012-02-151-1/+1
| | | | | | | | These should use :, not ::, though signals would use ::. See http://developer.gnome.org/gtk-doc-manual/unstable/documenting_syntax.html.en and http://developer.gnome.org/gtk-doc-manual/unstable/documenting_symbols.html.en
* gtkiconview: Use symbolic names for button numbersCarlos Garcia Campos2012-01-271-3/+3
|
* gtk/*: Use g_list_free_full() convenience functionJavier Jardón2012-01-051-4/+2
|
* iconview: Use the widget state flags as a base for drawing itemsRui Matos2011-12-191-2/+4
|
* iconview: Stop setting state flags on the style context for drawingRui Matos2011-12-191-3/+0
|
* iconview: Simplify adjustment monitoring for accessibleBenjamin Otte2011-12-191-12/+2
|
* iconview: Split out iconview accessibleBenjamin Otte2011-12-191-1830/+64
|
* GtkIconView: fix a memory corruption in the drag-n-drop codeClaudio Saavedra2011-12-011-1/+6
| | | | | | | You shall free with g_slice_free() what you allocate with g_slice_new(). https://bugzilla.gnome.org/show_bug.cgi?id=665338
* GtkIconView: Fix a segfaultMatthias Clasen2011-11-231-8/+22
| | | | | Keynav on an empty iconview was causing segfaults. This was reported in https://bugzilla.gnome.org/show_bug.cgi?id=664456
* iconview: Keep the device for dnd autoscrollBenjamin Otte2011-11-021-6/+15
| | | | | This is necessary to query the device's coordinates when doing the scrolling.
* iconview: layout items immediately when setting a GtkTreeModelCosimo Cecchi2011-11-011-1/+1
| | | | | | | | | As the draw handler expects the items to be laid out already, we cannot queue a layout here to avoid a race condition with the resize that is queued immediately after, which in turn would lead to a segfault later in the paint_item() implementation. https://bugzilla.gnome.org/show_bug.cgi?id=663138
* gtk: remove the private GTK_EXTEND/MODIFY_SELECTION_MOD_MASKMichael Natterer2011-09-271-5/+24
| | | | and use the new public modifier abstraction API instead.
* app: abstract which modifiers are used for extending and modifying selectionsMichael Natterer2011-09-261-23/+23
| | | | | | which are SHIFT and MOD2 on the Mac, and SHIFT and CONTROL otherwise. Use the new define all over the place and rename variables and members to not say "shift" or "control".
* iconview: add support for prelight cellsCosimo Cecchi2011-09-151-1/+43
| | | | | | | | | | Render GtkIconView cell items with the prelight state flag when they're being mouse hovered. This works basically in the same way it's done for GtkTreeView cells, and e.g. GtkCellRendererPixbuf will need to have its follow-state property to opt in to prelight rendering. https://bugzilla.gnome.org/show_bug.cgi?id=615501
* iconview: Don't rturn TRUE from draw handlerBenjamin Otte2011-09-141-3/+1
|
* iconview: fix a typo while removing the a11y adjustment weak refCosimo Cecchi2011-09-061-1/+1
| | | | | | The code sets old_adj_ptr to the location containing the old weak ref, but then wants to remove a weak ref from &view->old_hadj, causing warnings when disposing the widget.
* a11y: don't return random numbersMatthias Clasen2011-08-291-0/+3
| | | | Return 0 for the image size if we don't have a pixbuf to measure.
* Squash two compilation warnings about possibly-uninitialzedColin Walters2011-08-251-1/+1
|
* Make focus rectangles optionalMatthias Clasen2011-08-101-5/+5
| | | | | | | | | | | | | | | | | | This commit introduces a new setting, gtk-visible-focus, backed by the Gtk/VisibleFocus X setting. Its three values control how focus rectangles are displayed. 'always' is equivalent to the traditional GTK+ behaviour of always rendering focus rectangles. 'never' does what it says, and is intended for keyboardless situations, e.g. tablets. 'automatic' hides focus rectangles initially, until the user interacts with the keyboard, at which point focus rectangles become visible. https://bugzilla.gnome.org/show_bug.cgi?id=649567
* Use G_DEFINE_TYPE for GtkIconViewItemAccessibleMatthias Clasen2011-07-251-77/+24
|
* Minor cleanupsMatthias Clasen2011-07-251-23/+19
|
* Rework AtkText implementationMatthias Clasen2011-07-251-545/+129
| | | | | Use a PangoLayout, instead of storing a text buffer per item. And use gtkpango api instead of implementing it all ourselves.
* Drop some grandiosity from the AtkAction implementationMatthias Clasen2011-07-241-65/+19
| | | | There is only one action here, no need to pretend otherwise.
* Use G_DEFINE_TYPE for GtkIconViewAccessibleMatthias Clasen2011-07-241-63/+30
|
* Drop GtkIconViewAccessiblePrivateMatthias Clasen2011-07-241-125/+89
| | | | Just put the members in GtkIconViewAccessible itself.
* Move GtkBuildable implementation up before accessibilityMatthias Clasen2011-07-241-28/+28
| | | | Just code rearrangement, no other changes.
* Drop unneeded includesMatthias Clasen2011-07-141-1/+0
| | | | We no longer use the private GtkAccessible api here.
* iconview: make it possible for selected cells to render a borderCosimo Cecchi2011-07-081-0/+6
| | | | | | Call gtk_render_frame() after gtk_render_background() there. https://bugzilla.gnome.org/show_bug.cgi?id=654179
* Drop the factory from the icon view accessibleMatthias Clasen2011-07-051-76/+0
|
* Convert GailContainer to GtkContainerAccessibleMatthias Clasen2011-07-051-22/+8
|
* GtkIconViewPrivate: Improve struct packingMatthias Clasen2011-04-121-6/+5
|
* More patchwork for icon view subclasses that access the icon view api ↵Tristan Van Berkom2011-02-251-2/+4
| | | | | | | | prematurely. In this patch we adress rows_reordered() and row_deleted() callbacks (since some icon view subclasses manipulate the connected treemodel from _init()).
* More patchwork to ensure GtkIconView subclasses can use the icon view apiTristan Van Berkom2011-02-251-4/+8
| | | | from the subclass's instance structure initializer
* Added documentation to "cell-area" construct-only properties.Tristan Van Berkom2011-02-241-0/+3
| | | | | Indicate what kind of area will be used by default if none is provided by the user.
* Add more defensive code to avoid accessing GtkIconView's cell area before it ↵Tristan Van Berkom2011-02-231-25/+62
| | | | | | | | | exists. Adding these cases here to cater to icon view subclasses that want to access icon view APIs from the instance structure initializer instead of properly waiting for the super class to initialize and adding renderers from the ->constructor() vfunc.
* Remove a leaking get_name implementationMatthias Clasen2011-02-171-25/+4
| | | | This was leaking a lot of memory; just rely on atk_object_get_name.
* Use _gtk_accessible_set_factory_type for GtkIconViewMatthias Clasen2011-02-171-21/+4
|
* Always chain up in ::style-updatedMatthias Clasen2011-02-071-0/+2
| | | | | This was not handled consistently, but the default handler does useful things, so we should always chain up.
* Bandaid fix for icon view subclassingMatthias Clasen2011-01-311-26/+53
| | | | | | | | | | | | I've decided that it is isn't feasible to make cell areas runtime-settable in the time we have left before 3.0, therefore, I'm going with the approach to allow init() functions to instantiate the default cell area and issue a warning if a construct property is ignored. This is not ideal, but it keeps existing icon view and combo box subclasses working. https://bugzilla.gnome.org/show_bug.cgi?id=639139
* Make GtkIconView use GtkStyleContextCarlos Garnacho2011-01-271-102/+104
|
* Make GtkCellArea use GtkStyleContextCarlos Garnacho2011-01-271-2/+0
| | | | | | gtk_cell_area_[gs]et_style_detail() is no longer needed, as the passed widget's context would already have all necessary info.
* Silence new gcc warningsMatthias Clasen2011-01-231-75/+60
| | | | | gcc 4.6.0 has started to warn about set-but-unused variables. So don't do that, then.
* [GI] Add missing (out) and (array) annotationsPavel Holejsovsky2011-01-201-15/+19
|