[devhelp] BookTree: minor cosmetic code changes
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] BookTree: minor cosmetic code changes
- Date: Sat, 9 Dec 2017 15:34:38 +0000 (UTC)
commit c72f2611b1f913725f7e92302f7140a54e6afd8d
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Dec 9 15:23:25 2017 +0100
BookTree: minor cosmetic code changes
- Space out the functions in the header, to have IMHO a better
readability.
- "Attach" the "*" (pointer) to the return value type, not the function
name. The pointer is part of the return value.
src/dh-book-tree.c | 4 ++--
src/dh-book-tree.h | 17 ++++++++++-------
2 files changed, 12 insertions(+), 9 deletions(-)
---
diff --git a/src/dh-book-tree.c b/src/dh-book-tree.c
index 70e93f7..a8cc212 100644
--- a/src/dh-book-tree.c
+++ b/src/dh-book-tree.c
@@ -16,8 +16,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, see <http://www.gnu.org/licenses/>.
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
diff --git a/src/dh-book-tree.h b/src/dh-book-tree.h
index cdfaf45..582a296 100644
--- a/src/dh-book-tree.h
+++ b/src/dh-book-tree.h
@@ -12,8 +12,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, see <http://www.gnu.org/licenses/>.
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DH_BOOK_TREE_H
@@ -41,11 +41,14 @@ struct _DhBookTreeClass {
GtkTreeViewClass parent_class;
};
-GType dh_book_tree_get_type (void) G_GNUC_CONST;
-DhBookTree * dh_book_tree_new (void);
-void dh_book_tree_select_uri (DhBookTree *tree,
- const gchar *uri);
-DhLink *dh_book_tree_get_selected_book (DhBookTree *tree);
+GType dh_book_tree_get_type (void) G_GNUC_CONST;
+
+DhBookTree * dh_book_tree_new (void);
+
+void dh_book_tree_select_uri (DhBookTree *tree,
+ const gchar *uri);
+
+DhLink * dh_book_tree_get_selected_book (DhBookTree *tree);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]