~ubuntu-branches/ubuntu/utopic/anjuta/utopic-proposed

« back to all changes in this revision

Viewing changes to plugins/git/git-unstage-pane.c

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson, Jackson Doak
  • Date: 2014-07-12 15:17:39 UTC
  • mfrom: (1.4.14)
  • Revision ID: package-import@ubuntu.com-20140712151739-p9xy0ntlgbpm2nxq
Tags: 2:3.12.0-1
* Team upload.

[ Jackson Doak ]
* New upstream release
* Drop 03_valac_0.22.patch, fixed upstream\
* debian/control:
  - Bump b-dep version on libgtk-3-dev (>= 3.6.0), libglib2.0-dev (>= 2.34.0)
  - Bump stardards-version to 3.9.5. No changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
        GList *paths;
26
26
        GitResetFilesCommand *reset_command;
27
27
 
28
 
        paths = git_status_pane_get_selected_commit_items (GIT_STATUS_PANE (plugin->status_pane),
29
 
                                                           ANJUTA_VCS_STATUS_ALL);
 
28
        paths = git_status_pane_get_checked_commit_items (GIT_STATUS_PANE (plugin->status_pane),
 
29
                                                          ANJUTA_VCS_STATUS_ALL);
30
30
 
31
31
        if (paths)
32
32
        {
50
50
        else
51
51
                anjuta_util_dialog_error (NULL, _("No staged files selected."));
52
52
}
 
53
 
 
54
void
 
55
on_git_status_unstage_activated (GtkAction *action, Git *plugin)
 
56
{
 
57
        gchar *path;
 
58
        GList *paths;
 
59
        GitResetFilesCommand *reset_command;
 
60
 
 
61
        path = git_status_pane_get_selected_commit_path (GIT_STATUS_PANE (plugin->status_pane));
 
62
 
 
63
        if (path)
 
64
        {
 
65
                paths = g_list_append (NULL, path);
 
66
 
 
67
                reset_command = git_reset_files_command_new (plugin->project_root_directory,
 
68
                                                             GIT_RESET_FILES_HEAD,
 
69
                                                             paths);
 
70
 
 
71
                g_signal_connect (G_OBJECT (reset_command), "command-finished",
 
72
                                  G_CALLBACK (git_pane_report_errors),
 
73
                                  plugin);
 
74
 
 
75
                g_signal_connect (G_OBJECT (reset_command), "command-finished",
 
76
                                  G_CALLBACK (g_object_unref),
 
77
                                  NULL);
 
78
 
 
79
                anjuta_util_glist_strings_free (paths);
 
80
 
 
81
                anjuta_command_start (ANJUTA_COMMAND (reset_command));
 
82
        }
 
83
}
53
84
 
 
 
b'\\ No newline at end of file'