1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
/*
* Copyright © 2001 Havoc Pennington
* Copyright © 2008 Christian Persch
* Copyright (C) 2012-2021 MATE Developers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef TERMINAL_UTIL_H
#define TERMINAL_UTIL_H
#include <gtk/gtk.h>
#include "terminal-screen.h"
G_BEGIN_DECLS
#define CONF_PROXY_SCHEMA "org.gnome.system.proxy"
#define CONF_HTTP_PROXY_SCHEMA "org.gnome.system.proxy.http"
#define CONF_HTTPS_PROXY_SCHEMA "org.gnome.system.proxy.https"
#define CONF_FTP_PROXY_SCHEMA "org.gnome.system.proxy.ftp"
#define CONF_SOCKS_PROXY_SCHEMA "org.gnome.system.proxy.socks"
void terminal_util_set_unique_role (GtkWindow *window, const char *prefix);
void terminal_util_show_error_dialog (GtkWindow *transient_parent,
GtkWidget **weap_ptr,
GError *error,
const char *message_format, ...) G_GNUC_PRINTF(4, 5);
void terminal_util_show_help (const char *topic, GtkWindow *transient_parent);
void terminal_util_set_labelled_by (GtkWidget *widget,
GtkLabel *label);
void terminal_util_set_atk_name_description (GtkWidget *widget,
const char *name,
const char *desc);
void terminal_util_open_url (GtkWidget *parent,
const char *orig_url,
TerminalURLFlavour flavor,
guint32 user_time);
char *terminal_util_resolve_relative_path (const char *path,
const char *relative_path);
void terminal_util_transform_uris_to_quoted_fuse_paths (char **uris);
char *terminal_util_concat_uris (char **uris,
gsize *length);
char *terminal_util_get_licence_text (void);
gboolean terminal_util_load_builder_resource (const char *path,
const char *object_name,
...);
gboolean terminal_util_dialog_response_on_delete (GtkWindow *widget);
void terminal_util_key_file_set_string_escape (GKeyFile *key_file,
const char *group,
const char *key,
const char *string);
char *terminal_util_key_file_get_string_unescape (GKeyFile *key_file,
const char *group,
const char *key,
GError **error);
void terminal_util_key_file_set_argv (GKeyFile *key_file,
const char *group,
const char *key,
int argc,
char **argv);
char **terminal_util_key_file_get_argv (GKeyFile *key_file,
const char *group,
const char *key,
int *argc,
GError **error);
void terminal_util_add_proxy_env (GHashTable *env_table);
typedef enum
{
FLAG_INVERT_BOOL = 1 << 0,
} PropertyChangeFlags;
void terminal_util_bind_object_property_to_widget (GObject *object,
const char *object_prop,
GtkWidget *widget,
PropertyChangeFlags flags);
void terminal_util_x11_clear_demands_attention (GdkWindow *window);
G_END_DECLS
#endif /* TERMINAL_UTIL_H */
|