Revision: 1768 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1768&view=re... Author: dimitrov-adrian Date: 2010-12-10 09:14:00 +0000 (Fri, 10 Dec 2010)
Log Message: ----------- Bump v0.20
Modified Paths: -------------- trunk/geany-plugins/treebrowser/ChangeLog trunk/geany-plugins/treebrowser/README trunk/geany-plugins/treebrowser/src/treebrowser.c
Modified: trunk/geany-plugins/treebrowser/ChangeLog =================================================================== --- trunk/geany-plugins/treebrowser/ChangeLog 2010-12-09 21:51:30 UTC (rev 1767) +++ trunk/geany-plugins/treebrowser/ChangeLog 2010-12-10 09:14:00 UTC (rev 1768) @@ -21,7 +21,6 @@ (DONE) Saving state of Showbars in config file everytime where is changed (DONE) oneclick document opening (DONE) filter separating ex.: "*.c;*.cpp;*.h" - * Fix possible memory leaks (using g_free... where is need) * Complete following path from current document view (DONE) Hide object files as native filebroser (*.o;*.a;*.so;*.dll;*.lib..) (DONE) Using font from geany settings for sidebar @@ -36,10 +35,29 @@ +-------------------------------+
+10-12-2010 Adrian Dimitrov dimitrov.adrian@gmail.com + + * ChangeLog + Update + * README + Update + * src/treebrowser.c + Fixed warning: ISO C90 forbids mixed declarations and code (in check_hidden()) + Fixed warning: 'return' with no value, in function returning non-void (in treebrowser_checkdir()) + Fixed compilation warning with strlen() + Description changed (taken from ubuntu`s repos) + + +10-12-2010 Adrian Dimitrov dimitrov.adrian@gmail.com + + Bumped version 0.20 + Now will following the version number of geany + + 09-12-2010 Adrian Dimitrov dimitrov.adrian@gmail.com
* src/treebrowser.c - Fixed error colors in addressbar when last directory wasn`t existing, + Fixed wrong colors in addressbar when last directory wasn`t existing, but then chrooting. "Right click" menu rearanged to looks more logically
Modified: trunk/geany-plugins/treebrowser/README =================================================================== --- trunk/geany-plugins/treebrowser/README 2010-12-09 21:51:30 UTC (rev 1767) +++ trunk/geany-plugins/treebrowser/README 2010-12-10 09:14:00 UTC (rev 1768) @@ -1,4 +1,4 @@ -.. |(version)| replace:: 0.2 +.. |(version)| replace:: 0.20
Treebrowser plugin ================== @@ -9,14 +9,16 @@ About =====
-Treebrowser is plugin that provide tree like file browser for geany`s sidebar. -It is on beta state, then all reports are welcome. +The TreeBrowser plugin for Geany provides an alternate way to browse through +your files. It displays files and directories in a tree view and has more +features than the file browser plugin delivered with Geany itself.
-.. image:: http://img177.imageshack.us/img177/6403/geanytreebrowser.png - :width: 240 + +.. image:: http://img43.imageshack.us/img43/9053/screenshotsmallq.png + :width: 400 :alt: treebrowser plugin :align: right - :target: http://img177.imageshack.us/img177/6403/geanytreebrowser.png + :target: http://img828.imageshack.us/img828/1351/screenshot1fq.png
Features @@ -25,7 +27,7 @@ * Project following * Basic filesystem functionality * GTK bookmarks support - * Filters in browser + * Filterable list * Show content-type icons
@@ -39,26 +41,32 @@ Usage =====
-After compiling and/or installing treebrowser, start Geany and go to menu -Tools->Plugin Manager and set checkbox at treebrowser plugin +After compiling and/or installing TreeBrowser, start Geany and go to menu +Tools->Plugin Manager and set checkbox at TreeBrowser plugin
-Download -======== +Download Source +===============
-treebrowser is part of the combined Geany Plugins release. For more information and downloads, please visit http://plugins.geany.org/geany-plugins/ +Development Source Tarbal: http://geany-plugins.svn.sourceforge.net/viewvc/geany-plugins/trunk/geany-pl...
+TreeBrowser is part of the combined Geany Plugins release. For more information and downloads, please visit http://plugins.geany.org/
-Development Code -================
-svn co http://geany-plugins.svn.sourceforge.net/svnroot/geany-plugins/trunk/geany-p... +Installation +============
+ * Ubuntu/Debian + `sudo apt-get install geany-plugin-treebrowser`
+ * Fedora + `yum install geany-plugins-treebrowser` + + License =======
-Treebrowser plugin is distrubuted under the same license as and geany. +TreeBrowser plugin is distrubuted under the same license as and geany.
Ideas, questions, patches and bug reports
Modified: trunk/geany-plugins/treebrowser/src/treebrowser.c =================================================================== --- trunk/geany-plugins/treebrowser/src/treebrowser.c 2010-12-09 21:51:30 UTC (rev 1767) +++ trunk/geany-plugins/treebrowser/src/treebrowser.c 2010-12-10 09:14:00 UTC (rev 1768) @@ -1,5 +1,5 @@ /* - * treebrowser.c + * treebrowser.c - v0.20 * * Copyright 2010 Adrian Dimitrov dimitrov.adrian@gmail.com */ @@ -8,6 +8,7 @@ #include <sys/stat.h> #include <fcntl.h> #include <glib.h> +#include <string.h> #include <glib/gstdio.h>
#include "geany.h" @@ -102,9 +103,9 @@ PLUGIN_SET_TRANSLATABLE_INFO( LOCALEDIR, GETTEXT_PACKAGE, - _("Tree Browser"), - _("Treeview filebrowser plugin."), - "0.2" , + _("TreeBrowser"), + _("This plugin adds a tree browser to Geany, allowing the user to browse files using a tree view of the directory being browsed."), + "0.20" , "Adrian Dimitrov (dimitrov.adrian@gmail.com)")
@@ -267,18 +268,29 @@ static gboolean check_hidden(const gchar *uri) { + gboolean is_visible = TRUE; + GFile *file; + GFileInfo *info; + gchar *base_name; + if (CONFIG_SHOW_HIDDEN_FILES) + { + g_object_unref(info); + g_object_unref(file); + g_free(base_name); return TRUE; + }
if (uri[strlen(uri) - 1] == '~') + { + g_object_unref(info); + g_object_unref(file); + g_free(base_name); return FALSE; + }
- gboolean is_visible = TRUE; #ifdef G_OS_WIN32 # ifdef HAVE_GIO - GFile *file; - GFileInfo *info; - file = g_file_new_for_path(uri); info = g_file_query_info(file, G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN, 0, NULL, NULL); if (info) @@ -290,7 +302,6 @@ g_object_unref(file); # endif /* HAVE_GIO */ #else /* G_OS_WIN32 */ - gchar *base_name;
base_name = g_path_get_basename(uri); if (base_name[0] == '.') @@ -353,7 +364,6 @@ static gboolean old_value = TRUE;
is_dir = g_file_test(directory, G_FILE_TEST_IS_DIR); - g_return_if_fail(GTK_WIDGET(addressbar) != NULL);
if (old_value != is_dir) { @@ -1443,7 +1453,7 @@ ui_widget_modify_font_from_string(view, geany->interface_prefs->tagbar_font);
#if GTK_CHECK_VERSION(2, 10, 0) - g_object_set(view, "has-tooltip", TRUE, "tooltip-column", TREEBROWSER_COLUMN_URI, NULL); + g_object_set(view, "has-tooltip", TRUE, "tooltip-column", TREEBROWSER_COLUMN_URI, NULL); #endif
gtk_tree_selection_set_mode(gtk_tree_view_get_selection(GTK_TREE_VIEW(view)), GTK_SELECTION_SINGLE);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.