Revision: 1199 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1199&view=re... Author: dimitrov-adrian Date: 2010-03-21 22:49:45 +0000 (Sun, 21 Mar 2010)
Log Message: ----------- Treebrowser, fixed few old compiler warnings
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 20:28:11 UTC (rev 1198) +++ trunk/geany-plugins/treebrowser/ChangeLog 2010-03-21 22:49:45 UTC (rev 1199) @@ -1,6 +1,11 @@ Development release ChangeLog -----------------------------
+22-03-2010 Adrian Dimitrov dimitrov.adrian@gmail.com + * src/treebrowser.c + fixed some bugs + fixed few old compiler warnings + 21-03-2010 Adrian Dimitrov dimitrov.adrian@gmail.com * src/treebrowser.c fixed few compile warnings with glib and unused vars
Modified: trunk/geany-plugins/treebrowser/src/treebrowser.c =================================================================== --- trunk/geany-plugins/treebrowser/src/treebrowser.c 2010-03-21 20:28:11 UTC (rev 1198) +++ trunk/geany-plugins/treebrowser/src/treebrowser.c 2010-03-21 22:49:45 UTC (rev 1199) @@ -105,7 +105,7 @@ gint i; gboolean temporary_reverse = FALSE;
- if (base_name == NULL || base_name == "") + if (! NZV(gtk_entry_get_text(GTK_ENTRY(filter)))) return TRUE;
filters = g_strsplit(gtk_entry_get_text(GTK_ENTRY(filter)), ";", 0); @@ -976,7 +976,6 @@ { GKeyFile *config = g_key_file_new(); GError *error = NULL; - gboolean tmp;
g_key_file_load_from_file(config, CONFIG_FILE, G_KEY_FILE_NONE, NULL);
@@ -995,6 +994,10 @@ static void on_configure_response(GtkDialog *dialog, gint response, gpointer user_data) { + GKeyFile *config = g_key_file_new(); + gchar *config_dir = g_path_get_dirname(CONFIG_FILE); + gchar *data; + if (! (response == GTK_RESPONSE_OK || response == GTK_RESPONSE_APPLY)) return;
@@ -1007,10 +1010,6 @@ CONFIG_CHROOT_ON_DCLICK = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(configure_widgets.CHROOT_ON_DCLICK)); CONFIG_FOLLOW_CURRENT_DOC = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(configure_widgets.FOLLOW_CURRENT_DOC));
- GKeyFile *config = g_key_file_new(); - gchar *config_dir = g_path_get_dirname(CONFIG_FILE); - gchar *data; - g_key_file_load_from_file(config, CONFIG_FILE, G_KEY_FILE_NONE, NULL); if (! g_file_test(config_dir, G_FILE_TEST_IS_DIR) && utils_mkdir(config_dir, TRUE) != 0) dialogs_show_msgbox(GTK_MESSAGE_ERROR,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.