[gedit/dbus] Fix constructing the file list variant
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/dbus] Fix constructing the file list variant
- Date: Mon, 3 May 2010 19:40:05 +0000 (UTC)
commit 8da0c567743edc2641e2594e4541e503fdb5c8c9
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Mon May 3 21:38:21 2010 +0200
Fix constructing the file list variant
gedit/gedit-dbus.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gedit/gedit-dbus.c b/gedit/gedit-dbus.c
index 6223c64..b3c0d0e 100644
--- a/gedit/gedit-dbus.c
+++ b/gedit/gedit-dbus.c
@@ -209,7 +209,7 @@ compose_open_parameters (GeditDBus *dbus, GeditCommandLine *command_line)
gint viewport_y;
GVariant *ret;
- g_variant_builder_init (&file_list, G_VARIANT_TYPE_ARRAY);
+ g_variant_builder_init (&file_list, G_VARIANT_TYPE ("as"));
for (files = gedit_command_line_get_file_list (command_line); files; files = g_slist_next (files))
{
@@ -243,8 +243,6 @@ compose_open_parameters (GeditDBus *dbus, GeditCommandLine *command_line)
viewport_x,
viewport_y);
- g_variant_builder_end (&file_list);
-
return ret;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]