[devhelp] Preferences: improve code of bookshelf_book_deleted_cb()



commit b72f9d6d485004a9e831d999b36528178ef8df3c
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Apr 6 07:24:32 2018 +0200

    Preferences: improve code of bookshelf_book_deleted_cb()

 src/dh-preferences.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/dh-preferences.c b/src/dh-preferences.c
index edc9798..2672f62 100644
--- a/src/dh-preferences.c
+++ b/src/dh-preferences.c
@@ -495,8 +495,8 @@ bookshelf_book_deleted_cb (DhBookManager *book_manager,
                            DhPreferences *prefs)
 {
         DhPreferencesPrivate *priv = dh_preferences_get_instance_private (prefs);
-        GtkTreeIter  exact_iter;
-        gboolean     exact_iter_found;
+        GtkTreeIter exact_iter;
+        gboolean exact_iter_found;
 
         bookshelf_find_book (prefs,
                              book,
@@ -505,6 +505,7 @@ bookshelf_book_deleted_cb (DhBookManager *book_manager,
                              &exact_iter_found,
                              NULL,
                              NULL);
+
         if (exact_iter_found) {
                 gtk_list_store_remove (priv->bookshelf_store, &exact_iter);
                 bookshelf_set_language_inconsistent (prefs, dh_book_get_language (book));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]