diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/gtkutil.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c8f75645585..261fa80d718 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-08-30 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * gtkutil.c (x_wm_set_size_hint): Use 1 col for base_width so it | ||
| 4 | does not become zero (Bug#12234). | ||
| 5 | |||
| 1 | 2012-08-30 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2012-08-30 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | * dispnew.c (update_frame_1): Pacify gcc -Wstrict-overflow | 8 | * dispnew.c (update_frame_1): Pacify gcc -Wstrict-overflow |
diff --git a/src/gtkutil.c b/src/gtkutil.c index 2941605d448..939e472d6d2 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -1348,13 +1348,14 @@ x_wm_set_size_hint (FRAME_PTR f, long int flags, int user_position) | |||
| 1348 | size_hints.height_inc = FRAME_LINE_HEIGHT (f); | 1348 | size_hints.height_inc = FRAME_LINE_HEIGHT (f); |
| 1349 | 1349 | ||
| 1350 | hint_flags |= GDK_HINT_BASE_SIZE; | 1350 | hint_flags |= GDK_HINT_BASE_SIZE; |
| 1351 | base_width = FRAME_TEXT_COLS_TO_PIXEL_WIDTH (f, 0) + FRAME_TOOLBAR_WIDTH (f); | 1351 | /* Use one row/col here so base_height/width does not become zero. |
| 1352 | /* Use one row here so base_height does not become zero. | ||
| 1353 | Gtk+ and/or Unity on Ubuntu 12.04 can't handle it. */ | 1352 | Gtk+ and/or Unity on Ubuntu 12.04 can't handle it. */ |
| 1353 | base_width = FRAME_TEXT_COLS_TO_PIXEL_WIDTH (f, 1) + FRAME_TOOLBAR_WIDTH (f); | ||
| 1354 | base_height = FRAME_TEXT_LINES_TO_PIXEL_HEIGHT (f, 1) | 1354 | base_height = FRAME_TEXT_LINES_TO_PIXEL_HEIGHT (f, 1) |
| 1355 | + FRAME_MENUBAR_HEIGHT (f) + FRAME_TOOLBAR_HEIGHT (f); | 1355 | + FRAME_MENUBAR_HEIGHT (f) + FRAME_TOOLBAR_HEIGHT (f); |
| 1356 | 1356 | ||
| 1357 | check_frame_size (f, &min_rows, &min_cols); | 1357 | check_frame_size (f, &min_rows, &min_cols); |
| 1358 | if (min_cols > 0) --min_cols; /* We used one col in base_width = ... 1); */ | ||
| 1358 | if (min_rows > 0) --min_rows; /* We used one row in base_height = ... 1); */ | 1359 | if (min_rows > 0) --min_rows; /* We used one row in base_height = ... 1); */ |
| 1359 | 1360 | ||
| 1360 | size_hints.base_width = base_width; | 1361 | size_hints.base_width = base_width; |