summaryrefslogtreecommitdiff
path: root/eel
Commit message (Collapse)AuthorAgeFilesLines
* files-view: change "New Folder /w Selection" to offer a nameNeil Herald2016-07-102-0/+144
| | | | | | | | | | | | | New Folder with Selection currently doesn't offer a folder name. It would be better if it suggested a folder name based on the files that are selected. With this change, it now looks for a common filename prefix of the selected files, and pre-populates the folder name entry with that. If no common prefix is found that is greater than 3 characters long, the folder name entry will be left blank. https://bugzilla.gnome.org/show_bug.cgi?id=747907
* 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-032-52/+46
| | | | | | | | | 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-0430-39/+9
| | | | | | | | | | | | | 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-152-53/+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
* file: refactor eel-partition for better ownership managementCarlos Soriano2015-12-113-130/+0
| | | | | | | | | | | | | Instead of a generic function to filter GLists, implement a simpler and clearer filter function for file lists, since it was the only use of that function. In this way the ownership of files and directories are clearer since it always returns a new allocated nautilus file list, and also it always uses nautilus_file_ref instead of the generic g_object_ref to match what we do everywhere else in nautilus, so it's not confusing when breaking at nautilus_file_ref/unref for ref counting debugging. This change fixes multiple leaks on nautilus files catched by valgrind.
* project: replace deprecated GtkMisc callsGeorges Basile Stavracas Neto2015-07-211-1/+1
| | | | | | | | | | | GtkMisc is deprecated since 3.14 release, being replaced by GtkWidget's halign & valign, and GtkLabel's xalign & yalign. Nautilus, however, did not updated its codebase to match the new deprecations. Remove any reminescent gtk_misc* calls from the codebase.
* eel: remove eel_embed_image_in_frame()Cosimo Cecchi2015-05-242-120/+0
| | | | It's unused now.
* eel: remove some unused APICosimo Cecchi2015-05-232-77/+1
|
* eel: remove unused EelEditableLabelCosimo Cecchi2015-05-233-4375/+0
| | | | | This was only used for in-place renaming inside the canvas container, which does not exist any more. Remove it.
* Don't mention FSF addressCosimo Cecchi2014-02-172-4/+2
| | | | | | Use the website instead. https://bugzilla.gnome.org/show_bug.cgi?id=721518
* Updated FSF's addressDaniel Mustieles2014-01-3130-68/+30
|
* EelEditableLabel: Render backgroundAlexander Larsson2013-11-061-0/+5
| | | | | | Without this the rename widget background is always transparent, which makes it very hard to read on e.g. the desktop with a background image.
* 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
* eel: don't use deprecated GtkStock and GtkImageMenuItemCosimo Cecchi2013-08-132-8/+7
|
* Remove extraneous separator from editable label context menuCosimo Cecchi2013-08-031-4/+0
|
* 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.
* build: stop using INCLUDES, deprecated by automake 1.7Andrés G. Aragoneses2013-06-181-1/+1
| | | | | | | | | | | | | | | | | | | We already depend on automake 1.9, so using the replacement of INCLUDES (AM_CPPFLAGS) won't hurt, especially now that it is a warning shown by default since automake 1.13, as evidenced by this build log of mine: Makefile.am: installing './INSTALL' eel/Makefile.am:5: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') eel/Makefile.am: installing './depcomp' parallel-tests: installing './test-driver' libnautilus-extension/Makefile.am:7: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') libnautilus-private/Makefile.am:5: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') nautilus-sendto-extension/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') src/Makefile.am:13: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') test/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') Signed-off-by: Alexander Larsson <alexl@redhat.com>
* editable-label: remove multicontext menuitemsCosimo Cecchi2013-06-171-11/+1
| | | | | They have been removed from stock GtkEntry as well, and this function is now deprecated.
* eel-editable-label: Fix string length on retrieve-surrounding handlerRui Matos2013-03-251-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=696532
* 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
* eel: use G_APP_INFO_CREATE_NEEDS_TERMINAL to run command in terminalWilliam Jon McCann2013-02-151-137/+1
|
* eel: remove unused eel_gtk_tree_view_set_activate_on_single_clickCosimo Cecchi2013-01-222-55/+0
|
* Normalize signal namesWilliam Jon McCann2013-01-223-47/+47
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=692234
* eel: remove more unused codeCosimo Cecchi2013-01-032-67/+0
|
* eel-canvas: use GtkContainerAccessible for EelCanvasAccessibleCosimo Cecchi2013-01-032-386/+5
| | | | Removes tons of boilerplate code not needed anymore.
* eel: remove unused codeCosimo Cecchi2013-01-032-43/+0
|
* editable-label: derive from GtkWidgetAccessible directlyCosimo Cecchi2013-01-031-92/+54
| | | | | Now that it's publicly exported by GTK, derive our accessible class from GtkWidgetAccessible as a normal GObject.
* build: use GNOME_MAINTAINER_MODE_DEFINESCosimo Cecchi2012-10-231-1/+1
| | | | Instead of defining our own set of deprecation cflags.
* eel: remove unused codeCosimo Cecchi2012-10-232-77/+18
|
* all: don't use eel_g_str_list_copy()Cosimo Cecchi2012-10-231-19/+0
| | | | Use g_list_copy_deep() instead.
* all: don't use eel_g_object_list_copy()Cosimo Cecchi2012-10-232-16/+0
| | | | Use g_list_copy_deep() instead.
* editable-label: add an input-only window for eventsCosimo Cecchi2012-10-172-6/+43
| | | | | | | | | | Add another input-only child to the parent GdkWindow's for events and imcontext. Since we will be painted in a GtkLayout, using only one input-only window won't work well with scrolling, but this way we can ensure that whatever GdkWindow the XIM engine will try to ensure native, it won't be our (floating) drawing window. https://bugzilla.gnome.org/show_bug.cgi?id=686053
* Revert "editable-label: don't use a input-output window"Cosimo Cecchi2012-10-172-36/+17
| | | | | | | This reverts commit b67360316cf975c85569527f55803cad1ea5e28e. It breaks scrolling, as explained in https://bugzilla.gnome.org/show_bug.cgi?id=686322
* editable-label: don't use a input-output windowCosimo Cecchi2012-10-152-17/+36
| | | | | | | | Use the same behavior of GtkEntry i.e. create an input only GdkWindow for the text area. This avoids the text area becoming black when it's used together with the XIM module. https://bugzilla.gnome.org/show_bug.cgi?id=686053
* Use git.mkWilliam Jon McCann2012-09-172-10/+2
|
* Remove unnecessary gdk_threads_enter/leave callsCosimo Cecchi2012-08-301-4/+0
| | | | Since we don't ever call gdk_threads_init()
* eel: fix leaked path stringPavel Vasin2012-08-241-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=682603
* eel: fix GtkTreePath leakPavel Vasin2012-08-241-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=682603
* Make getting extension more robustWilliam Jon McCann2012-08-221-4/+15
| | | | Ensure the basename and extension have at least one char each.
* Add a utf8 test to eel-stringWilliam Jon McCann2012-08-141-0/+2
|
* eel: don't use GDK_THREADS macrosCosimo Cecchi2012-07-311-2/+2
| | | | Use the function equivalents.
* Make dialogs modalWilliam Jon McCann2012-07-161-0/+2
|
* Add a Recent files placeWilliam Jon McCann2012-07-142-0/+7
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=325824
* a11y: add missing prototypeCosimo Cecchi2012-06-081-0/+2
|
* a11y: fix accessibility implementation for NautilusIconContainerCosimo Cecchi2012-06-072-88/+39
| | | | | | | | | | 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
* a11y: remove now unused codeCosimo Cecchi2012-06-072-92/+0
| | | | eel_accessibility_create_derived_gtype() is now unused.
* a11y: make sure not to loop while looking for parent get_accessibleCosimo Cecchi2012-06-071-2/+8
| | | | | | If the final class does not override the get_accessible method, it will inherit it from the parent class; what we're interested in is the first class for which get_accessible is != from our class get_accessible.
* editable-label: fix accessibility supportCosimo Cecchi2012-06-071-5/+5
| | | | | | | Use the previously introduced function to create a suitable GtkAccessible implementation. https://bugzilla.gnome.org/show_bug.cgi?id=672498
* a11y: add a method to create a derived GtkWidgetAccessible typeCosimo Cecchi2012-06-072-0/+36
| | | | | | | | | | | For EelEditableLabel, we need to create an object derived from the accessible type of the parent class; since that will be a GtkWidgetAccessible, which is private, we can't just subclass it using the regular GObject mechanisms. This functions creates a derived GType by peeking at the parent accessible class and type. https://bugzilla.gnome.org/show_bug.cgi?id=672498