Revision: 1308
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1308&view=rev
Author: dimitrov-adrian
Date: 2010-04-25 20:38:37 +0000 (Sun, 25 Apr 2010)
Log Message:
-----------
Treebrowser: (FIXED) "Go Up" not working if the current path ends with slash; (FIXED) Double click on bookmarks, do nothing
Modified Paths:
--------------
trunk/geany-plugins/treebrowser/ChangeLog
trunk/geany-plugins/treebrowser/src/treebrowser.c
Modified: trunk/geany-plugins/treebrowser/ChangeLog
===================================================================
--- trunk/geany-plugins/treebrowser/ChangeLog 2010-04-25 18:58:14 UTC (rev 1307)
+++ trunk/geany-plugins/treebrowser/ChangeLog 2010-04-25 20:38:37 UTC (rev 1308)
@@ -3,9 +3,11 @@
| KNOWN BUGS |
+---------------------------+
- * crytical warning when unloading the plugin
+ * CRYTICAL warning when unloading the plugin
"CRITICAL : g_object_ref: assertion `object->ref_count > 0' failed"
+ (FIXED) Double click on bookmarks, do nothing
(FIXED) show/hide hidden files not working on Windows
+ (FIXED) "Go Up" not working if the current path ends with slash
+---------------------------+
@@ -27,7 +29,10 @@
(DONE) Using font from geany settings for sidebar
* Migrating to stash
* Adding keybindings for renaming/deleting/refreshing
+ * Add option to change bars position
+ * Add option to autorename the newest created objects by the Treebrowser
+
+-------------------------------+
| Development release ChangeLog |
+-------------------------------+
@@ -43,6 +48,7 @@
Added tooltips with uri // thanks to native filebrowser
Added option to open terminal
Applied patch from Enrico to fix gtk+-2.8 compitable for tree lines
+ Fixed "Go Up" not working if the current path ends with slash
19-04-2010 Adrian Dimitrov <dimitrov.adrian(a)gmail.com>
Modified: trunk/geany-plugins/treebrowser/src/treebrowser.c
===================================================================
--- trunk/geany-plugins/treebrowser/src/treebrowser.c 2010-04-25 18:58:14 UTC (rev 1307)
+++ trunk/geany-plugins/treebrowser/src/treebrowser.c 2010-04-25 20:38:37 UTC (rev 1308)
@@ -181,7 +181,7 @@
GFileInfo *info;
file = g_file_new_for_path(uri);
- info = g_file_query_info (file, G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN, 0, NULL, &error);
+ info = g_file_query_info(file, G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN, 0, NULL, &error);
if (error)
{
g_error_free(error);
@@ -249,6 +249,9 @@
static void
treebrowser_chroot(gchar *directory)
{
+ if (g_str_has_suffix(directory, "/"))
+ g_strlcpy(directory, directory, strlen(directory));
+
gtk_entry_set_text(GTK_ENTRY(addressbar), directory);
if (! g_file_test(directory, G_FILE_TEST_IS_DIR))
@@ -412,6 +415,12 @@
TREEBROWSER_COLUMN_NAME, g_basename(path_full),
TREEBROWSER_COLUMN_URI, path_full,
-1);
+ gtk_tree_store_append(treestore, &iter, &iter);
+ gtk_tree_store_set(treestore, &iter,
+ TREEBROWSER_COLUMN_ICON, NULL,
+ TREEBROWSER_COLUMN_NAME, g_strdup_printf("(%s)", _("Empty")),
+ TREEBROWSER_COLUMN_URI, NULL,
+ -1);
}
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.