style fixes
This commit is contained in:
parent
ba63e3c33c
commit
4b08fd998b
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue