2 * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2012 Hiroyuki Yamamoto and the Claws Mail team
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #include "claws-features.h"
28 #include <glib/gi18n.h>
30 #include <gdk/gdkkeysyms.h>
36 #include "prefs_gtk.h"
37 #include "prefs_summary_open.h"
38 #include "prefs_common.h"
39 #include "manage_window.h"
40 #include "alertpanel.h"
41 #include "displayheader.h"
46 PREFS_SUMMARY_OPEN_HEADER
,
47 PREFS_SUMMARY_OPEN_DATA
,
48 N_PREFS_SUMMARY_OPEN_COLUMNS
51 static struct SummaryOpen
{
55 GtkWidget
*cancel_btn
;
57 GtkWidget
*possible_actions_list_view
;
58 GtkWidget
*actions_list_view
;
61 /* widget creating functions */
62 static void prefs_summary_open_create (void);
64 static void prefs_summary_open_set_dialog (void);
65 static void prefs_summary_open_set_list (void);
67 /* callback functions */
68 static void prefs_summary_open_register_cb (GtkButton
*btn
,
69 gpointer hidden_data
);
70 static void prefs_summary_open_delete_cb (GtkButton
*btn
,
71 gpointer list_view_data
);
72 static void prefs_summary_open_up (void);
73 static void prefs_summary_open_down (void);
75 static gboolean
prefs_summary_open_key_pressed (GtkWidget
*widget
,
78 static void prefs_summary_open_ok (void);
79 static void prefs_summary_open_cancel (void);
80 static gint
prefs_summary_open_deleted (GtkWidget
*widget
,
85 static GtkListStore
*prefs_summary_open_create_store (void);
86 static void prefs_summary_open_insert_action (GtkListStore
*store
,
89 static GtkWidget
*prefs_summary_open_list_view_create (const gchar
*name
);
90 static void prefs_summary_open_create_list_view_columns (GtkWidget
*list_view
,
92 static void actions_list_model_row_changed (GtkTreeModel
*model
,
95 GtkTreeView
*list_view
);
97 static void drag_begin (GtkTreeView
*list_view
,
98 GdkDragContext
*context
,
101 static void drag_end (GtkTreeView
*list_view
,
102 GdkDragContext
*context
,
105 static EntryAction saved_summary_select_prio
[SUMMARY_OPEN_ACTIONS
-1];
107 static gchar
*action_name
[SUMMARY_OPEN_ACTIONS
] =
109 N_("first marked email"),
110 N_("first new email"),
111 N_("first unread email"),
112 N_("last opened email"),
113 N_("last email in the list"),
115 N_("first email in the list")
118 void prefs_summary_open_open(void)
121 if (!summaryopen
.window
) {
122 prefs_summary_open_create();
125 manage_window_set_transient(GTK_WINDOW(summaryopen
.window
));
126 gtk_widget_grab_focus(summaryopen
.ok_btn
);
128 prefs_summary_open_set_dialog();
130 for (i
= 0; i
< SUMMARY_OPEN_ACTIONS
-1; i
++)
131 saved_summary_select_prio
[i
] = prefs_common
.summary_select_prio
[i
];
133 gtk_widget_show(summaryopen
.window
);
134 gtk_window_set_modal(GTK_WINDOW(summaryopen
.window
), TRUE
);
137 static void prefs_summary_open_create(void)
143 GtkWidget
*cancel_btn
;
144 GtkWidget
*confirm_area
;
156 GtkWidget
*list_view_hbox
;
157 GtkWidget
*list_view_hbox1
;
158 GtkWidget
*list_view_hbox2
;
159 GtkWidget
*list_view_scrolledwin
;
160 GtkWidget
*possible_actions_list_view
;
161 GtkWidget
*actions_list_view
;
163 window
= gtkut_window_new(GTK_WINDOW_TOPLEVEL
, "prefs_summary_open");
164 gtk_container_set_border_width (GTK_CONTAINER (window
), 8);
165 gtk_window_set_position (GTK_WINDOW (window
), GTK_WIN_POS_CENTER
);
166 gtk_window_set_resizable(GTK_WINDOW (window
), TRUE
);
168 vbox
= gtk_vbox_new (FALSE
, 6);
169 gtk_widget_show (vbox
);
170 gtk_container_add (GTK_CONTAINER (window
), vbox
);
172 btn_hbox
= gtk_hbox_new (FALSE
, 8);
173 gtk_widget_show (btn_hbox
);
174 gtk_box_pack_end (GTK_BOX (vbox
), btn_hbox
, FALSE
, FALSE
, 0);
176 gtkut_stock_button_set_create(&confirm_area
, &cancel_btn
, GTK_STOCK_CANCEL
,
177 &ok_btn
, GTK_STOCK_OK
,
179 gtk_widget_show (confirm_area
);
180 gtk_box_pack_end (GTK_BOX(btn_hbox
), confirm_area
, FALSE
, FALSE
, 0);
181 gtk_widget_grab_default (ok_btn
);
183 gtk_window_set_title (GTK_WINDOW(window
),
184 _(" Selection when entering a folder"));
185 MANAGE_WINDOW_SIGNALS_CONNECT(window
);
186 g_signal_connect (G_OBJECT(window
), "delete_event",
187 G_CALLBACK(prefs_summary_open_deleted
),
189 g_signal_connect (G_OBJECT(window
), "key_press_event",
190 G_CALLBACK(prefs_summary_open_key_pressed
),
192 g_signal_connect (G_OBJECT(ok_btn
), "clicked",
193 G_CALLBACK(prefs_summary_open_ok
),
195 g_signal_connect (G_OBJECT(cancel_btn
), "clicked",
196 G_CALLBACK(prefs_summary_open_cancel
),
199 vbox1
= gtk_vbox_new (FALSE
, VSPACING
);
200 gtk_widget_show (vbox1
);
201 gtk_box_pack_start (GTK_BOX (vbox
), vbox1
, TRUE
, TRUE
, 0);
202 gtk_container_set_border_width (GTK_CONTAINER (vbox1
), 2);
204 hbox1
= gtk_hbox_new (FALSE
, 8);
205 gtk_widget_show (hbox1
);
206 gtk_box_pack_start (GTK_BOX (vbox1
), hbox1
, FALSE
, TRUE
, 0);
208 /* display headers list */
210 list_view_hbox
= gtk_hbox_new (FALSE
, 10);
211 gtk_widget_show (list_view_hbox
);
212 gtk_box_pack_start (GTK_BOX (vbox1
), list_view_hbox
, TRUE
, TRUE
, 0);
214 list_view_hbox1
= gtk_hbox_new (FALSE
, 8);
215 gtk_widget_show (list_view_hbox1
);
216 gtk_box_pack_start (GTK_BOX (list_view_hbox
), list_view_hbox1
, TRUE
, TRUE
, 0);
218 list_view_scrolledwin
= gtk_scrolled_window_new (NULL
, NULL
);
219 gtk_widget_set_size_request (list_view_scrolledwin
, 200, 210);
220 gtk_widget_show (list_view_scrolledwin
);
221 gtk_box_pack_start (GTK_BOX (list_view_hbox1
), list_view_scrolledwin
,
223 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (list_view_scrolledwin
),
224 GTK_POLICY_AUTOMATIC
,
225 GTK_POLICY_AUTOMATIC
);
226 gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(list_view_scrolledwin
),
229 possible_actions_list_view
= prefs_summary_open_list_view_create
230 (_("Possible selections"));
231 gtk_widget_show (possible_actions_list_view
);
232 gtk_container_add(GTK_CONTAINER(list_view_scrolledwin
), possible_actions_list_view
);
234 btn_vbox
= gtk_vbox_new (FALSE
, 8);
235 gtk_widget_show (btn_vbox
);
236 gtk_box_pack_start (GTK_BOX (list_view_hbox1
), btn_vbox
, FALSE
, FALSE
, 0);
238 reg_btn
= gtk_button_new_from_stock (GTK_STOCK_ADD
);
239 gtk_widget_show (reg_btn
);
240 gtk_box_pack_start (GTK_BOX (btn_vbox
), reg_btn
, FALSE
, TRUE
, 0);
241 g_signal_connect (G_OBJECT (reg_btn
), "clicked",
242 G_CALLBACK (prefs_summary_open_register_cb
),
243 possible_actions_list_view
);
244 del_btn
= gtk_button_new_from_stock (GTK_STOCK_REMOVE
);
245 gtk_widget_show (del_btn
);
246 gtk_box_pack_start (GTK_BOX (btn_vbox
), del_btn
, FALSE
, TRUE
, 0);
250 list_view_hbox2
= gtk_hbox_new (FALSE
, 8);
251 gtk_widget_show (list_view_hbox2
);
252 gtk_box_pack_start (GTK_BOX (list_view_hbox
), list_view_hbox2
, TRUE
, TRUE
, 0);
254 list_view_scrolledwin
= gtk_scrolled_window_new (NULL
, NULL
);
255 gtk_widget_set_size_request (list_view_scrolledwin
, 200, 230);
256 gtk_widget_show (list_view_scrolledwin
);
257 gtk_box_pack_start (GTK_BOX (list_view_hbox2
), list_view_scrolledwin
,
259 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (list_view_scrolledwin
),
260 GTK_POLICY_AUTOMATIC
,
261 GTK_POLICY_AUTOMATIC
);
262 gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(list_view_scrolledwin
),
265 actions_list_view
= prefs_summary_open_list_view_create
266 (_("Selection on folder opening"));
267 g_signal_connect (G_OBJECT (del_btn
), "clicked",
268 G_CALLBACK (prefs_summary_open_delete_cb
),
270 gtk_widget_show (actions_list_view
);
271 gtk_container_add (GTK_CONTAINER (list_view_scrolledwin
),
274 gtk_tree_view_set_reorderable(GTK_TREE_VIEW(actions_list_view
), TRUE
);
275 g_signal_connect(G_OBJECT(actions_list_view
), "drag_begin",
276 G_CALLBACK(drag_begin
),
279 g_signal_connect(G_OBJECT(actions_list_view
), "drag_end",
280 G_CALLBACK(drag_end
),
283 btn_vbox
= gtk_vbox_new (FALSE
, 8);
284 gtk_widget_show (btn_vbox
);
285 gtk_box_pack_start (GTK_BOX (list_view_hbox2
), btn_vbox
, FALSE
, FALSE
, 0);
287 up_btn
= gtk_button_new_from_stock (GTK_STOCK_GO_UP
);
288 gtk_widget_show (up_btn
);
289 gtk_box_pack_start (GTK_BOX (btn_vbox
), up_btn
, FALSE
, FALSE
, 0);
290 g_signal_connect (G_OBJECT (up_btn
), "clicked",
291 G_CALLBACK (prefs_summary_open_up
), NULL
);
293 down_btn
= gtk_button_new_from_stock (GTK_STOCK_GO_DOWN
);
294 gtk_widget_show (down_btn
);
295 gtk_box_pack_start (GTK_BOX (btn_vbox
), down_btn
, FALSE
, FALSE
, 0);
296 g_signal_connect (G_OBJECT (down_btn
), "clicked",
297 G_CALLBACK (prefs_summary_open_down
), NULL
);
300 gtk_widget_show_all(window
);
302 summaryopen
.window
= window
;
303 summaryopen
.ok_btn
= ok_btn
;
304 summaryopen
.cancel_btn
= cancel_btn
;
306 summaryopen
.possible_actions_list_view
= possible_actions_list_view
;
307 summaryopen
.actions_list_view
= actions_list_view
;
310 /* do it SUMMARY_OPEN_ACTIONS-1 times */
311 #define SET_PRIO(p_one,p_two,p_three,p_four) { \
312 prefs_common.summary_select_prio[0] = p_one; \
313 prefs_common.summary_select_prio[1] = p_two; \
314 prefs_common.summary_select_prio[2] = p_three; \
315 prefs_common.summary_select_prio[3] = p_four; \
316 prefs_common.summary_select_prio[4] = ACTION_UNSET; \
317 prefs_common.summary_select_prio[5] = ACTION_UNSET; \
318 prefs_common.summary_select_prio[6] = ACTION_UNSET; \
321 void prefs_summary_open_set_defaults(void)
323 switch (prefs_common
.select_on_entry
) {
324 case SELECTONENTRY_MNU
:
325 SET_PRIO(ACTION_MARKED
, ACTION_NEW
, ACTION_UNREAD
, ACTION_LAST_LIST
); break;
326 case SELECTONENTRY_MUN
:
327 SET_PRIO(ACTION_MARKED
, ACTION_UNREAD
, ACTION_NEW
, ACTION_LAST_LIST
); break;
328 case SELECTONENTRY_NMU
:
329 SET_PRIO(ACTION_NEW
, ACTION_MARKED
, ACTION_UNREAD
, ACTION_LAST_LIST
); break;
330 case SELECTONENTRY_NUM
:
331 SET_PRIO(ACTION_NEW
, ACTION_UNREAD
, ACTION_MARKED
, ACTION_LAST_LIST
); break;
332 case SELECTONENTRY_UNM
:
333 SET_PRIO(ACTION_UNREAD
, ACTION_NEW
, ACTION_MARKED
, ACTION_LAST_LIST
); break;
334 case SELECTONENTRY_UMN
:
335 SET_PRIO(ACTION_UNREAD
, ACTION_MARKED
, ACTION_NEW
, ACTION_LAST_LIST
); break;
336 case SELECTONENTRY_LAST
:
337 SET_PRIO(ACTION_LAST_OPENED
, ACTION_LAST_LIST
, ACTION_UNSET
, ACTION_UNSET
); break;
338 case SELECTONENTRY_NOTHING
:
339 SET_PRIO(ACTION_LAST_LIST
, ACTION_UNSET
, ACTION_UNSET
, ACTION_UNSET
); break;
344 static void prefs_summary_open_set_dialog(void)
346 GtkTreeView
*possible_list_view
= GTK_TREE_VIEW(summaryopen
.possible_actions_list_view
);
347 GtkTreeView
*actions_list_view
= GTK_TREE_VIEW(summaryopen
.actions_list_view
);
348 GtkTreeModel
*model_poss
, *model_act
;
350 gboolean set
= FALSE
;
351 gboolean used
[SUMMARY_OPEN_ACTIONS
-1] = {FALSE
, FALSE
, FALSE
, FALSE
, FALSE
, FALSE
, FALSE
};
353 model_poss
= gtk_tree_view_get_model(possible_list_view
);
354 model_act
= gtk_tree_view_get_model(actions_list_view
);
356 gtk_list_store_clear(GTK_LIST_STORE(model_poss
));
357 gtk_list_store_clear(GTK_LIST_STORE(model_act
));
360 for (i
= 0; i
< SUMMARY_OPEN_ACTIONS
-1; i
++) {
361 EntryAction act
= prefs_common
.summary_select_prio
[i
];
363 if (act
== ACTION_UNSET
)
368 prefs_summary_open_insert_action(GTK_LIST_STORE
369 (model_act
), action_name
[act
], act
);
372 /* backward compat */
373 prefs_summary_open_set_defaults();
377 for (i
= 1; i
< SUMMARY_OPEN_ACTIONS
; i
++) {
379 prefs_summary_open_insert_action(GTK_LIST_STORE
380 (model_poss
), action_name
[i
], i
);
385 static void prefs_summary_open_set_list(void)
392 model
= gtk_tree_view_get_model(GTK_TREE_VIEW(summaryopen
.actions_list_view
));
393 while (gtk_tree_model_iter_nth_child(model
, &iter
, NULL
, row
)) {
394 gtk_tree_model_get(model
, &iter
, PREFS_SUMMARY_OPEN_DATA
, &data
, -1);
395 prefs_common
.summary_select_prio
[row
] = GPOINTER_TO_INT(data
);
398 for (; row
< SUMMARY_OPEN_ACTIONS
-1; row
++) {
399 prefs_common
.summary_select_prio
[row
] = ACTION_UNSET
;
403 static void prefs_summary_open_delete_cb(GtkButton
*btn
, gpointer list_view_data
)
405 GtkTreeView
*list_view
= GTK_TREE_VIEW(list_view_data
);
407 GtkListStore
*store
= GTK_LIST_STORE(gtk_tree_view_get_model(list_view
));
408 GtkTreeSelection
*selection
= gtk_tree_view_get_selection(list_view
);
410 GtkTreeView
*possible_list_view
= GTK_TREE_VIEW(summaryopen
.possible_actions_list_view
);
411 GtkTreeModel
*model
, *model_poss
;
414 model
= gtk_tree_view_get_model(list_view
);
415 model_poss
= gtk_tree_view_get_model(possible_list_view
);
417 if (!gtk_tree_selection_get_selected(selection
, NULL
, &iter
))
420 gtk_tree_model_get(model
, &iter
, PREFS_SUMMARY_OPEN_DATA
, &data
, -1);
424 gtk_list_store_remove(store
, &iter
);
426 i
= GPOINTER_TO_INT(data
);
427 prefs_summary_open_insert_action(GTK_LIST_STORE
428 (model_poss
), action_name
[i
], i
);
430 prefs_summary_open_set_list();
433 static void prefs_summary_open_register_cb(GtkButton
*btn
, gpointer list_view_data
)
435 GtkTreeView
*possible_list_view
= GTK_TREE_VIEW(list_view_data
);
436 GtkTreeView
*list_view
= GTK_TREE_VIEW(summaryopen
.actions_list_view
);
438 GtkListStore
*store
= GTK_LIST_STORE(gtk_tree_view_get_model(possible_list_view
));
439 GtkTreeSelection
*selection
= gtk_tree_view_get_selection(possible_list_view
);
441 GtkTreeModel
*model
, *model_poss
;
444 model
= gtk_tree_view_get_model(list_view
);
445 model_poss
= gtk_tree_view_get_model(possible_list_view
);
447 if (!gtk_tree_selection_get_selected(selection
, NULL
, &iter
))
450 gtk_tree_model_get(model_poss
, &iter
, PREFS_SUMMARY_OPEN_DATA
, &data
, -1);
454 gtk_list_store_remove(store
, &iter
);
456 i
= GPOINTER_TO_INT(data
);
457 prefs_summary_open_insert_action(GTK_LIST_STORE
458 (model
), action_name
[i
], i
);
460 prefs_summary_open_set_list();
463 static void prefs_summary_open_up(void)
465 GtkTreePath
*prev
, *sel
, *try;
467 GtkListStore
*store
= NULL
;
468 GtkTreeModel
*model
= NULL
;
471 if (!gtk_tree_selection_get_selected
472 (gtk_tree_view_get_selection
473 (GTK_TREE_VIEW(summaryopen
.actions_list_view
)),
477 store
= (GtkListStore
*)model
;
478 sel
= gtk_tree_model_get_path(GTK_TREE_MODEL(store
), &isel
);
482 /* no move if we're at row 0... */
483 try = gtk_tree_path_copy(sel
);
484 if (!gtk_tree_path_prev(try)) {
485 gtk_tree_path_free(try);
486 gtk_tree_path_free(sel
);
491 gtk_tree_model_get_iter(GTK_TREE_MODEL(store
),
493 gtk_list_store_swap(store
, &iprev
, &isel
);
495 gtk_tree_path_free(sel
);
496 gtk_tree_path_free(prev
);
497 prefs_summary_open_set_list();
500 static void prefs_summary_open_down(void)
502 GtkListStore
*store
= NULL
;
503 GtkTreeModel
*model
= NULL
;
504 GtkTreeIter next
, sel
;
507 if (!gtk_tree_selection_get_selected
508 (gtk_tree_view_get_selection
509 (GTK_TREE_VIEW(summaryopen
.actions_list_view
)),
513 store
= (GtkListStore
*)model
;
514 try = gtk_tree_model_get_path(GTK_TREE_MODEL(store
), &sel
);
519 if (gtk_tree_model_iter_next(GTK_TREE_MODEL(store
), &next
))
520 gtk_list_store_swap(store
, &next
, &sel
);
522 gtk_tree_path_free(try);
523 prefs_summary_open_set_list();
526 static gboolean
prefs_summary_open_key_pressed(GtkWidget
*widget
,
530 if (event
&& event
->keyval
== GDK_KEY_Escape
)
531 prefs_summary_open_cancel();
535 static void prefs_summary_open_ok(void)
539 /* force an empty list to be at least ACTION_NONE */
540 if (prefs_common
.summary_select_prio
[0] == ACTION_UNSET
)
541 prefs_common
.summary_select_prio
[0] = ACTION_NOTHING
;
543 for (i
= 0; i
< SUMMARY_OPEN_ACTIONS
-1; i
++)
544 saved_summary_select_prio
[i
] = prefs_common
.summary_select_prio
[i
];
546 gtk_widget_hide(summaryopen
.window
);
547 gtk_window_set_modal(GTK_WINDOW(summaryopen
.window
), FALSE
);
550 static void prefs_summary_open_cancel(void)
553 for (i
= 0; i
< SUMMARY_OPEN_ACTIONS
-1; i
++)
554 prefs_common
.summary_select_prio
[i
] = saved_summary_select_prio
[i
];
556 gtk_widget_hide(summaryopen
.window
);
559 static gint
prefs_summary_open_deleted(GtkWidget
*widget
, GdkEventAny
*event
,
562 prefs_summary_open_cancel();
566 static GtkListStore
*prefs_summary_open_create_store(void)
568 return gtk_list_store_new(N_PREFS_SUMMARY_OPEN_COLUMNS
,
574 static void prefs_summary_open_insert_action(GtkListStore
*store
,
581 gtk_list_store_append(store
, &iter
);
582 gtk_list_store_set(store
, &iter
,
583 PREFS_SUMMARY_OPEN_HEADER
,
585 PREFS_SUMMARY_OPEN_DATA
, GINT_TO_POINTER(dp
),
589 static GtkWidget
*prefs_summary_open_list_view_create(const gchar
*name
)
591 GtkWidget
*list_view
;
592 GtkTreeSelection
*selector
;
595 model
= GTK_TREE_MODEL(prefs_summary_open_create_store());
596 list_view
= gtk_tree_view_new_with_model(model
);
597 g_object_unref(G_OBJECT(model
));
599 gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(list_view
),
600 prefs_common
.use_stripes_everywhere
);
602 selector
= gtk_tree_view_get_selection(GTK_TREE_VIEW(list_view
));
603 gtk_tree_selection_set_mode(selector
, GTK_SELECTION_BROWSE
);
605 prefs_summary_open_create_list_view_columns(GTK_WIDGET(list_view
), name
);
610 static void prefs_summary_open_create_list_view_columns(GtkWidget
*list_view
,
613 GtkTreeViewColumn
*column
;
614 GtkCellRenderer
*renderer
;
616 renderer
= gtk_cell_renderer_text_new();
617 column
= gtk_tree_view_column_new_with_attributes
618 (name
, renderer
, "text", PREFS_SUMMARY_OPEN_HEADER
, NULL
);
619 gtk_tree_view_append_column(GTK_TREE_VIEW(list_view
), column
);
623 *\brief Called as a result of a drag & drop
625 static void actions_list_model_row_changed(GtkTreeModel
*model
,
628 GtkTreeView
*list_view
)
633 *\brief Called as a result of a gtk_list_store_swap()
635 static void drag_begin(GtkTreeView
*list_view
,
636 GdkDragContext
*context
,
639 /* XXX unfortunately a completed drag & drop does not emit
640 * a "rows_reordered" signal, but a "row_changed" signal.
641 * So during drag and drop, listen to "row_changed", and
642 * update the account list accordingly */
644 GtkTreeModel
*model
= gtk_tree_view_get_model(list_view
);
645 g_signal_connect(G_OBJECT(model
), "row_changed",
646 G_CALLBACK(actions_list_model_row_changed
),
650 static void drag_end(GtkTreeView
*list_view
,
651 GdkDragContext
*context
,
654 GtkTreeModel
*model
= gtk_tree_view_get_model(list_view
);
655 g_signal_handlers_disconnect_by_func(G_OBJECT(model
),
656 G_CALLBACK(actions_list_model_row_changed
),
658 prefs_summary_open_set_list();