Commit 83815cba authored by Antenore Gatta's avatar Antenore Gatta

Added VTE color schemes

parent 2564d60c
......@@ -127,6 +127,9 @@ if(NOT REMMINA_DATADIR)
set(REMMINA_RUNTIME_DATADIR "${REMMINA_DATADIR}")
endif()
endif()
if(NOT REMMINA_TERM_CS_DIR)
set(REMMINA_TERM_CS_DIR "${REMMINA_DATADIR}/remmina/term_colors")
endif()
if(NOT REMMINA_LOCALEDIR)
set(REMMINA_LOCALEDIR "${CMAKE_INSTALL_FULL_LOCALEDIR}")
if(NOT REMMINA_RUNTIME_LOCALEDIR)
......@@ -224,6 +227,7 @@ endif()
if(GTK_FOUND)
add_subdirectory(remmina)
add_subdirectory(data)
add_subdirectory(plugins)
add_subdirectory(plugins/secret)
endif()
......
......@@ -19,10 +19,11 @@
#define GETTEXT_PACKAGE remmina
#define REMMINA_RUNTIME_DATADIR "${REMMINA_RUNTIME_DATADIR}"
#define REMMINA_RUNTIME_LOCALEDIR "${REMMINA_RUNTIME_LOCALEDIR}"
#define REMMINA_RUNTIME_PLUGINDIR "${REMMINA_RUNTIME_PLUGINDIR}"
#define REMMINA_RUNTIME_UIDIR "${REMMINA_RUNTIME_UIDIR}"
#define REMMINA_RUNTIME_DATADIR "${REMMINA_RUNTIME_DATADIR}"
#define REMMINA_RUNTIME_LOCALEDIR "${REMMINA_RUNTIME_LOCALEDIR}"
#define REMMINA_RUNTIME_PLUGINDIR "${REMMINA_RUNTIME_PLUGINDIR}"
#define REMMINA_RUNTIME_UIDIR "${REMMINA_RUNTIME_UIDIR}"
#define REMMINA_RUNTIME_EXTERNAL_TOOLS_DIR "${REMMINA_RUNTIME_EXTERNAL_TOOLS_DIR}"
#define REMMINA_RUNTIME_TERM_CS_DIR "${REMMINA_TERM_CS_DIR}"
#endif
......@@ -98,7 +98,7 @@ void remmina_pref_on_color_scheme_selected(GtkWidget *widget, gpointer user_data
GFile *source;
GFile *destination;
sourcepath = gtk_file_chooser_get_filename(remmina_pref_dialog->filechooserbutton_terminal_color_scheme);
sourcepath = gtk_file_chooser_get_filename(remmina_pref_dialog->button_term_cs);
source = g_file_new_for_path(sourcepath);
remmina_dir = g_build_path( "/", g_get_user_config_dir(), g_get_prgname(), NULL);
......@@ -602,7 +602,8 @@ GtkDialog* remmina_pref_dialog_new(gint default_tab, GtkWindow *parent)
remmina_pref_dialog->colorbutton_color15 = GTK_COLOR_BUTTON(GET_OBJECT("colorbutton_color15"));
#if defined (HAVE_LIBSSH) && defined (HAVE_LIBVTE)
#if VTE_CHECK_VERSION(0, 38, 0)
remmina_pref_dialog->filechooserbutton_terminal_color_scheme = GTK_FILE_CHOOSER(GET_OBJECT("filechooserbutton_terminal_color_scheme"));
remmina_pref_dialog->button_term_cs = GTK_FILE_CHOOSER(GET_OBJECT("button_term_cs"));
gtk_file_chooser_set_current_folder( GTK_FILE_CHOOSER(remmina_pref_dialog->button_term_cs), REMMINA_RUNTIME_TERM_CS_DIR);
#endif
#endif
......
......@@ -125,7 +125,7 @@ typedef struct _RemminaPrefDialog {
GtkColorButton *colorbutton_color13;
GtkColorButton *colorbutton_color14;
GtkColorButton *colorbutton_color15;
GtkFileChooser *filechooserbutton_terminal_color_scheme;
GtkFileChooser *button_term_cs;
RemminaPrefDialogPriv *priv;
} RemminaPrefDialog;
......
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.22.0
<!-- Generated with glade 3.22.0
Remmina Preferences Dialog -
Copyright (C) Antenore Gatta & Giovanni Panozzo 2014-2018
......@@ -1823,7 +1823,7 @@ Author: Antenore Gatta
</packing>
</child>
<child>
<object class="GtkFileChooserButton" id="filechooserbutton_terminal_color_scheme">
<object class="GtkFileChooserButton" id="button_term_cs">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Chose a color scheme file, You can download one from https://github.com/mbadolato/iTerm2-Color-Schemes.</property>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment