[epiphany] ephy-session.c: fix opening an empty new epiphany window from command line
- From: Xan Lopez <xan src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-session.c: fix opening an empty new epiphany window from command line
- Date: Thu, 3 Sep 2009 19:24:37 +0000 (UTC)
commit d5db22b6842017772f10aa28d18458f36b025677
Author: Xan Lopez <xan gnome org>
Date: Thu Sep 3 22:23:22 2009 +0300
ephy-session.c: fix opening an empty new epiphany window from command line
By not asking ephy to do silly things.
src/ephy-session.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/ephy-session.c b/src/ephy-session.c
index 5774354..e77d12b 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -648,7 +648,7 @@ session_command_open_uris (EphySession *session,
{
const char *url = uris[i];
EphyNewTabFlags page_flags;
- WebKitNetworkRequest *request;
+ WebKitNetworkRequest *request = NULL;
if (url[0] == '\0')
{
@@ -657,9 +657,9 @@ session_command_open_uris (EphySession *session,
else
{
page_flags = EPHY_NEW_TAB_OPEN_PAGE;
+ request = webkit_network_request_new (url);
}
- request = webkit_network_request_new (url);
embed = ephy_shell_new_tab_full (shell, window,
NULL /* parent tab */,
request,
@@ -667,7 +667,8 @@ session_command_open_uris (EphySession *session,
EPHY_WEB_VIEW_CHROME_ALL,
FALSE /* is popup? */,
user_time);
- g_object_unref (request);
+ if (request)
+ g_object_unref (request);
window = EPHY_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (embed)));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]