Commit 12b5342a authored by Christian Neumair's avatar Christian Neumair Committed by Christian Neumair

Treat "" CORBA strings as NULL.

2008-05-19  Christian Neumair  <cneumair@gnome.org>

	* src/nautilus-shell.c (corba_open_windows),
	(corba_open_default_window):
	Treat "" CORBA strings as NULL.

svn path=/trunk/; revision=14171
parent 715a6e81
2008-05-19 Christian Neumair <cneumair@gnome.org>
* src/nautilus-shell.c (corba_open_windows),
(corba_open_default_window):
Treat "" CORBA strings as NULL.
2008-05-19 Christian Neumair <cneumair@gnome.org>
* src/nautilus-shell.c (open_window):
......
......@@ -224,8 +224,8 @@ corba_open_windows (PortableServer_Servant servant,
data = g_new0 (OpenWindowData, 1);
data->shell = NAUTILUS_SHELL (bonobo_object_from_servant (servant));
data->startup_id = g_strdup (startup_id);
data->geometry = g_strdup (geometry);
data->startup_id = strcmp (startup_id, "") ? g_strdup (startup_id) : NULL;
data->geometry = strcmp (geometry, "") ? g_strdup (geometry) : NULL;
data->browser_window = browser_window;
for (i = 0; i < list->_length; i++) {
......@@ -251,8 +251,8 @@ corba_open_default_window (PortableServer_Servant servant,
data = g_new0 (OpenWindowData, 1);
data->shell = NAUTILUS_SHELL (bonobo_object_from_servant (servant));
data->startup_id = g_strdup (startup_id);
data->geometry = g_strdup (geometry);
data->startup_id = strcmp (startup_id, "") ? g_strdup (startup_id) : NULL;
data->geometry = strcmp (geometry, "") ? g_strdup (geometry) : NULL;
data->browser_window = browser_window;
g_idle_add (open_windows_at_idle, data);
......
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