Example #1
0
void
activate_action_view_or_open (GtkAction *action,
			      gpointer   data)
{
	FrWindow *window = data;
	GList    *file_list;

	file_list = fr_window_get_file_list_selection (window, FALSE, NULL);
	if (file_list == NULL)
		return;
	fr_window_open_files (window, file_list, FALSE);
	_g_string_list_free (file_list);
}
Example #2
0
void
open_with_cb (GtkWidget *widget,
              void      *callback_data)
{
    FrWindow *window = callback_data;
    GList    *file_list;

    file_list = fr_window_get_file_list_selection (window, FALSE, NULL);
    if (file_list == NULL)
        return;

    fr_window_open_files (window, file_list, TRUE);
    _g_string_list_free (file_list);
}