gnome-terminal/gnome-terminal-2.15.0-338913-revert-336325.patch
2006-05-19 15:45:49 +00:00

23 lines
1.1 KiB
Diff

Index: gnome-terminal-2.15.0/src/terminal-window.c
===================================================================
RCS file: /cvs/gnome/gnome-terminal/src/terminal-window.c,v
retrieving revision 1.124
diff -u -p -d -r1.124 terminal-window.c
--- gnome-terminal-2.15.0/src/terminal-window.c 4 Mar 2006 06:21:01 -0000 1.124
+++ gnome-terminal-2.15.0/src/terminal-window.c 1 Apr 2006 03:11:46 -0000
@@ -1536,6 +1536,14 @@ terminal_window_set_size_force_grid (Ter
app = gtk_widget_get_toplevel (widget);
g_assert (app != NULL);
+ /* This set_size_request hack is because the extra size above base
+ * size should only include the width of widgets that intersect the
+ * term vertically and the height of widgets that intersect the term
+ * horizontally. It works around a GTK bug, GTK should handle
+ * this case. The size request can be huge without hosing
+ * anything because we set the MIN_SIZE geometry hint.
+ */
+ gtk_widget_set_size_request (widget, 2000, 2000);
gtk_widget_size_request (app, &toplevel_request);
gtk_widget_size_request (widget, &widget_request);