Blame src/terminal-prefs.h

Packit d370c2
/*
Packit d370c2
 * Copyright © 2013 Christian Persch
Packit d370c2
 *
Packit d370c2
 * This program is free software: you can redistribute it and/or modify
Packit d370c2
 * it under the terms of the GNU General Public License as published by
Packit d370c2
 * the Free Software Foundation, either version 3 of the License, or
Packit d370c2
 * (at your option) any later version.
Packit d370c2
 *
Packit d370c2
 * This program is distributed in the hope that it will be useful,
Packit d370c2
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit d370c2
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit d370c2
 * GNU General Public License for more details.
Packit d370c2
 *
Packit d370c2
 * You should have received a copy of the GNU General Public License
Packit d370c2
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
Packit d370c2
 */
Packit d370c2
Packit d370c2
#ifndef TERMINAL_PREFS_H
Packit d370c2
#define TERMINAL_PREFS_H
Packit d370c2
Packit d370c2
#include <gtk/gtk.h>
Packit d370c2
Packit d370c2
#include "terminal-profiles-list.h"
Packit d370c2
Packit d370c2
G_BEGIN_DECLS
Packit d370c2
Packit d370c2
/* FIXME move back to the .c file if profile-editor.c is also merged there,
Packit d370c2
 * also remove the terminal-profiles-list.h incude above. */
Packit d370c2
/* FIXME PrefData is a very bad name, rename to PrefsDialog maybe? */
Packit d370c2
Packit d370c2
/* Everything about a preferences dialog */
Packit d370c2
typedef struct {
Packit d370c2
  TerminalSettingsList *profiles_list;
Packit d370c2
Packit d370c2
  GSettings *selected_profile;
Packit d370c2
  GtkListBoxRow *selected_list_box_row;
Packit d370c2
  char *selected_profile_uuid;  /* a copy thereof, to survive changes to profiles_list */
Packit d370c2
Packit d370c2
  GtkBuilder *builder;
Packit d370c2
  GtkWidget *dialog;
Packit d370c2
  GtkListBox *listbox;
Packit d370c2
  GtkWidget *new_profile_button;
Packit d370c2
  GtkWidget *stack;
Packit d370c2
Packit d370c2
  GArray *profile_signals;
Packit d370c2
  GArray *profile_bindings;
Packit d370c2
} PrefData;
Packit d370c2
Packit d370c2
extern PrefData *the_pref_data;  /* global */
Packit d370c2
Packit d370c2
void terminal_prefs_show_preferences (GSettings *profile, const char *widget_name);
Packit d370c2
Packit d370c2
G_END_DECLS
Packit d370c2
Packit d370c2
#endif /* TERMINAL_PREFS_H */