[Goodies-commits] r3404 - ristretto/trunk/src
Stephan Arts
stephan at xfce.org
Sat Oct 20 10:39:06 CEST 2007
Author: stephan
Date: 2007-10-20 08:39:06 +0000 (Sat, 20 Oct 2007)
New Revision: 3404
Modified:
ristretto/trunk/src/main_window.c
Log:
Fix an error with the properties dialog
Modified: ristretto/trunk/src/main_window.c
===================================================================
--- ristretto/trunk/src/main_window.c 2007-10-20 08:18:42 UTC (rev 3403)
+++ ristretto/trunk/src/main_window.c 2007-10-20 08:39:06 UTC (rev 3404)
@@ -1196,6 +1196,7 @@
static void
cb_rstto_main_window_file_properties(GtkWidget *widget, RsttoMainWindow *window)
{
+ GError *error = NULL;
RsttoNavigatorEntry *entry = rstto_navigator_get_file(window->priv->navigator);
if (entry)
{
@@ -1203,9 +1204,15 @@
if(info)
{
gchar *uri = thunar_vfs_path_dup_uri(info->path);
- if(dbus_g_proxy_call(window->priv->filemanager_proxy, "DisplayFileProperties", NULL, G_TYPE_STRING, uri, G_TYPE_STRING, "", NULL) == FALSE)
+ if(dbus_g_proxy_call(window->priv->filemanager_proxy,
+ "DisplayFileProperties",
+ &error,
+ G_TYPE_STRING, uri,
+ G_TYPE_STRING, "",
+ G_TYPE_INVALID,
+ G_TYPE_INVALID) == FALSE)
{
- g_warning("Could not contact dbus-service");
+ g_warning("%s", error->message);
}
g_free(uri);
}
More information about the Goodies-commits
mailing list