diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-10-26 18:39:15 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-10-26 18:39:15 +0100 |
| commit | c4db474055a604156e1acf162991e625fd340fa5 (patch) | |
| tree | 237ebb6df66b2b06c2fb58c8b38dc0e0e1973b7a /gvfs/gvfs.c | |
| parent | 0f7bc5aa0395856a875a3f2e7dc5bce7b5cf612f (diff) | |
| download | tuxcmd-modules-c4db474055a604156e1acf162991e625fd340fa5.tar.xz | |
Plugin interface: pass cancellation button id in ask_question callback
Diffstat (limited to 'gvfs/gvfs.c')
| -rw-r--r-- | gvfs/gvfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gvfs/gvfs.c b/gvfs/gvfs.c index 2e42bea..557f08c 100644 --- a/gvfs/gvfs.c +++ b/gvfs/gvfs.c @@ -216,7 +216,8 @@ ask_question_cb (GMountOperation *op, choice = -1; if (globs->callback_ask_question) { fprintf (stderr, " (II) Spawning callback_ask_question (0x%.16llX)...\n", (unsigned long long) globs->callback_ask_question); - globs->callback_ask_question (message, choices, &choice, globs->callbacks_data); + /* At this moment, only SFTP uses ask_question and the second button is cancellation */ + globs->callback_ask_question (message, choices, &choice, 1, globs->callbacks_data); fprintf (stderr, " (II) Received choice = %d\n", choice); if (choice >= 0) { |
