diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2014-12-09 10:08:45 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2014-12-09 10:08:45 +0000 |
commit | 37f7dce9d1bea4a806ef284f0e9dbfe02075729f (patch) | |
tree | c6e69955dc5496a48b972ff39b8f34e2b81ce0b1 /src | |
parent | 2accacd698864a031dce366dacbcd30002d0b7c3 (diff) |
fixed a bug that reorder by DnD was not saved on filter settings.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3456 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r-- | src/prefs_filter.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/prefs_filter.c b/src/prefs_filter.c index 1f46915d..671aab39 100644 --- a/src/prefs_filter.c +++ b/src/prefs_filter.c @@ -120,6 +120,10 @@ static void prefs_filter_row_reordered (GtkTreeModel *model, GtkTreeIter *iter, gpointer data, gpointer user_data); +static void prefs_filter_row_inserted (GtkTreeModel *model, + GtkTreePath *path, + GtkTreeIter *iter, + gpointer user_data); static gint prefs_filter_deleted (GtkWidget *widget, GdkEventAny *event, @@ -278,6 +282,8 @@ static void prefs_filter_create(void) G_CALLBACK(prefs_filter_row_activated), NULL); g_signal_connect_after(G_OBJECT(store), "rows-reordered", G_CALLBACK(prefs_filter_row_reordered), NULL); + g_signal_connect_after(G_OBJECT(store), "row-inserted", + G_CALLBACK(prefs_filter_row_inserted), NULL); /* Up / Down */ @@ -828,6 +834,12 @@ static void prefs_filter_row_reordered(GtkTreeModel *model, rule_list_window.modified = TRUE; } +static void prefs_filter_row_inserted(GtkTreeModel *model, GtkTreePath *path, + GtkTreeIter *iter, gpointer user_data) +{ + rule_list_window.modified = TRUE; +} + static gint prefs_filter_deleted(GtkWidget *widget, GdkEventAny *event, gpointer data) { |