[epiphany] session: Even more code style improvements
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] session: Even more code style improvements
- Date: Mon, 17 Oct 2016 12:09:11 +0000 (UTC)
commit 916474b080ccd0d232d5c5cc6013107551a9f399
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Mon Oct 17 07:08:53 2016 -0500
session: Even more code style improvements
src/ephy-session.c | 27 ++++++++++++++++++---------
1 files changed, 18 insertions(+), 9 deletions(-)
---
diff --git a/src/ephy-session.c b/src/ephy-session.c
index 08f406a..fe80eb3 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -760,15 +760,18 @@ write_window_geometry (xmlTextWriterPtr writer,
/* set window properties */
ret = xmlTextWriterWriteFormatAttribute (writer, (const xmlChar *)"x", "%d",
geometry->x);
- if (ret < 0) return ret;
+ if (ret < 0)
+ return ret;
ret = xmlTextWriterWriteFormatAttribute (writer, (const xmlChar *)"y", "%d",
geometry->y);
- if (ret < 0) return ret;
+ if (ret < 0)
+ return ret;
ret = xmlTextWriterWriteFormatAttribute (writer, (const xmlChar *)"width", "%d",
geometry->width);
- if (ret < 0) return ret;
+ if (ret < 0)
+ return ret;
ret = xmlTextWriterWriteFormatAttribute (writer, (const xmlChar *)"height", "%d",
geometry->height);
@@ -783,28 +786,34 @@ write_ephy_window (xmlTextWriterPtr writer,
int ret;
ret = xmlTextWriterStartElement (writer, (xmlChar *)"window");
- if (ret < 0) return ret;
+ if (ret < 0)
+ return ret;
ret = write_window_geometry (writer, &window->geometry);
- if (ret < 0) return ret;
+ if (ret < 0)
+ return ret;
ret = xmlTextWriterWriteFormatAttribute (writer, (const xmlChar *)"active-tab", "%d",
window->active_tab);
- if (ret < 0) return ret;
+ if (ret < 0)
+ return ret;
if (window->role != NULL) {
ret = xmlTextWriterWriteAttribute (writer,
(const xmlChar *)"role",
(const xmlChar *)window->role);
- if (ret < 0) return ret;
+ if (ret < 0)
+ return ret;
}
for (l = window->tabs; l != NULL; l = l->next) {
SessionTab *tab = (SessionTab *)l->data;
ret = write_tab (writer, tab);
- if (ret < 0) break;
+ if (ret < 0)
+ break;
}
- if (ret < 0) return ret;
+ if (ret < 0)
+ return ret;
ret = xmlTextWriterEndElement (writer); /* window */
return ret;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]