|
Packit Service |
3bdf47 |
/*
|
|
Packit Service |
3bdf47 |
* Copyright © 2013 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_PREFS_H
|
|
Packit Service |
3bdf47 |
#define TERMINAL_PREFS_H
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
#include <gtk/gtk.h>
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
#include "terminal-profiles-list.h"
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
G_BEGIN_DECLS
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
/* FIXME move back to the .c file if profile-editor.c is also merged there,
|
|
Packit Service |
3bdf47 |
* also remove the terminal-profiles-list.h incude above. */
|
|
Packit Service |
3bdf47 |
/* FIXME PrefData is a very bad name, rename to PrefsDialog maybe? */
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
/* Everything about a preferences dialog */
|
|
Packit Service |
3bdf47 |
typedef struct {
|
|
Packit Service |
3bdf47 |
TerminalSettingsList *profiles_list;
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
GSettings *selected_profile;
|
|
Packit Service |
3bdf47 |
GtkListBoxRow *selected_list_box_row;
|
|
Packit Service |
3bdf47 |
char *selected_profile_uuid; /* a copy thereof, to survive changes to profiles_list */
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
GtkBuilder *builder;
|
|
Packit Service |
3bdf47 |
GtkWidget *dialog;
|
|
Packit Service |
3bdf47 |
GtkListBox *listbox;
|
|
Packit Service |
3bdf47 |
GtkWidget *new_profile_button;
|
|
Packit Service |
3bdf47 |
GtkWidget *stack;
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
GArray *profile_signals;
|
|
Packit Service |
3bdf47 |
GArray *profile_bindings;
|
|
Packit Service |
3bdf47 |
} PrefData;
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
extern PrefData *the_pref_data; /* global */
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
void terminal_prefs_show_preferences (GSettings *profile, const char *widget_name);
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
G_END_DECLS
|
|
Packit Service |
3bdf47 |
|
|
Packit Service |
3bdf47 |
#endif /* TERMINAL_PREFS_H */
|