Commit graph

36 commits

Author SHA1 Message Date
Carlos Soriano
b6ebffd567 general: Run uncrustify 2018-02-13 20:11:55 +01:00
Ernestas Kulik
f0df1fc510 general: only remember window size
Currently, Nautilus is able to save the last window position when it’s
closed. That is broken in certain cases (#197 and multi-monitor setups
in general) and therefore window placement is best left to the window
manager.
2018-01-16 13:23:54 +02:00
Ernestas Kulik
e3777b5410 program-choosing: drop eel dependency
Terminal applications are launched via eel, and, since this file is the
only consumer of that API, the code from eel can be moved over.
2018-01-02 13:11:10 +02:00
Alexandru Fazakas
490a6cbeb8 file-operations: Port error details inline
As the eel_gtk_message_dialog_set_details_label function is only used once,
we can safely remove it and do everything inside of nautilus-file-operations.c.

Thus, we deleted the eel function and we do everything inside the
do_run_simple_dialog function and remove the function header from the header
file. We add the label straight into the content_area of the dialog box.

https://bugzilla.gnome.org/show_bug.cgi?id=598671
2017-12-21 02:11:24 +02:00
Alexandru Fazakas
28ae2d032b eel/eel-gtk-extensions.c: Remove expander showing error details
Creating directories within read-only ones is not allowed and appropriate
error messages pop up.

Trying to create a directory within a read-only directory opens a window
showing the error. Within the window, an expander shows the error details.
Whenever the expander is clicked, the window moves unexpectedly.
We need to fix this as the behaviour is not normal and doesn't look good.

In order to fix the issue, we removed the expander and included the error
details as a label inside the dialog box itself.

https://bugzilla.gnome.org/show_bug.cgi?id=786212
2017-12-20 01:35:21 +02:00
Kevin Lopez
047735a28b eel-gtk-extensions: avoid deprecated warnings
This patch avoids the use of gdk_screen_get_width,
gdk_screen_get_height,gdk_screen_width,gdk_screen_height, functions
which are deprecated since 3.22 version of GDK library.

Also deletes the eel_pop_up_context_menu function since is not used
in the source code.

https://bugzilla.gnome.org/show_bug.cgi?id=780283
2017-08-17 15:37:45 +02:00
Carlos Soriano
52d960542b general: run uncrustify
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
2016-08-29 18:37:10 +02:00
Carlos Soriano
1ffb8ca593 general: remove vim modelines
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.
2016-04-04 18:08:36 +02:00
Georges Basile Stavracas Neto
6adf3cf74c project: replace deprecated GtkMisc calls
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.
2015-07-21 18:20:26 -03:00
Daniel Mustieles
e314fbcc99 Updated FSF's address 2014-01-31 14:13:48 +01:00
Cosimo Cecchi
ae16296bbc eel: remove unused eel_gtk_tree_view_set_activate_on_single_click 2013-01-22 20:36:47 -05:00
William Jon McCann
d721a8f206 Normalize signal names
https://bugzilla.gnome.org/show_bug.cgi?id=692234
2013-01-22 10:47:54 -05:00
Pavel Vasin
60217c642c eel: fix GtkTreePath leak
https://bugzilla.gnome.org/show_bug.cgi?id=682603
2012-08-24 18:41:28 +02:00
Cosimo Cecchi
2cf25e2a64 all: trivial cleanups 2012-04-24 11:48:20 -04:00
Cosimo Cecchi
9de34580ae eel: remove unused code
All these functions are now unused and can be removed.
2012-04-11 12:14:41 -04:00
Cosimo Cecchi
428b468e8e all: remove offset_x/offset_y parameters from eel_pop_up_context_menu()
They're unused now.
2011-10-05 15:08:05 -04:00
Federico Mena Quintero
7b290a2b2f Remove stale 'offset' in eel_pop_up_context_menu()
Also, fix the fallback timestamp for the menu popup.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-10-05 08:08:10 -05:00
Cosimo Cecchi
34bbbc5786 all: remove some unneeded includes 2011-07-01 15:49:20 -04:00
Cosimo Cecchi
46b297a523 eel: remove unused method 2011-02-17 11:25:19 -05:00
Cosimo Cecchi
129d90ebcd all: remove unused includes of eel-gdk-pixbuf-extensions 2011-01-20 14:34:44 +01:00
Cosimo Cecchi
b5302ebfc1 eel: remove unused code 2010-12-06 15:56:01 +01:00
Cosimo Cecchi
2b99456d62 [eel] remove eel_gtk_adjustment* functions
They should not be needed now.
2010-11-01 17:41:59 +01:00
Cosimo Cecchi
31dfbdc190 [eel] remove eel_gtk_widget_set_shown()
It's not used anymore.
2010-11-01 03:17:04 +01:00
Cosimo Cecchi
a2b4de80a9 [eel] add an utility to pack details into a message dialog
So that we can remove EelAlertDialog.
2010-08-21 18:24:31 +02:00
Cosimo Cecchi
394cb741c3 [eel] remove eel_gtk_signal* utilities
These are unused now.
2010-08-21 17:26:12 +02:00
Cosimo Cecchi
57b66862a5 [eel] remove functions to set widget backgrounds
These are unused now.
2010-08-21 17:23:25 +02:00
Cosimo Cecchi
472f3e1433 [eel] remove functions to handle accelerators
These are unused now.
2010-08-21 17:22:53 +02:00
Cosimo Cecchi
f080b86dae Don't include eel-pango-extensions.h 2010-08-19 16:59:51 +02:00
Cosimo Cecchi
a904f4acd5 [eel] remove dead code from eel-gtk-extensions 2010-08-13 17:55:53 +02:00
Bastien Nocera
6a2110eb0c [eel] GSEAL eel-gtk-extensions. 2010-06-11 13:25:19 +02:00
Cosimo Cecchi
a09d41702b Remove deprecated GTK+ symbols (#565038). 2010-04-26 14:27:43 +02:00
Cosimo Cecchi
496d3f15de Use gtk_widget_get_state() (#612423).
Instead of the deprecated GTK_WIDGET_STATE macro.
Patch by Dominique Leuenberger.
2010-04-09 11:59:27 +02:00
Alexander Larsson
2434bd43cd Fix usage of sink, fixing many recently introduced leaks.
The conversion away from gtk_object_sink was done wrongly
causing lots of leaks. fix this.
2009-09-07 21:09:11 +02:00
Cosimo Cecchi
b695c97018 Remove deprecated GDK/GTK+ symbols
Remove all uses of deprecated GDK and GTK+ symbols, replacing them
with the currently supported equivalents.
Based on a patch from Tal Benavidor (#565038).
2009-04-21 15:06:23 +02:00
Paolo Borelli
1b6f5b79ff add utility function to get a GtkMenuToolButton's button
2009-01-22  Paolo Borelli  <pborelli@katamail.com>

	* eel/eel-gtk-extensions.[ch]: add utility function
	to get a GtkMenuToolButton's button

	* src/nautilus-window-menus.c:
	* src/nautilus-navigation-action.c:
	Use the above util function that doesn't leak the children
	list.


svn path=/trunk/; revision=14877
2009-01-22 13:12:22 +00:00
Alexander Larsson
7e668edf20 eel/ Import eel into nautilus.
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
2008-12-15 15:56:41 +00:00