120 Commits

Author SHA1 Message Date
Colomban Wendling
6c753e591b filebrowser: Use Spawn module to launch the external command
This makes the command syntax consistent with other
Geany ones and more native on Windows.
2015-07-11 22:14:25 +02:00
Colomban Wendling
f427a3a6e1 Merge pull request #455 from techee/filebrowser_icons
Show icons corresponding to MIME types in the file browser plugin
2015-06-18 16:49:37 +02:00
Jiří Techet
358758c9f8 Show icons corresponding to MIME types in the file browser plugin 2015-06-16 15:43:45 +02:00
Jiří Techet
83f261fd64 filebrowser: Add a flag to the tree model to indicate whether en entry is a directory
Used by the subsequent patch which changes "stock-id" to GIcon and
disables row type detection using FILEVIEW_COLUMN_ICON.
2015-04-14 23:49:22 +02:00
Enrico Tröger
a23f4b2d39 Remove deprecated and unnecessary use of GeanyFunctions declaration 2015-04-12 23:11:28 +02:00
Colomban Wendling
1c1d76721d Fix several tooltips to properly use plain text instead of markup
Most of our tree view tooltips were set from plain text values but
parsed as markup by GTK, which sometimes lead to markup errors, when
the tooltip value contained markup control characters.

This also adds ui_tree_view_set_tooltip_text_column() to the plugin
API so plugins can easily set plain text tooltips from tree views
columns.

Fixes https://sourceforge.net/p/geany/bugs/1091/
2015-02-28 19:15:00 +01:00
Jiří Techet
508216b7b4 Use the open command to open a directory in Finder on OS X 2015-01-20 19:33:06 +01:00
Nick Treleaven
36c155cbe8 Make File Browser use explorer as default open command on Windows 2014-10-26 15:06:16 +00:00
Frank Lanitz
f205c97362 Update open string on filebrowser plugin to make clearer, that the file will be opened in Geany 2014-05-01 00:35:16 +02:00
Nick Treleaven
0998f1c19c Make code more readable by renaming poorly named macros NZV and NVL
Closes #159
2013-08-14 21:54:20 -07:00
Colomban Wendling
9652a34ef0 Add ellipsis to menu items requiring further user input
This is a very common paradigm used by GNOME, KDE, MacOSX, Windows,
etc., and following it makes our UI more consistent with these and
easier to use by their users.

https://developer.gnome.org/hig-book/stable/menus-design.html.en#menu-item-type-command

Closes #3613494.
2013-05-19 23:15:38 +02:00
Adam Dingle
4807ba6ce5 file browser: Fix capitalization in menu item
Closes #3613558.
2013-05-19 23:15:19 +02:00
Colomban Wendling
8ece89096d Merge branch 'master' into gtk3-support 2013-01-29 15:29:10 +01:00
Enrico Tröger
6241a4520f Remove KEY prefix from GDK_KEY_BackSpace constant
GDK_KEY_* is GTK3 and doesn't work on older GTK versions.
2012-12-16 10:21:01 +01:00
Steven Blatnick
550b2c1219 Use a backspace to browse up a directory. 2012-12-13 10:45:08 -07:00
Colomban Wendling
6409840d4a Get rid of GtkComboBoxEntry API and use GtkComboBoxText API
Use the GtkComboBoxText API and the GtkComboBoxEntry replacement API
and map those to the old equivalents if not available.

This changes the type exposed by ui_combo_box_add_to_history() from
GtkComboBoxEntry to either GtkComboBox (under GTK2) or GtkComboBoxText
(under GTK3).  This should not be too much of an issue since
GtkComboBoxEntry and GtkComboBoxtext are subclasses of GtkComboBox,
but this will still emit warnings when when the calling code passes
a GtkComboBoxEntry pointer to ui_combo_box_add_to_history().

However, this requires the calling code to use the same mapping as we
do (GtkComboBoxText = GtkComboBox on GTK2, even on 2.24), or things
will blow and it'll be hard to understand why.  This wouldn't be an
issue if the calling code includes our gtkcompat.h header everywhere
it deals with combo boxes, which will be the case if it includes the
Geany headers everywhere but probably won't otherwise.  Oh dear.

A possible kind of workaround may be for ui_combo_box_add_to_history()
to do type-checking on its argument and use the actually correct API
for that type.
2012-10-08 20:08:06 +02:00
Colomban Wendling
c1a7b1b475 Fix various packing issue affecting GTK3 but compatible with GTK2 2012-09-28 18:06:58 +02:00
Colomban Wendling
d80bc7ce56 Update FSF address
Closes #3557875.
2012-08-24 19:25:57 +02:00
Colomban Wendling
1c2c455b1d Update copyright information 2012-06-18 01:15:04 +02:00
Nick Treleaven
b287553e4a Use 'SETPTR' instead of 'setptr'
This makes it clearer we're using a macro.
2012-01-25 16:26:16 +00:00
Nick Treleaven
34e6bddde8 Add File Browser path entry tooltip 2012-01-03 16:29:32 +00:00
Matthew Brush
a23e999b7b Bump GTK+ version to 2.16 2011-10-28 10:25:58 -07:00
Matthew Brush
182bdc3b17 Replace GTK_BIN(...)->child with gtk_bin_get_child(...) 2011-10-11 21:30:28 -07:00
Colomban Wendling
d06e9f4575 Remove $Id$ and $Date$ SVN keywords 2011-10-09 22:57:35 +02:00
Colomban Wendling
5bad25e2ab Only include config.h when building Geany
config.h is not distributed, and we includ it from geany.h.  Even
though it was only included it HAVE_CONFIG_H was defined, an Autotools
based build system is likely to define it, and it becomes a problem if
that very build system uses another header name than config.h.

Closes #3384026

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5882 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-03 15:20:26 +00:00
Colomban Wendling
9fa8cd8bf9 Fix a few GCC warnings
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5856 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-17 22:52:43 +00:00
Colomban Wendling
6380810550 Remove treeview-related pre GTK 2.12 support
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5848 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-13 23:03:19 +00:00
Colomban Wendling
5d606ce351 Deprecate ui_widget_set_tooltip_text() in favor of gtk_widget_set_tooltip_text()
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5840 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-13 18:41:50 +00:00
Nick Treleaven
3aa483d82f Update path when saving a new document for the first time if the
follow path option is enabled.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5706 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-11 12:07:19 +00:00
Nick Treleaven
07fed6de1e Don't hide directories matching hidden file extensions e.g. foo.o.
Refactor with check_object().



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5663 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-31 17:58:01 +00:00
Nick Treleaven
e6c579c624 Fix optimization for filter check when pattern is '*'.
Use foreach_strv() instead of foreach_c_array().



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5662 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-31 17:28:03 +00:00
Nick Treleaven
b41b021674 Fix applying default setting for hide_object_files (oops).
Fix warning when enabling plugin from the Plugin Manager.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5661 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-31 15:34:55 +00:00
Nick Treleaven
d69f8f69f6 Make 'Hide object files' preference configurable with file
extensions.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5660 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-31 15:01:24 +00:00
Nick Treleaven
953be445cb Remove confusing macro CHECK_READ_SETTING().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5659 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-30 16:18:47 +00:00
Colomban Wendling
7698bf60a7 Improve usage of G_(UN)?LIKELY()
G_(UN)?LIKELY() should be only used on whole conditional expressions,
and only if the branching is very highly predictable, not if it is only
more probable.

These macros should be used with care because a wrong prediction may
be a lot worst than what a good prediction can give.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5625 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-24 22:00:18 +00:00
Nick Treleaven
2813df48cf Add history to filter entry.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5620 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-24 16:34:10 +00:00
Nick Treleaven
f25e18d866 Allow multiple file filters to be separated by a space for
consistency with Find in Files file patterns. ';' is still
allowed also.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5616 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-22 17:26:47 +00:00
Colomban Wendling
8e79a2255a Prefer prepend elements to lists rather than append them
This is for better performances since appending to a list means walking
it to find the last element to append to. When the list ordering
matters, simply reverse the list after prepengins.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5586 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-10 22:27:04 +00:00
Enrico Tröger
09b734f921 Add support for multiple file filters, separated by semicolon (based on a patch by Grigory Javadyan, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5543 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-02-21 19:09:34 +00:00
Enrico Tröger
67d739f9b0 Add '.pyc' to the list of hidden object files (patch by Filip Gruszczyński, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5530 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-20 19:51:31 +00:00
Enrico Tröger
6ac2623208 Update copyright information.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5528 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-19 19:39:09 +00:00
Nick Treleaven
aca9e894fc Allow Find in Files when no items are selected.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5052 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-18 17:03:35 +00:00
Nick Treleaven
980e4c6112 Remove foreach_slist_free() macro - not worth the complexity (list nodes are probably cached anyway).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5050 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-18 14:20:10 +00:00
Nick Treleaven
9dc088c1e7 Add history to path entry.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5049 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-18 12:22:00 +00:00
Enrico Tröger
77dd8feb44 Fix broken "Go Up" if the current path ends with a slash.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4926 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-16 17:45:06 +00:00
Enrico Tröger
aa05d3be45 Implement reading and evaluating hidden file attribute on Windows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4925 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-16 17:44:51 +00:00
Nick Treleaven
16995c6f1d Add 'Refresh' popup menu item (part of geany-plugins #2999858).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4902 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-11 12:31:16 +00:00
Enrico Tröger
3f3d2d1b9b Make string arguments const where appropriate (patch by Colomban Wendling, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4861 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-25 17:43:09 +00:00
Nick Treleaven
53b6be1d64 Synchronize popup menu and plugin preferences dialog 'Show Hidden
Files' option (fixes #2989288).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4836 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-19 12:03:32 +00:00
Enrico Tröger
f72f6381df Add and use convenience function ui_is_keyval_enter_or_return() and add it to the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4737 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-07 19:33:15 +00:00