[Xfce4-commits] [apps/xfce4-terminal] 01/01: Fix initial terminal geometry: it's now very precise on GTK 3.20
noreply at xfce.org
noreply at xfce.org
Tue Jul 12 16:44:02 CEST 2016
This is an automated email from the git hooks/post-receive script.
f2404 pushed a commit to branch master
in repository apps/xfce4-terminal.
commit f7b44ee30288365815da5848219921ca97a1001e
Author: Igor <f2404 at yandex.ru>
Date: Tue Jul 12 17:43:50 2016 +0300
Fix initial terminal geometry: it's now very precise on GTK 3.20
---
terminal/terminal-app.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/terminal/terminal-app.c b/terminal/terminal-app.c
index b4598a6..8f17d41 100644
--- a/terminal/terminal-app.c
+++ b/terminal/terminal-app.c
@@ -620,8 +620,6 @@ terminal_app_open_window (TerminalApp *app,
TerminalScreen *active_terminal;
gint mask = NoValue;
guint width, height;
- glong char_width = 1, char_height = 1;
- gint xpad = 0, ypad = 0;
#endif
terminal_return_if_fail (TERMINAL_IS_APP (app));
@@ -755,8 +753,7 @@ terminal_app_open_window (TerminalApp *app,
{
active_terminal = terminal_window_get_active (TERMINAL_WINDOW (window));
if (G_LIKELY (active_terminal != NULL))
- terminal_screen_get_geometry (active_terminal, &char_width, &char_height, &xpad, &ypad);
- gtk_window_set_default_size (GTK_WINDOW (window), width * char_width + xpad, height * char_height + ypad);
+ terminal_screen_set_size (active_terminal, width, height);
}
else
#else
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list