[gwget] 2009-06-01 David Sedeño <david alderia com>
- From: David Sedeño Fernández <davidsf src gnome org>
- To: svn-commits-list gnome org
- Subject: [gwget] 2009-06-01 David Sedeño <david alderia com>
- Date: Sun, 31 May 2009 18:05:22 -0400 (EDT)
commit f048f07441dd46dc0c03175ac6a671f6586cc007
Author: David Sedeño <david alderia com>
Date: Mon Jun 1 00:04:59 2009 +0200
2009-06-01 David Sedeño <david alderia com>
* src/gwget-application-service.xml, src/gwget-application.{c,h}:
Map the openuriwithdest api call to another funcion.
---
ChangeLog | 5 +++++
src/gwget-application-service.xml | 2 +-
src/gwget-application.c | 17 ++++++++++++++++-
src/gwget-application.h | 7 ++++++-
4 files changed, 28 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index deed64b..37eaf1e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-01 David Sedeño <david alderia com>
+
+ * src/gwget-application-service.xml, src/gwget-application.{c,h}:
+ Map the openuriwithdest api call to another funcion.
+
2009-05-31 David Sedeño <david alderia com>
* src/main.c, src/gwget-application-service.xml: Add OpenURIDest call to
diff --git a/src/gwget-application-service.xml b/src/gwget-application-service.xml
index 53ef589..b769136 100644
--- a/src/gwget-application-service.xml
+++ b/src/gwget-application-service.xml
@@ -17,7 +17,7 @@
</method>
<method name="OpenURIDest">
- <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="gwget_application_open_uri"/>
+ <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="gwget_application_open_uri_with_dest"/>
<arg type="s" name="uri" direction="in"/>
<arg type="s" name="destination_dir" direction="in"/>
<arg type="u" name="timestamp" direction="in"/>
diff --git a/src/gwget-application.c b/src/gwget-application.c
index 6e6e658..690a4ee 100644
--- a/src/gwget-application.c
+++ b/src/gwget-application.c
@@ -141,10 +141,25 @@ gwget_application_open_window (GwgetApplication *application,
return TRUE;
}
-
gboolean
gwget_application_open_uri (GwgetApplication *application,
const char *url,
+ guint32 timestamp,
+ GError **error)
+{
+ GwgetData *gwgetdata;
+
+ gwgetdata = gwget_data_new ((gchar *)url);
+
+ gwget_data_add_download(gwgetdata);
+ gwget_data_start_download(gwgetdata);
+
+ return TRUE;
+}
+
+gboolean
+gwget_application_open_uri_with_dest (GwgetApplication *application,
+ const char *url,
const char *destination_dir,
guint32 timestamp,
GError **error)
diff --git a/src/gwget-application.h b/src/gwget-application.h
index 3b3c498..7c79396 100644
--- a/src/gwget-application.h
+++ b/src/gwget-application.h
@@ -58,9 +58,14 @@ gboolean gwget_application_open_window (GwgetApplication *app
GError **error);
gboolean gwget_application_open_uri (GwgetApplication *application,
const char *uri,
- const char *destination_dir,
guint32 timestamp,
GError **error);
+gboolean gwget_application_open_uri_with_dest (GwgetApplication *application,
+ const char *uri,
+ const char *destination_dir,
+ guint32 timestamp,
+ GError **error);
+
void gwget_application_open_uri_list (GwgetApplication *application,
GSList *uri_list,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]