aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtkutil.c
diff options
context:
space:
mode:
authorJoakim Verona2012-03-13 08:23:14 +0100
committerJoakim Verona2012-03-13 08:23:14 +0100
commit4b2cea2874f3a699ebe96349ef34fb7206cc0fa5 (patch)
treebbd39cf660d9b79b2cff9e39ef6209af4cf9fb8b /src/gtkutil.c
parent1de331c486475093aa6b75ef6c259f7164e7620c (diff)
parent6ea7151ba66df966974060711512b49b9059566e (diff)
downloademacs-4b2cea2874f3a699ebe96349ef34fb7206cc0fa5.tar.gz
emacs-4b2cea2874f3a699ebe96349ef34fb7206cc0fa5.zip
upstream
Diffstat (limited to 'src/gtkutil.c')
-rw-r--r--src/gtkutil.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gtkutil.c b/src/gtkutil.c
index 1ed5833bd5c..4dbef65dedf 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -1304,10 +1304,13 @@ x_wm_set_size_hint (FRAME_PTR f, long int flags, int user_position)
1304 1304
1305 hint_flags |= GDK_HINT_BASE_SIZE; 1305 hint_flags |= GDK_HINT_BASE_SIZE;
1306 base_width = FRAME_TEXT_COLS_TO_PIXEL_WIDTH (f, 0) + FRAME_TOOLBAR_WIDTH (f); 1306 base_width = FRAME_TEXT_COLS_TO_PIXEL_WIDTH (f, 0) + FRAME_TOOLBAR_WIDTH (f);
1307 base_height = FRAME_TEXT_LINES_TO_PIXEL_HEIGHT (f, 0) 1307 /* Use one row here so base_height does not become zero.
1308 Gtk+ and/or Unity on Ubuntu 12.04 can't handle it. */
1309 base_height = FRAME_TEXT_LINES_TO_PIXEL_HEIGHT (f, 1)
1308 + FRAME_MENUBAR_HEIGHT (f) + FRAME_TOOLBAR_HEIGHT (f); 1310 + FRAME_MENUBAR_HEIGHT (f) + FRAME_TOOLBAR_HEIGHT (f);
1309 1311
1310 check_frame_size (f, &min_rows, &min_cols); 1312 check_frame_size (f, &min_rows, &min_cols);
1313 if (min_rows > 0) --min_rows; /* We used one row in base_height = ... 1); */
1311 1314
1312 size_hints.base_width = base_width; 1315 size_hints.base_width = base_width;
1313 size_hints.base_height = base_height; 1316 size_hints.base_height = base_height;