Branch: refs/heads/master Author: Frank Lanitz frank@frank.uvena.de Committer: Frank Lanitz frank@frank.uvena.de Date: Mon, 28 Oct 2013 07:14:55 UTC Commit: 612f05b0038b0e107fb92c8fce663b866812ad7e https://github.com/geany/geany-plugins/commit/612f05b0038b0e107fb92c8fce663b...
Log Message: ----------- Treebrwoser: Removing some unused code
Modified Paths: -------------- treebrowser/src/treebrowser.c
Modified: treebrowser/src/treebrowser.c 15 files changed, 5 insertions(+), 10 deletions(-) =================================================================== @@ -603,7 +603,6 @@ enum gchar **lines, **line; GtkTreeIter iter; gchar *pos; - gchar *name; GdkPixbuf *icon = NULL;
if (! CONFIG_SHOW_BOOKMARKS) @@ -646,10 +645,7 @@ enum if (pos != NULL) { *pos = '\0'; - name = pos + 1; } - else - name = NULL; } path_full = g_filename_from_uri(*line, NULL, NULL); if (path_full != NULL) @@ -809,12 +805,11 @@ enum gboolean founded = FALSE, global_founded = FALSE; gchar *new = NULL; gchar **root_segments = NULL, **find_segments = NULL; - guint root_segments_n = 0, find_segments_n = 0; + guint find_segments_n = 0;
root_segments = g_strsplit(root, G_DIR_SEPARATOR_S, 0); find_segments = g_strsplit(find, G_DIR_SEPARATOR_S, 0);
- root_segments_n = g_strv_length(root_segments)-1; find_segments_n = g_strv_length(find_segments)-1;
@@ -1432,7 +1427,7 @@ enum GtkTreeIter iter; GtkTreeModel *model; GtkTreePath *path; - + if (event->keyval == GDK_space) { if (gtk_tree_selection_get_selected(gtk_tree_view_get_selection(GTK_TREE_VIEW(widget)), &model, &iter)) @@ -1454,7 +1449,7 @@ enum { gchar *name = NULL, *uri = NULL; GtkWidget *menu; - + if (gtk_tree_selection_get_selected(gtk_tree_view_get_selection(GTK_TREE_VIEW(widget)), &model, &iter)) gtk_tree_model_get(GTK_TREE_MODEL(treestore), &iter, TREEBROWSER_COLUMN_NAME, &name, @@ -1466,7 +1461,7 @@ enum
g_free(name); g_free(uri); - + return TRUE; } if (event->keyval == GDK_Left) @@ -2038,7 +2033,7 @@ enum gtk_button_set_focus_on_click(GTK_BUTTON(configure_widgets.SHOW_BOOKMARKS), FALSE); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(configure_widgets.SHOW_BOOKMARKS), CONFIG_SHOW_BOOKMARKS); gtk_box_pack_start(GTK_BOX(vbox), configure_widgets.SHOW_BOOKMARKS, FALSE, FALSE, 0); - + configure_widgets.OPEN_NEW_FILES = gtk_check_button_new_with_label(_("Open new files")); gtk_button_set_focus_on_click(GTK_BUTTON(configure_widgets.OPEN_NEW_FILES ), FALSE); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(configure_widgets.OPEN_NEW_FILES ), CONFIG_OPEN_NEW_FILES);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org