Loading

Paste #px1iu8hht

  1. Index: src/statusbar_gui.cpp
  2. ===================================================================
  3. --- src/statusbar_gui.cpp   (revision 27145)
  4. +++ src/statusbar_gui.cpp   (working copy)
  5. @@ -90,6 +90,11 @@
  6.         this->ticker_scroll    =   TICKER_STOP;
  7.         this->reminder_timeout = REMINDER_STOP;
  8.  
  9. +       /* Give the statusbar the same width as the toolbar. */
  10. +       Window *toolbar = FindWindowById(WC_MAIN_TOOLBAR, 0);
  11. +       assert(toolbar != NULL);
  12. +       desc->default_width = toolbar->window_desc->default_width;
  13. +
  14.         this->InitNested();
  15.         CLRBITS(this->flags, WF_WHITE_BORDER);
  16.         PositionStatusbar(this);
  17. Index: src/toolbar_gui.cpp
  18. ===================================================================
  19. --- src/toolbar_gui.cpp (revision 27145)
  20. +++ src/toolbar_gui.cpp (working copy)
  21. @@ -1351,6 +1351,10 @@
  22.             }
  23.         }
  24.         w->window_desc->default_width = nbuttons * this->smallest_x;
  25. +
  26. +       /* Give the statusbar the same width as the toolbar. */
  27. +       Window *statusbar = FindWindowById(WC_STATUS_BAR, 0);
  28. +       if (statusbar != NULL) statusbar->window_desc->default_width = w->window_desc->default_width;
  29.     }
  30.  
  31.     void AssignSizePosition(SizingType sizing, uint x, uint y, uint given_width, uint given_height, bool rtl)
  32.  

Comments