|
Packit Service |
3bdf47 |
/*
|
|
Packit Service |
3bdf47 |
* Copyright © 2001 Havoc Pennington
|
|
Packit Service |
3bdf47 |
* Copyright © 2008, 2010 Christian Persch
|
|
Packit Service |
3bdf47 |
*
|
|
Packit Service |
3bdf47 |
* This program is free software: you can redistribute it and/or modify
|
|
Packit Service |
3bdf47 |
* it under the terms of the GNU General Public License as published by
|
|
Packit Service |
3bdf47 |
* the Free Software Foundation, either version 3 of the License, or
|
|
Packit Service |
3bdf47 |
* (at your option) any later version.
|
|
Packit Service |
3bdf47 |
*
|
|
Packit Service |
3bdf47 |
* This program is distributed in the hope that it will be useful,
|
|
Packit Service |
3bdf47 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
3bdf47 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit Service |
3bdf47 |
* GNU General Public License for more details.
|
|
Packit Service |
3bdf47 |
*
|
|
Packit Service |
3bdf47 |
* You should have received a copy of the GNU General Public License
|
|
Packit Service |
3bdf47 |
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
Packit Service |
3bdf47 |
*/
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
#ifndef TERMINAL_UTIL_H
|
|
Packit Service |
3bdf47 |
#define TERMINAL_UTIL_H
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
#include <gio/gio.h>
|
|
Packit Service |
3bdf47 |
#include <gtk/gtk.h>
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
G_BEGIN_DECLS
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
void terminal_util_show_error_dialog (GtkWindow *transient_parent,
|
|
Packit Service |
3bdf47 |
GtkWidget **weap_ptr,
|
|
Packit Service |
3bdf47 |
GError *error,
|
|
Packit Service |
3bdf47 |
const char *message_format, ...) G_GNUC_PRINTF(4, 5);
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
void terminal_util_show_help (const char *topic);
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
void terminal_util_show_about (void);
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
void terminal_util_set_labelled_by (GtkWidget *widget,
|
|
Packit Service |
3bdf47 |
GtkLabel *label);
|
|
Packit Service |
3bdf47 |
void terminal_util_set_atk_name_description (GtkWidget *widget,
|
|
Packit Service |
3bdf47 |
const char *name,
|
|
Packit Service |
3bdf47 |
const char *desc);
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
void terminal_util_open_url (GtkWidget *parent,
|
|
Packit Service |
3bdf47 |
const char *orig_url,
|
|
Packit Service |
3bdf47 |
TerminalURLFlavor flavor,
|
|
Packit Service |
3bdf47 |
guint32 user_time);
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
void terminal_util_transform_uris_to_quoted_fuse_paths (char **uris);
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
char *terminal_util_concat_uris (char **uris,
|
|
Packit Service |
3bdf47 |
gsize *length);
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
char *terminal_util_get_licence_text (void);
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
GtkBuilder *terminal_util_load_widgets_resource (const char *path,
|
|
Packit Service |
3bdf47 |
const char *main_object_name,
|
|
Packit Service |
3bdf47 |
const char *object_name,
|
|
Packit Service |
3bdf47 |
...);
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
void terminal_util_load_objects_resource (const char *path,
|
|
Packit Service |
3bdf47 |
const char *object_name,
|
|
Packit Service |
3bdf47 |
...);
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
void terminal_util_dialog_focus_widget (GtkBuilder *builder,
|
|
Packit Service |
3bdf47 |
const char *widget_name);
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
gboolean terminal_util_dialog_response_on_delete (GtkWindow *widget);
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
void terminal_util_add_proxy_env (GHashTable *env_table);
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
char **terminal_util_get_etc_shells (void);
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
gboolean terminal_util_get_is_shell (const char *command);
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
GSettings *terminal_g_settings_new (const char *schema_id,
|
|
Packit Service |
3bdf47 |
const char *mandatory_key,
|
|
Packit Service |
3bdf47 |
const GVariantType *mandatory_key_type);
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
const GdkRGBA *terminal_g_settings_get_rgba (GSettings *settings,
|
|
Packit Service |
3bdf47 |
const char *key,
|
|
Packit Service |
3bdf47 |
GdkRGBA *rgba);
|
|
Packit Service |
3bdf47 |
void terminal_g_settings_set_rgba (GSettings *settings,
|
|
Packit Service |
3bdf47 |
const char *key,
|
|
Packit Service |
3bdf47 |
const GdkRGBA *rgba);
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
GdkRGBA *terminal_g_settings_get_rgba_palette (GSettings *settings,
|
|
Packit Service |
3bdf47 |
const char *key,
|
|
Packit Service |
3bdf47 |
gsize *n_colors);
|
|
Packit Service |
3bdf47 |
void terminal_g_settings_set_rgba_palette (GSettings *settings,
|
|
Packit Service |
3bdf47 |
const char *key,
|
|
Packit Service |
3bdf47 |
const GdkRGBA *colors,
|
|
Packit Service |
3bdf47 |
gsize n_colors);
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
void terminal_util_bind_mnemonic_label_sensitivity (GtkWidget *widget);
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
char *terminal_util_number_info (const char *str);
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
char *terminal_util_uri_fixup (const char *uri,
|
|
Packit Service |
3bdf47 |
GError **error);
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
char *terminal_util_hyperlink_uri_label (const char *str);
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
gchar *terminal_util_utf8_make_valid (const gchar *str,
|
|
Packit Service |
3bdf47 |
gssize len) G_GNUC_MALLOC;
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
void terminal_util_load_print_settings (GtkPrintSettings **settings,
|
|
Packit Service |
3bdf47 |
GtkPageSetup **page_setup);
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
void terminal_util_save_print_settings (GtkPrintSettings *settings,
|
|
Packit Service |
3bdf47 |
GtkPageSetup *page_setup);
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
G_END_DECLS
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
#endif /* TERMINAL_UTIL_H */
|