gvfs r1404 - in trunk: . common
- From: otte svn gnome org
- To: svn-commits-list gnome org
- Subject: gvfs r1404 - in trunk: . common
- Date: Wed, 27 Feb 2008 14:29:27 +0000 (GMT)
Author: otte
Date: Wed Feb 27 14:29:27 2008
New Revision: 1404
URL: http://svn.gnome.org/viewvc/gvfs?rev=1404&view=rev
Log:
2008-02-27 Benjamin Otte <otte gnome org>
* common/gmountsource.c: (g_mount_source_ask_question_finish):
Set out parameters for questions, too.
Modified:
trunk/ChangeLog
trunk/common/gmountsource.c
Modified: trunk/common/gmountsource.c
==============================================================================
--- trunk/common/gmountsource.c (original)
+++ trunk/common/gmountsource.c Wed Feb 27 14:29:27 2008
@@ -626,15 +626,15 @@
gboolean *aborted,
gint *choice_out)
{
- AskQuestionData *data;
+ AskQuestionData *data, def= { FALSE, };
GSimpleAsyncResult *simple;
simple = G_SIMPLE_ASYNC_RESULT (result);
if (g_simple_async_result_propagate_error (simple, NULL))
- return FALSE;
-
- data = (AskQuestionData *) g_simple_async_result_get_op_res_gpointer (simple);
+ data = &def;
+ else
+ data = (AskQuestionData *) g_simple_async_result_get_op_res_gpointer (simple);
if (aborted)
*aborted = data->aborted;
@@ -642,7 +642,7 @@
if (choice_out)
*choice_out = data->choice;
- return TRUE;
+ return data != &def;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]