style fixes

This commit is contained in:
Daniel Micay 2015-09-18 18:53:15 -04:00
parent ba63e3c33c
commit 4b08fd998b
1 changed files with 5 additions and 6 deletions

View File

@ -237,13 +237,12 @@ void launch_browser(char *browser, char *url) {
static void set_size_hints(GtkWindow *window, VteTerminal *vte) { static void set_size_hints(GtkWindow *window, VteTerminal *vte) {
static const GdkWindowHints wh = (GdkWindowHints)(GDK_HINT_RESIZE_INC | GDK_HINT_MIN_SIZE | static const GdkWindowHints wh = (GdkWindowHints)(GDK_HINT_RESIZE_INC | GDK_HINT_MIN_SIZE |
GDK_HINT_BASE_SIZE); GDK_HINT_BASE_SIZE);
GdkGeometry hints; const int char_width = (int)vte_terminal_get_char_width(vte);
const int char_height = (int)vte_terminal_get_char_height(vte);
int padding_left, padding_top, padding_right, padding_bottom; int padding_left, padding_top, padding_right, padding_bottom;
get_vte_padding(vte, &padding_left, &padding_top, &padding_right, &padding_bottom); get_vte_padding(vte, &padding_left, &padding_top, &padding_right, &padding_bottom);
const int char_width = (int)vte_terminal_get_char_width(vte); GdkGeometry hints;
const int char_height = (int)vte_terminal_get_char_height(vte);
hints.base_width = char_width + padding_left + padding_right; hints.base_width = char_width + padding_left + padding_right;
hints.base_height = char_height + padding_top + padding_bottom; hints.base_height = char_height + padding_top + padding_bottom;
hints.min_width = hints.base_width; hints.min_width = hints.base_width;