GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit 31ca80fd authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

app/widgets/dbus-service.xml use "uri" instead of "filename" in the D-Bus

2007-04-21  Sven Neumann  <sven@gimp.org>

	* app/widgets/dbus-service.xml
	* app/widgets/gimpdbusservice.[ch]: use "uri" instead of 
"filename"
	in the D-Bus methods.


svn path=/trunk/; revision=22298
parent 83443c64
2007-04-21 Sven Neumann <sven@gimp.org>
* app/widgets/dbus-service.xml
* app/widgets/gimpdbusservice.[ch]: use "uri" instead of "filename"
in the D-Bus methods.
2007-04-20 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/script-fu-console.c: enable word-wrapping in
......@@ -6,11 +6,11 @@
<annotation name="org.freedesktop.DBus.GLib.CSymbol"
value="gimp_dbus_service" />
<method name="Open">
<arg type="s" name="filename" direction="in" />
<arg type="s" name="uri" direction="in" />
<arg type="b" name="success" direction="out" />
</method>
<method name="OpenAsNew">
<arg type="s" name="filename" direction="in" />
<arg type="s" name="uri" direction="in" />
<arg type="b" name="success" direction="out" />
</method>
<method name="Activate" />
......
......@@ -70,30 +70,30 @@ gimp_dbus_service_new (Gimp *gimp)
gboolean
gimp_dbus_service_open (GimpDBusService *service,
const gchar *filename,
const gchar *uri,
gboolean *success,
GError **dbus_error)
{
g_return_val_if_fail (GIMP_IS_DBUS_SERVICE (service), FALSE);
g_return_val_if_fail (filename != NULL, FALSE);
g_return_val_if_fail (uri != NULL, FALSE);
g_return_val_if_fail (success != NULL, FALSE);
*success = file_open_from_command_line (service->gimp, filename, FALSE);
*success = file_open_from_command_line (service->gimp, uri, FALSE);
return TRUE;
}
gboolean
gimp_dbus_service_open_as_new (GimpDBusService *service,
const gchar *filename,
const gchar *uri,
gboolean *success,
GError **dbus_error)
{
g_return_val_if_fail (GIMP_IS_DBUS_SERVICE (service), FALSE);
g_return_val_if_fail (filename != NULL, FALSE);
g_return_val_if_fail (uri != NULL, FALSE);
g_return_val_if_fail (success != NULL, FALSE);
*success = file_open_from_command_line (service->gimp, filename, TRUE);
*success = file_open_from_command_line (service->gimp, uri, TRUE);
return TRUE;
}
......
......@@ -59,11 +59,11 @@ GType gimp_dbus_service_get_type (void) G_GNUC_CONST;
GObject * gimp_dbus_service_new (Gimp *gimp);
gboolean gimp_dbus_service_open (GimpDBusService *service,
const gchar *filename,
const gchar *uri,
gboolean *success,
GError **dbus_error);
gboolean gimp_dbus_service_open_as_new (GimpDBusService *service,
const gchar *filename,
const gchar *uri,
gboolean *success,
GError **dbus_error);
gboolean gimp_dbus_service_activate (GimpDBusService *service,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment