emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/emacs-24 r108137: * gtkutil.c (x_wm_set_siz


From: Jan D.
Subject: [Emacs-diffs] /srv/bzr/emacs/emacs-24 r108137: * gtkutil.c (x_wm_set_size_hint): Use 1 col for base_width so it
Date: Wed, 12 Sep 2012 16:59:56 +0200
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 108137
fixes bug: http://debbugs.gnu.org/12234
committer: Jan D. <address@hidden>
branch nick: emacs-24
timestamp: Wed 2012-09-12 16:59:56 +0200
message:
  * gtkutil.c (x_wm_set_size_hint): Use 1 col for base_width so it
  does not become zero.  Backport from trunk.
modified:
  src/ChangeLog
  src/gtkutil.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-08-24 09:53:39 +0000
+++ b/src/ChangeLog     2012-09-12 14:59:56 +0000
@@ -1,3 +1,8 @@
+2012-09-12  Jan Djärv  <address@hidden>
+
+       * gtkutil.c (x_wm_set_size_hint): Use 1 col for base_width so it
+       does not become zero (Bug#12234).  Backport from trunk.
+
 2012-08-24  Chong Yidong  <address@hidden>
 
        * Version 24.2 released.

=== modified file 'src/gtkutil.c'
--- a/src/gtkutil.c     2012-03-08 18:49:13 +0000
+++ b/src/gtkutil.c     2012-09-12 14:59:56 +0000
@@ -1303,13 +1303,14 @@
   size_hints.height_inc = FRAME_LINE_HEIGHT (f);
 
   hint_flags |= GDK_HINT_BASE_SIZE;
-  base_width = FRAME_TEXT_COLS_TO_PIXEL_WIDTH (f, 0) + FRAME_TOOLBAR_WIDTH (f);
   /* Use one row here so base_height does not become zero.
      Gtk+ and/or Unity on Ubuntu 12.04 can't handle it.  */
+  base_width = FRAME_TEXT_COLS_TO_PIXEL_WIDTH (f, 1) + FRAME_TOOLBAR_WIDTH (f);
   base_height = FRAME_TEXT_LINES_TO_PIXEL_HEIGHT (f, 1)
     + FRAME_MENUBAR_HEIGHT (f) + FRAME_TOOLBAR_HEIGHT (f);
 
   check_frame_size (f, &min_rows, &min_cols);
+  if (min_cols > 0) --min_cols; /* We used one col in base_width = ... 1); */
   if (min_rows > 0) --min_rows; /* We used one row in base_height = ... 1); */
 
   size_hints.base_width = base_width;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]