Revision: 1622 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1622&view=re... Author: dimitrov-adrian Date: 2010-10-05 14:50:41 +0000 (Tue, 05 Oct 2010)
Log Message: ----------- Fixed some warnings when compiling.
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-10-03 18:29:28 UTC (rev 1621) +++ trunk/geany-plugins/treebrowser/ChangeLog 2010-10-05 14:50:41 UTC (rev 1622) @@ -41,6 +41,11 @@ 03-10-2010 Adrian Dimitrov dimitrov.adrian@gmail.com
* src/treebrowser.c + Fixed some warnings when compiling + +03-10-2010 Adrian Dimitrov dimitrov.adrian@gmail.com + + * src/treebrowser.c Fixed bugs in Bookmarks (directory expander, renaming and deleting files/directories) Fixed bug with empty path to chroot
Modified: trunk/geany-plugins/treebrowser/src/treebrowser.c =================================================================== --- trunk/geany-plugins/treebrowser/src/treebrowser.c 2010-10-03 18:29:28 UTC (rev 1621) +++ trunk/geany-plugins/treebrowser/src/treebrowser.c 2010-10-05 14:50:41 UTC (rev 1622) @@ -112,11 +112,11 @@
static void project_change_cb(G_GNUC_UNUSED GObject *obj, G_GNUC_UNUSED GKeyFile *config, G_GNUC_UNUSED gpointer data); static void treebrowser_browse(gchar *directory, gpointer parent); -static void treebrowser_bookmarks_set_state(void); -static void treebrowser_load_bookmarks(void); +static void treebrowser_bookmarks_set_state(); +static void treebrowser_load_bookmarks(); static void gtk_tree_store_iter_clear_nodes(gpointer iter, gboolean delete_root); -static void load_settings(void); -static gboolean save_settings(void); +static void load_settings(); +static gboolean save_settings();
/* ------------------ @@ -178,7 +178,7 @@
#ifdef G_OS_WIN32 #ifdef HAVE_GIO_2_0 - GError *error = NULL; + GError *error; GFile *file; GFileInfo *info;
@@ -215,7 +215,7 @@ }
static gchar* -get_default_dir(void) +get_default_dir() { gchar *dir; GeanyProject *project = geany->app->project; @@ -236,7 +236,7 @@ }
static gchar * -get_terminal(void) +get_terminal() { gchar *terminal; const gchar *term = g_getenv("TERM"); @@ -278,7 +278,7 @@ treebrowser_browse(gchar *directory, gpointer parent) { GtkTreeIter iter, iter_empty, *last_dir_iter = NULL; - gboolean is_dir, is_hidden, is_parent_bookmarks; + gboolean is_dir; gboolean expanded = FALSE, has_parent; gchar *utf8_name; GSList *list, *node; @@ -375,7 +375,7 @@ }
static void -treebrowser_bookmarks_set_state(void) +treebrowser_bookmarks_set_state() { if (gtk_tree_store_iter_is_valid(treestore, &bookmarks_iter)) bookmarks_expanded = gtk_tree_view_row_expanded(GTK_TREE_VIEW(treeview), gtk_tree_model_get_path(GTK_TREE_MODEL(treestore), &bookmarks_iter)); @@ -384,7 +384,7 @@ }
static void -treebrowser_load_bookmarks(void) +treebrowser_load_bookmarks() { gchar *bookmarks; GError *error = NULL; @@ -568,7 +568,7 @@ }
static gboolean -treebrowser_track_current(void) +treebrowser_track_current() {
GeanyDocument *doc = document_get_current(); @@ -930,7 +930,7 @@ g_signal_connect(item, "activate", G_CALLBACK(on_menu_close), uri); gtk_widget_set_sensitive(item, is_document);
- item = ui_image_menu_item_new(GTK_STOCK_COPY, g_strdup_printf(_("Copy full path to clipboard"), name)); + item = ui_image_menu_item_new(GTK_STOCK_COPY, _("Copy full path to clipboard")); gtk_container_add(GTK_CONTAINER(menu), item); g_signal_connect(item, "activate", G_CALLBACK(on_menu_copy_uri), uri); gtk_widget_set_sensitive(item, is_exists); @@ -964,31 +964,31 @@ * ------------------ */
static void -on_button_go_up(void) +on_button_go_up() { treebrowser_chroot(g_path_get_dirname(addressbar_last_address)); }
static void -on_button_refresh(void) +on_button_refresh() { treebrowser_chroot(addressbar_last_address); }
static void -on_button_go_home(void) +on_button_go_home() { treebrowser_chroot(g_strdup(g_get_home_dir())); }
static void -on_button_current_path(void) +on_button_current_path() { treebrowser_chroot(get_default_dir()); }
static void -on_button_hide_bars(void) +on_button_hide_bars() { showbars(FALSE); } @@ -1184,7 +1184,7 @@ }
static void -treebrowser_track_current_cb(void) +treebrowser_track_current_cb() { if (CONFIG_FOLLOW_CURRENT_DOC) treebrowser_track_current(); @@ -1200,11 +1200,11 @@ { guint flag; gtk_tree_model_get(model, iter, TREEBROWSER_COLUMN_FLAG, &flag, -1); - return (flag == TREEBROWSER_FLAGS_SEPARATOR ? TRUE : FALSE); + return (flag == TREEBROWSER_FLAGS_SEPARATOR); }
static GtkWidget* -create_view_and_model(void) +create_view_and_model() {
GtkWidget *view; @@ -1249,7 +1249,7 @@ }
static void -create_sidebar(void) +create_sidebar() { GtkWidget *scrollwin; GtkWidget *toolbar; @@ -1365,7 +1365,7 @@ } configure_widgets;
static void -load_settings(void) +load_settings() { GKeyFile *config = g_key_file_new();
@@ -1387,7 +1387,7 @@ }
static gboolean -save_settings(void) +save_settings() { GKeyFile *config = g_key_file_new(); gchar *config_dir = g_path_get_dirname(CONFIG_FILE); @@ -1567,7 +1567,7 @@ }
void -plugin_cleanup(void) +plugin_cleanup() { g_free(addressbar_last_address); g_free(CONFIG_FILE);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org