[balsa/wip/gtk4: 106/351] Emit "rows-reordered" directly



commit ef46810423cf95b0134b1d7112b9d7bdff4f4331
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Wed Dec 20 10:27:27 2017 -0500

    Emit "rows-reordered" directly
    
    mailbox: emit "rows-reordered" directly instead of using the corresponding
    tree-model function to do it. We store the signal number when the
    interface is initialized, so we might as well use it.

 libbalsa/mailbox.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libbalsa/mailbox.c b/libbalsa/mailbox.c
index 9ab6631..921178e 100644
--- a/libbalsa/mailbox.c
+++ b/libbalsa/mailbox.c
@@ -3507,7 +3507,7 @@ lbm_sort(LibBalsaMailbox * mbox, GNode * parent)
     iter.user_data = parent;
     path = parent->parent ? mbox_model_get_path(GTK_TREE_MODEL(mbox), &iter)
                           : gtk_tree_path_new();
-    gtk_tree_model_rows_reordered(GTK_TREE_MODEL(mbox),
+    g_signal_emit(mbox, libbalsa_mbox_model_signals[ROWS_REORDERED], 0,
                                   path, &iter, new_order);
     gtk_tree_path_free(path);
     g_free(new_order);


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