GNOME Bugzilla – Bug 758841
Vte-CRITICAL **: glong vte_terminal_get_char_height/height(): assertion 'gtk_widget_get_realized()' failed
Last modified: 2015-11-30 16:24:27 UTC
Summary: Commit 7dcde66 introduced a regression with client-side decorations. (gnome-terminal-server:10109): Vte-CRITICAL **: glong vte_terminal_get_char_width(VteTerminal*): assertion 'gtk_widget_get_realized(&terminal->widget)' failed (gnome-terminal-server:10109): Vte-CRITICAL **: glong vte_terminal_get_char_height(VteTerminal*): assertion 'gtk_widget_get_realized(&terminal->widget)' failed And the terminal window ends up with a completely wrong size. How reproducible: Always Steps to reproduce: 1. Install vte from git master 2. Run gnome-terminal with GTK_CSD: $ GTK_CSD=1 /usr/libexec/gnome-terminal-server --app-id my.foo.Terminal & sleep 1; gnome-terminal --app-id my.foo.Terminal Actual result: Critical messages about terminal widget not beingrealized and a very large window. Expected result: Reasonably sized window and no critical message.
Created attachment 316511 [details] [review] Proposed patch
Adding ensure_font() isn't necessary since the accessor already do that. So I just removed the realized? check. It's not really ok to call these on an unrealized widget, but somehow it's happening in g-t (CSD or not didn't make a diff in my testing), so let's allow this for now.