Revision: 1198 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1198&view=re... Author: dimitrov-adrian Date: 2010-03-21 20:28:11 +0000 (Sun, 21 Mar 2010)
Log Message: ----------- Treebrowser, old compilers fix
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-03-21 17:40:24 UTC (rev 1197) +++ trunk/geany-plugins/treebrowser/ChangeLog 2010-03-21 20:28:11 UTC (rev 1198) @@ -13,6 +13,7 @@ added option to close bars in bars added options to expand/collapse all from menu fixed compile error with glib < 2.12.0 + added option to go current doc path in menu
20-03-2010 Adrian Dimitrov dimitrov.adrian@gmail.com
Modified: trunk/geany-plugins/treebrowser/src/treebrowser.c =================================================================== --- trunk/geany-plugins/treebrowser/src/treebrowser.c 2010-03-21 17:40:24 UTC (rev 1197) +++ trunk/geany-plugins/treebrowser/src/treebrowser.c 2010-03-21 20:28:11 UTC (rev 1198) @@ -105,7 +105,7 @@ gint i; gboolean temporary_reverse = FALSE;
- if (gtk_entry_get_text_length(GTK_ENTRY(filter)) < 1) + if (base_name == NULL || base_name == "") return TRUE;
filters = g_strsplit(gtk_entry_get_text(GTK_ENTRY(filter)), ";", 0); @@ -368,6 +368,12 @@ }
static void +on_menu_current_path(GtkMenuItem *menuitem, gpointer *user_data) +{ + treebrowser_chroot(get_default_dir()); +} + +static void on_menu_open_externally(GtkMenuItem *menuitem, gpointer *user_data) {
@@ -581,6 +587,10 @@ gtk_container_add(GTK_CONTAINER(menu), item); g_signal_connect(item, "activate", G_CALLBACK(on_menu_go_up), NULL);
+ item = ui_image_menu_item_new(GTK_STOCK_GO_UP, _("Set path from document")); + gtk_container_add(GTK_CONTAINER(menu), item); + g_signal_connect(item, "activate", G_CALLBACK(on_menu_current_path), NULL); + item = ui_image_menu_item_new(GTK_STOCK_OPEN, _("Open externally")); gtk_container_add(GTK_CONTAINER(menu), item); g_signal_connect(item, "activate", G_CALLBACK(on_menu_open_externally), NULL); @@ -961,7 +971,6 @@ GtkWidget *FOLLOW_CURRENT_DOC; } configure_widgets;
- static void load_settings(void) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org