[devhelp] book-manager: spring clean-up
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] book-manager: spring clean-up
- Date: Sun, 24 May 2015 08:44:32 +0000 (UTC)
commit e01a5a76ba42c2c7c60ff2531e5e30bff26c5378
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat May 23 19:54:42 2015 +0200
book-manager: spring clean-up
- remove useless function prototypes
- misc other clean-up
src/dh-book-manager.c | 15 +++++++--------
1 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/src/dh-book-manager.c b/src/dh-book-manager.c
index c0362d3..032c91e 100644
--- a/src/dh-book-manager.c
+++ b/src/dh-book-manager.c
@@ -71,9 +71,6 @@ static gint signals[LAST_SIGNAL] = { 0 };
G_DEFINE_TYPE_WITH_PRIVATE (DhBookManager, dh_book_manager, G_TYPE_OBJECT);
-static void dh_book_manager_init (DhBookManager *book_manager);
-static void dh_book_manager_class_init (DhBookManagerClass *klass);
-
static void book_manager_load_books_disabled (DhBookManager *book_manager);
static void book_manager_add_from_filepath (DhBookManager *book_manager,
@@ -189,8 +186,8 @@ dh_book_manager_class_init (DhBookManagerClass *klass)
g_object_class_install_property (object_class,
PROP_GROUP_BY_LANGUAGE,
g_param_spec_boolean ("group-by-language",
- ("Group by language"),
- ("TRUE if books should be grouped by
language"),
+ "Group by language",
+ "TRUE if books should be grouped by language",
FALSE,
(G_PARAM_READWRITE |
G_PARAM_STATIC_NAME |
@@ -211,8 +208,10 @@ dh_book_manager_init (DhBookManager *book_manager)
book_manager_load_books_disabled (book_manager);
g_settings_bind (dh_settings_peek_contents_settings (priv->settings),
- "group-books-by-language", book_manager,
- "group-by-language", G_SETTINGS_BIND_DEFAULT);
+ "group-books-by-language",
+ book_manager,
+ "group-by-language",
+ G_SETTINGS_BIND_DEFAULT);
}
static void
@@ -366,7 +365,7 @@ book_manager_get_book_path (const gchar *base_path,
g_free (tmp);
if (g_file_test (book_path, G_FILE_TEST_EXISTS)) {
- return book_path;;
+ return book_path;
}
g_free (book_path);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]