Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
file_chooser_entry.h
1// SPDX-FileCopyrightText: © 2022 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3/*
4 * This file incorporates work covered by the following copyright and
5 * permission notice:
6 *
7 * ---
8 *
9 * Copyright (C) 2016-2022 Christian Hergert <chergert@redhat.com>
10 *
11 * This file is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Lesser General Public
13 * License as published by the Free Software Foundation; either
14 * version 2.1 of the License, or (at your option) any later version.
15 *
16 * This file is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Lesser General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program. If not, see <http://www.gnu.org/licenses/>.
23 *
24 * ---
25 */
26
27#pragma once
28#include <gtk/gtk.h>
29
30G_BEGIN_DECLS
31
32#define IDE_TYPE_FILE_CHOOSER_ENTRY (ide_file_chooser_entry_get_type ())
33
34G_DECLARE_FINAL_TYPE (
35 IdeFileChooserEntry,
36 ide_file_chooser_entry,
37 IDE,
38 FILE_CHOOSER_ENTRY,
39 GtkWidget)
40
41GtkWidget *
42ide_file_chooser_entry_new (const gchar * title, GtkFileChooserAction action);
43GFile *
44ide_file_chooser_entry_get_file (IdeFileChooserEntry * self);
45void
46ide_file_chooser_entry_set_file (IdeFileChooserEntry * self, GFile * file);
47GtkEntry *
48ide_file_chooser_entry_get_entry (IdeFileChooserEntry * self);
49
50G_END_DECLS