Fix GNUStep toolbar not updating.
authorJan Djärv <jan.h.d@swipnet.se>
Sun, 8 Dec 2013 12:59:14 +0000 (13:59 +0100)
committerJan Djärv <jan.h.d@swipnet.se>
Sun, 8 Dec 2013 12:59:14 +0000 (13:59 +0100)
* src/nsterm.m (updateFrameSize:): Fix GNUStep toolbar not updating.

src/ChangeLog
src/nsterm.m

index 5711b35..e7016c6 100644 (file)
@@ -1,5 +1,7 @@
 2013-12-08  Jan Djärv  <jan.h.d@swipnet.se>
 
+       * nsterm.m (updateFrameSize:): Fix GNUStep toolbar not updating.
+
        * emacs.c (main): Call fixup_locale a second time for GNUStep.
 
 2013-12-08  Martin Rudalics  <rudalics@gmx.at>
index 07120c7..9c87923 100644 (file)
@@ -5682,6 +5682,11 @@ not_in_argv (NSString *arg)
 
   if (! [self isFullscreen])
     {
+#ifdef NS_IMPL_GNUSTEP
+      // GNUStep does not always update the tool bar height.  Force it.
+      if (toolbar) update_frame_tool_bar (emacsframe);
+#endif
+
       extra = FRAME_NS_TITLEBAR_HEIGHT (emacsframe)
         + FRAME_TOOLBAR_HEIGHT (emacsframe);
     }