improved HAVE_VTE handling to prevent crashes
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@60 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
2afef49a5e
commit
b9a545805e
@ -146,6 +146,8 @@ void prefs_init_dialog(void)
|
||||
|
||||
#ifdef HAVE_VTE
|
||||
// VTE settings
|
||||
if (app->have_vte)
|
||||
{
|
||||
extern struct vte_conf *vc;
|
||||
|
||||
widget = lookup_widget(app->prefs_dialog, "font_term");
|
||||
@ -176,6 +178,7 @@ void prefs_init_dialog(void)
|
||||
gtk_widget_set_sensitive(lookup_widget(app->prefs_dialog, "entry_emulation"), TRUE);
|
||||
gtk_widget_set_sensitive(lookup_widget(app->prefs_dialog, "check_scroll_key"), TRUE);
|
||||
gtk_widget_set_sensitive(lookup_widget(app->prefs_dialog, "check_scroll_out"), TRUE);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -386,6 +389,7 @@ void on_prefs_color_choosed(GtkColorButton *widget, gpointer user_data)
|
||||
app->long_line_color = utils_get_hex_from_color(&color);
|
||||
break;
|
||||
}
|
||||
#ifdef HAVE_VTE
|
||||
case 2:
|
||||
{
|
||||
g_free(vc->color_fore);
|
||||
@ -401,6 +405,7 @@ void on_prefs_color_choosed(GtkColorButton *widget, gpointer user_data)
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user