summaryrefslogtreecommitdiff
path: root/eel/eel-canvas.c
Commit message (Collapse)AuthorAgeFilesLines
* general: Uniformize case code styleAntónio Fernandes2021-07-111-0/+4
| | | | | | | | There are a few non-braced single-statement in the final cases, which have gone unnoticed until detected by a recent uncrustify update. Let's add the missing braces around single-statements even if it's the last case.
* general: Clean up signal handler disconnectionJoshua Lee2020-07-081-5/+1
| | | | | | | Make use of GLib's new g_clear_signal_handler() function to simplify nautilus' signal handler disconnection and reduce unneccessary code. Fixes: #1522
* general: Run uncrustify scriptOndrej Holy2020-04-051-3/+4
| | | | | There are some style issue since the last run. Let's run it again before enabling style-check CI job.
* eel-canvas: Remove redundant comparisonVilhelm Prytz2020-03-291-1/+1
| | | | | | Comparison is always false because positions >= 1 Makes comparison redundant
* eel: Remove superfluous includeErnestas Kulik2018-05-281-1/+0
| | | | | gdk/gdkprivate.h is no longer a thing in GTK+ 4 and doesn’t seem to be at all required.
* general: don’t shadow variablesErnestas Kulik2018-03-011-1/+0
| | | | | | | Shadowing variables is error-prone, since one might mean to refer to a variable that was declared earlier, but has the same name. Additionally, being more strict about variable scoping can help make the code more readable.
* eel: remove unused codeErnestas Kulik2018-01-021-264/+20
| | | | Additionally, this commit makes some unused public functions static.
* general: adjust uncrustify styleCarlos Soriano2016-09-061-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=770564
* general: run uncrustifyCarlos Soriano2016-08-291-2247/+2869
| | | | | | | | And make the style of Nautilus the same for all files. Hopefully we can fix all the style issues we can find in the next days, so expect a little of movement on this. https://bugzilla.gnome.org/show_bug.cgi?id=770564
* eel-canvas: don't override deprecated functionsErnestas Kulik2016-05-031-31/+0
| | | | | | | | | | AtkComponentIface's {add,remove}_focus_handler should not be overridden, since ATK 2.9.4, as atk_component_{add,remove}_focus_handler() are deprecated. This commit removes deprecated virtual function overrides. https://bugzilla.gnome.org/show_bug.cgi?id=762236
* eel-canvas: use GdkSeat operationsErnestas Kulik2016-05-031-44/+39
| | | | | | | | | Some GdkDisplay operations have been deprecated in GDK 3.20. This commit replaces the deprecated code in eel_canvas_item_grab() and eel_canvas_item_ungrab() functions with new GdkSeat operations. https://bugzilla.gnome.org/show_bug.cgi?id=762235
* general: remove vim modelinesCarlos Soriano2016-04-041-1/+0
| | | | | | | | | | | | | Vim and emacs modelines are used to specify some of the code style in the code. However, this is misleading and poorly supported since nautilus had a mix of code style for some time. Also, the mode lines doesn't specify the whole code style, so we will need to use a different tool as well to specify the whole code style. For that, we can just use a different tool for everything. So remove the mode lines, and in a short future we will reestyle the nautilus code to have a single code style, and use a tool like editorconfig to specify the whole code style.
* eel-canvas: remove background draw handlingCarlos Soriano2016-02-151-48/+0
| | | | | | | | This seems no longer necessary. It looks like it was done to avoid flashing when redrawing, but probably this was fixed sometime in the past, so a transparent background in a widget doesn't flash anymore. https://bugzilla.gnome.org/show_bug.cgi?id=761965
* Updated FSF's addressDaniel Mustieles2014-01-311-2/+1
|
* Fix rename entry positionAlexander Larsson2013-11-041-1/+11
| | | | | | | We need to not modify the cairo_t when we propagate up to the parent class as this affects where GtkLayout draws the child widgets. https://bugzilla.gnome.org/show_bug.cgi?id=705464
* Store the correct current_item if it has changed. It is incorrect toSrinivasa Ragavan2013-07-171-0/+1
| | | | | | | ignore the new current item just because the mouse is down. It is later used for right click. Fixes bgo #704289.
* eel-canvas: fix double tap with touchscreen devicesCosimo Cecchi2013-03-081-1/+3
| | | | | | | Code here is not doing what the comment (and the symmetric part in the RELEASE case) says. https://bugzilla.gnome.org/show_bug.cgi?id=688281
* Normalize signal namesWilliam Jon McCann2013-01-221-6/+6
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=692234
* eel-canvas: use GtkContainerAccessible for EelCanvasAccessibleCosimo Cecchi2013-01-031-384/+2
| | | | Removes tons of boilerplate code not needed anymore.
* Remove unnecessary gdk_threads_enter/leave callsCosimo Cecchi2012-08-301-4/+0
| | | | Since we don't ever call gdk_threads_init()
* eel: don't use GDK_THREADS macrosCosimo Cecchi2012-07-311-2/+2
| | | | Use the function equivalents.
* a11y: add missing prototypeCosimo Cecchi2012-06-081-0/+2
|
* a11y: fix accessibility implementation for NautilusIconContainerCosimo Cecchi2012-06-071-87/+24
| | | | | | | | | | Clean up a11y code and make sure inheritance for EelCanvasAccessible->NautilusIconContainerAccessible and for EelCanvasItemAccessible->NautilusIconCanvasItemAccessible work properly. This makes the ATK state machinery in EelCanvasItemAccessible work again, which fixes https://bugzilla.gnome.org/show_bug.cgi?id=677509
* eel-canvas: ignore extra mouse button eventsNelson Benitez Leon2012-04-041-0/+4
| | | | | | | | | | Ignore button press/release events for mouse buttons greater than 5 so allowing forward and backward mouse buttons to work over icons. Part of bug 660006 Signed-off-by: Nelson Benitez Leon <nbenitezl@gmail.com>
* eel: Queue resizes on the canvas as elements change visibilityCarlos Garnacho2012-01-161-2/+19
| | | | | | | | Not queueing resizes may play oddly with the size request caches in GTK+, resulting in gtk_widget_get_preferred_width/height returning 0 even after the canvas was populated. https://bugzilla.gnome.org/show_bug.cgi?id=667831
* Fix accessibility for gtk 3.2, and send object:state-changed:selectedMike Gorse2011-09-191-45/+331
| | | | | | | | | | | The code to derive the EelCanvasAccessible class no longer works as of gtk+ 3.1.9. Currently the recommended behavior is to derive from GtkAccessible. Also, canvas items should send object:state-changed:selected events when selected and unselected; otherwise AT-SPI will not update its cache. https://bugzilla.gnome.org/show_bug.cgi?id=650897
* all: use g_cclosure_marshal_generic() instead of generating marshallersCosimo Cecchi2011-07-011-3/+1
|
* all: silence new warnings from GCC 4.6Cosimo Cecchi2011-01-251-5/+0
| | | | | | GCC 4.6 introduced a new warning about variables declared and initialized, but not really used in the function body. Remove all of these occurrences to build cleanly.
* canvas: fix an ACTIVE -> NORMAL typo from GtkStyleContext conversionCosimo Cecchi2011-01-191-1/+1
|
* canvas: don't use deprecated GDK grab APICosimo Cecchi2010-12-261-19/+28
|
* Fix cairo-gobject.h includeColin Walters2010-12-171-1/+1
| | | | | | | $ pkg-config --cflags cairo-gobject -pthread -I/src/build/jhbuild/include/cairo $ ls /src/build/jhbuild/include/cairo/cairo-gobject.h /src/build/jhbuild/include/cairo/cairo-gobject.h
* eel-canvas: build fix for gdk_window_get_geometry API changeCosimo Cecchi2010-12-061-1/+1
|
* eel-canvas: port to GtkStyleContextCosimo Cecchi2010-12-061-36/+5
|
* canvas: remove commented out codeCosimo Cecchi2010-11-011-13/+0
|
* canvas: use GTK_LAYOUT casts instead of going through the parent structCosimo Cecchi2010-10-301-17/+17
| | | | That's just confusing.
* general: use new GtkScrollable interfaceCosimo Cecchi2010-10-301-16/+16
|
* [eel] Port the eel canvas to rendering-cleanup-nextChristian Persch2010-09-301-40/+87
|
* canvas: don't use GtkObjectCosimo Cecchi2010-09-301-30/+41
| | | | | This implies adding a 'destroy' signal to EelCanvasItem, with similar semantics to gtk_object_destroy()
* [eel] use glib's i18n API instead of eel'sCosimo Cecchi2010-08-191-1/+1
|
* [eel] port EelCanvas to cairo drawingBenjamin Otte2010-08-131-68/+9
|
* Fix build with GTK+3 master, use cairo_region_t.Cosimo Cecchi2010-07-011-2/+2
|
* [eel] GSEAL eel-canvas.Bastien Nocera2010-06-111-121/+152
|
* Remove deprecated GTK+ symbols (#565038).Cosimo Cecchi2010-04-261-10/+12
|
* Replace deprecated GTK_OBJECT_TYPE with G_OBJECT_TYPEThomas Hindoe Paaboel Andersen2010-01-191-1/+1
| | | | GNOME bug 565038
* Update to latest foocanvasAlexander Larsson2009-09-071-115/+138
| | | | | This has some cleanups and fixes a memory leak that was introduced in the eel copy by removing gtk_object_sink.
* Remove deprecated GDK/GTK+ symbolsCosimo Cecchi2009-04-211-10/+7
| | | | | | Remove all uses of deprecated GDK and GTK+ symbols, replacing them with the currently supported equivalents. Based on a patch from Tal Benavidor (#565038).
* eel/ Import eel into nautilus.Alexander Larsson2008-12-151-0/+3979
2008-12-15 Alexander Larsson <alexl@redhat.com> * Makefile.am: * acconfig.h: * configure.in: * eel/ * libnautilus-private/Makefile.am: Import eel into nautilus. svn path=/trunk/; revision=14815