[gnome-terminal] Don't realize TerminalScreen before time
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-terminal] Don't realize TerminalScreen before time
- Date: Thu, 27 Aug 2009 18:39:15 +0000 (UTC)
commit ad2b6fadf81ef594cce1e94b8c237d12fba93943
Author: Christian Persch <chpe gnome org>
Date: Thu Aug 27 20:32:38 2009 +0200
Don't realize TerminalScreen before time
Remove another forced realize of the TerminalScreen when it's inserted
into the notebook.
Remove an extra terminal_window_update_geometry(); the
terminal_window_set_size() call below will call this function again.
src/terminal-window.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/terminal-window.c b/src/terminal-window.c
index ec81a44..c1b8662 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -2436,6 +2436,7 @@ terminal_window_set_size_force_grid (TerminalWindow *window,
/* be sure our geometry is up-to-date */
terminal_window_update_geometry (window);
+
widget = GTK_WIDGET (screen);
app = gtk_widget_get_toplevel (widget);
@@ -2615,13 +2616,8 @@ notebook_page_selected_callback (GtkWidget *notebook,
profile = terminal_screen_get_profile (screen);
- if (!GTK_WIDGET_REALIZED (widget))
- gtk_widget_realize (widget); /* we need this for the char width */
-
priv->active_screen = screen;
- terminal_window_update_geometry (window);
-
/* Override menubar setting if it wasn't restored from session */
if (priv->use_default_menubar_visibility)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]