1
0
mirror of https://github.com/GNOME/gedit synced 2024-07-05 04:35:02 +00:00
Commit Graph

48 Commits

Author SHA1 Message Date
Sébastien Wilmet
69c1513ba9 filebrowser: fix compil warning [-Wdiscarded-qualifiers] 2023-07-25 16:00:00 +02:00
Sébastien Wilmet
291c222b00 file-browser: minor coding style fixes for previous commit
See https://gitlab.gnome.org/GNOME/gedit/-/merge_requests/141
2022-11-15 16:00:01 +01:00
Barnabás Pőcze
7e1c744182 file-browser: expand/collapse item on right/left keypress
When an item is selected in the file browser:
 - when the left key is pressed:
   - if it can be collapsed, collapse it;
   - if its parent exists, go to the parent;
   - otherwise, do nothing;
 - when the right key is pressed:
   - if it can be expanded, expand it;
   - otherwise, do nothing.

This mirrors the behaviour of Nautilus
(before the tree view has been temporarily removed).

See https://gitlab.gnome.org/GNOME/gedit/-/merge_requests/141
2022-11-15 16:00:00 +01:00
zb3
d3b4565aef filebrowser: explicitly set tree view search column
This sets the search column to the displayed file/bookmark name, which makes the interactive search functionality work as expected.

Fixes #231
2019-11-08 19:38:26 +00:00
Sebastien Lafargue
9913f5ae47 file-browser: correct color for symbolic icons in dark mode
Previously, symbolics icons were hard-coded with pixbufs in the stores,
means no re-colorization when the theme change.

fix #99
2018-11-24 18:58:57 +01:00
Sebastien Lafargue
bd5e5fc703 file-browser: coding style cleanup 2018-11-24 16:05:52 +01:00
Paolo Borelli
373adb7d04 Remove gedit-marhal
These days we can use the automatic ffi marshalling
2015-08-17 14:29:08 +02:00
Paolo Borelli
8ed0f54f95 Use the new gdk cursor api 2015-07-29 12:32:23 +02:00
Paolo Borelli
13e3b81374 filebrowser: fix small leak when renaming file 2015-01-21 21:23:11 +01:00
Sebastien Lafargue
fc97ef221c filebrowser plugin: replace deprecated gdk_cursor_new 2015-01-05 23:17:59 +01:00
Robert Roth
1953f47f59 File browser: focus the text cell before editing
https://bugzilla.gnome.org/show_bug.cgi?id=697101

This patch sets the focus cell to the text cell, as it was not
possible to start a rename before clicking an item in the tree
view because of the focus cell being the icon cell, which can
not be edited.
After setting the focus cell to the text cell, new file and folder
creation starts a rename even before the first tree selection.
2014-05-29 15:14:46 +03:00
Sébastien Wilmet
221acefbe9 File browser: fix GeditView grab focus when opening a file
All the details:
https://bugzilla.gnome.org/show_bug.cgi?id=706900
2014-05-26 17:15:36 +02:00
Paolo Borelli
cfa11d7e3f Fix invalid vim modeline 2014-02-23 10:09:53 +01:00
Daniel Mustieles
40eb2b5e18 Updated FSF's address 2014-01-23 12:51:58 +01:00
Sébastien Wilmet
5af28c20a7 The King is Dead for the file browser
The King is now Dead everywhere the composite widget templates are used
(normally), to avoid segfaults.
2013-07-29 17:55:46 +02:00
Garrett Regier
5fbccd67ca Add "set_markup" method to the file browser
This allows setting the actual text used to display the file.
2013-07-01 08:39:28 -07:00
Garrett Regier
0701c9c463 Bug 620011 - Activate selected item when search is completed
This also fixes it so that any time GtkTreeView emits
"row-activated" the row is correctly activated.
2013-06-16 02:43:44 -07:00
bharaththiruveedula
f93cf42d90 use new macros for checking buttons 2012-03-05 16:35:30 +01:00
Paolo Borelli
e2f792359a Do not leak GFiles in the filebrowser plugin.
Retrieving GFiles from the the treemodel returns a new ref that must be
unreffed properly!
2011-03-20 18:41:43 +01:00
Paolo Borelli
5e8d324205 Do not use gdk_cursor_unref
Also remove busy cursor from the view, since it seems unused.
2010-12-22 21:49:40 +01:00
Paolo Borelli
4ccf119c29 use g_(s)list_free_full where appropriate 2010-10-30 13:48:34 +02:00
Ignacio Casal Quinteiro
cc2a5a4fc1 Rename GDK_* to GDK_KEY_* and bump gtk+ to 2.90.7 2010-09-13 20:52:51 +02:00
Garrett Regier
6e8ef59b74 Bug 622999 - Ported the file browser plugin to libpeas 2010-06-28 10:58:03 -07:00
Paolo Borelli
bb8a8a3cb2 Remove use of gtk-compat.h 2010-06-13 10:58:34 +02:00
Garrett Regier
16959a0a93 Few more fixes for file browser coding style 2010-06-04 00:25:14 -07:00
Garrett Regier
2cfb5f7a9a Bug 616964 - Update coding style again in file browser plugin 2010-05-04 08:49:51 +02:00
Garrett Regier
139db33451 Focus on view when opening files from the File Browser or Documents Panel (fixes bug #544092) 2010-04-30 00:59:04 +02:00
Garrett Regier
664cbd0885 Prevent file browser from scrolling when renaming file
https://bugzilla.gnome.org/show_bug.cgi?id=617218
2010-04-30 00:52:09 +02:00
Jesse van den Kieboom
0afb302129 Add modelines to all the C files 2010-04-29 19:43:19 +02:00
Javier Jardón
d17185bb01 Use accessor functions instead direct access
A compatibility header was added: gseal-compat-gtk.h
Still remaining (no GTK+ api):
text_view->need_im_reset

https://bugzilla.gnome.org/show_bug.cgi?id=593601
2010-04-29 03:27:51 +02:00
Garrett Regier
eefaaf6eac Update coding style in file browser plugin (fixes bug #616964) 2010-04-28 09:13:21 +02:00
Ignacio Casal Quinteiro
44d5f89c33 Fix filebrowser plugin to use GFile instead of uris. 2010-04-27 13:37:38 +02:00
Paolo Borelli
c0d7fb64b3 Scroll the file into view after a rename 2009-12-28 13:00:37 +01:00
Jesse van den Kieboom
a201fcf1ef Fix single click behavior when item is selected for file browser view 2009-11-15 21:57:47 +01:00
Javier Jardón
aedc0f5a61 Use gtk accessor functions instead direct access
First batch of Bug #593601. Some functions still remaining because there
is not API in GTK+ yet
2009-08-31 23:02:57 +02:00
Paolo Borelli
4843c8206d Fix some compiler warnings in the filebrowser plugin 2009-08-19 12:58:24 +02:00
Jesse van den Kieboom
f6f276299d Fixed switching from bookmarks to file view only after mounting (fixes
* plugins/filebrowser/gedit-file-browser-view.c:
	* plugins/filebrowser/gedit-file-browser-widget.c:
	* plugins/filebrowser/gedit-file-browser-store.c:
	* plugins/filebrowser/gedit-file-browser-view.h:
	
	Fixed switching from bookmarks to file view only after mounting
	(fixes #551136). Fixed scrolling to rename position when renaming
	a file. Fixed cancelling mount operation when switching to different
	uri.

svn path=/trunk/; revision=6795
2009-01-02 17:12:59 +00:00
Jesse van den Kieboom
d9ad8c3d00 Merged message communication bus from message_system branch providing a
* gedit/gedit-message-type.h:
	* gedit/gedit-message-type.c:
	* gedit/gedit-message.h:
	* gedit/gedit-message.c:
	* gedit/gedit-message-bus.h:
	* gedit/gedit-message-bus.c:
	* gedit/gedit-window.h:
	* gedit/gedit-window.c:
	* gedit/gedit-window-private.h:
	* gedit/Makefile.am:
	
	Merged message communication bus from message_system branch providing
	a framework to allow (amongst others) plugins to cooperate in similar
	way as DBus (but for in-process communication)
	
	* docs/reference/gedit-sections.txt:
	* docs/reference/gedit.types:
	* docs/reference/gedit-docs.sgml:
	* docs/reference/tmpl/gedit-message.sgml:
	* docs/reference/tmpl/gedit-message-type.sgml:
	* docs/reference/tmpl/gedit-message-bus.sgml:
	
	Added API documentation for message bus
	
	* plugin-loaders/python/bindings/geditmessage.override:
	* plugin-loaders/python/bindings/Makefile.am:
	* plugin-loaders/python/bindings/gedit.override:
	* plugin-loaders/python/bindings/gedit.defs:
	
	Implemented python bindings for message bus

	* plugins/filebrowser/gedit-file-browser-messages.c:
	* plugins/filebrowser/gedit-file-browser-messages.h:
	* plugins/filebrowser/gedit-file-browser-widget.c:
	* plugins/filebrowser/gedit-file-browser-widget.h:
	* plugins/filebrowser/gedit-file-browser-plugin.c:
	* plugins/filebrowser/Makefile.am:
	
	Added message bus support for the file browser plugin
	
	* plugins/filebrowser/gedit-file-browser-view.c:
	
	Added sanity checks for destruction of state restore table

svn path=/trunk/; revision=6755
2008-12-29 18:52:22 +00:00
Paolo Borelli
ad1975acb3 another patch by jesse
svn path=/trunk/; revision=6279
2008-05-12 14:57:37 +00:00
Paolo Borelli
54aab0339d commit a fix on jesse's behalf
svn path=/trunk/; revision=6278
2008-05-12 14:48:32 +00:00
Jesse van den Kieboom
f7af5fa85f Fixed problems with changing model when rows are inserted. This made it
* plugins/filebrowser/gedit-file-browser-store.c:
	* plugins/filebrowser/gedit-file-browser-view.c:
	Fixed problems with changing model when rows are inserted. This made it 
	possible to change the expand/collapse actions from an idle function to
	immediate functions. This results in much faster 'feel' of the file 
	browser and also makes restoring the expanded state much faster. Also 
	fixed two memory leaks

svn path=/trunk/; revision=6277
2008-05-11 11:24:54 +00:00
Jesse van den Kieboom
fb38a12b2f Added new feature which restores the expanded state of file browser nodes
* plugins/filebrowser/gedit-file-browser-view.c:
	* plugins/filebrowser/gedit-file-browser-view.h:
	* plugins/filebrowser/gedit-file-browser-widget.c:
	* plugins/filebrowser/gedit-file-browser-store.c:
	* plugins/filebrowser/gedit-file-browser-store.h:
	Added new feature which restores the expanded state of file browser
	nodes

svn path=/trunk/; revision=6276
2008-05-10 19:35:53 +00:00
Jesse van den Kieboom
1217a03833 ported file browser plugin to gio
* plugins/filebrowser/*: ported file browser plugin to gio

svn path=/trunk/; revision=6260
2008-05-05 09:39:00 +00:00
Paolo Borelli
dcc1cc3323 toggle hidden files with CTRL+h
2007-09-26  Paolo Borelli  <pborelli@katamail.com>

	* plugins/filebrowser/gedit-file-browser-view.c: toggle hidden
	files with CTRL+h

svn path=/trunk/; revision=5939
2007-09-26 18:10:31 +00:00
Jesse van den Kieboom
0eb642f645 Moved implementation of activating files and directories to
* gedit/plugins/filebrowser/gedit-file-browser-view.c:
	* gedit/plugins/filebrowser/gedit-file-browser-view.h:
	* gedit/plugins/filebrowser/gedit-file-browser-marshal.list:
	* gedit/plugins/filebrowser/gedit-file-browser-widget.c:
	* gedit/plugins/filebrowser/gedit-file-browser-widget.h:
	* gedit/plugins/filebrowser/gedit-file-browser-store.c:
	* gedit/plugins/filebrowser/gedit-file-browser-plugin.c:
	* gedit/plugins/filebrowser/gedit-file-browser-store.h:
	
	Moved implementation of activating files and directories to 
	gedit-file-browser-view (was implemented in gedit-file-browser-widget
	before). Added support for nautilus click behavior (single/double).
	Added support for selecting multiple files.

svn path=/trunk/; revision=5413
2007-01-07 10:15:45 +00:00
Paolo Borelli
0552b5dce1 Allow to drag files from the pane.
2006-12-01  Paolo Borelli  <pborelli@katamail.com>

	* gedit/plugins/filebrowser/gedit-file-browser-store.c:
	* gedit/plugins/filebrowser/gedit-file-browser-view.c:

	Allow to drag files from the pane.
2006-12-01 12:51:03 +00:00
Jesse van den Kieboom
3444bd33b2 changed tooltips for back and forward to match nautilus
* plugins/filebrowser/gedit-file-browser-widget.c: changed tooltips
	for back and forward to match nautilus

	* plugins/filebrowser/gedit-file-browser-widget.c:
	* plugins/filebrowser/gedit-file-browser-view.c:

	Fixed bug when opening a directory which is expanded.

	* plugins/filebrowser/gedit-file-browser-widget-ui.xml:
	* plugins/filebrowser/gedit-file-browser-widget.c:

	Added keyboard navigation (Alt+Left, Alt+Right, Alt+Up, Backspace) and
	directory up action.
2006-08-04 11:53:57 +00:00
Paolo Borelli
2fcef7d4f9 let there be a file tree pane 2006-07-24 18:29:06 +00:00