Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
bug_report_dialog.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2020-2022 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
10#ifndef __GUI_WIDGETS_BUG_REPORT_DIALOG_H__
11#define __GUI_WIDGETS_BUG_REPORT_DIALOG_H__
12
13#include <adwaita.h>
14
15#pragma GCC diagnostic push
16#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
17#include <gtksourceview/gtksource.h>
18#pragma GCC diagnostic pop
19
26#define BUG_REPORT_DIALOG_WIDGET_TYPE (bug_report_dialog_widget_get_type ())
27G_DECLARE_FINAL_TYPE (
28 BugReportDialogWidget,
29 bug_report_dialog_widget,
30 Z,
31 BUG_REPORT_DIALOG_WIDGET,
32 AdwAlertDialog)
33
34typedef struct _BugReportDialogWidget
35{
36 AdwAlertDialog parent_instance;
37
38 GtkLabel * top_lbl;
39
40 GtkLabel * backtrace_lbl;
41 GtkLabel * log_lbl;
42 GtkLabel * system_info_lbl;
43
44 GtkTextView * user_input_text_view;
45
46 char * log;
47 char * log_long;
48 char * undo_stack;
49 char * undo_stack_long;
50 char * backtrace;
51 char * system_nfo;
52 bool fatal;
53
54 /* Used when sending automatically. */
55 char * log_file_path;
56 char * log_file_tmpdir;
57 char * screenshot_path;
58 char * screenshot_tmpdir;
59 char * json_str;
60
61} BugReportDialogWidget;
62
66BugReportDialogWidget *
68 GtkWidget * parent,
69 const char * msg_prefix,
70 const char * backtrace,
71 bool fatal);
72
77#endif
BugReportDialogWidget * bug_report_dialog_new(GtkWidget *parent, const char *msg_prefix, const char *backtrace, bool fatal)
Creates and displays the about dialog.