bugGNU Octave - Bugs: bug #37319, Sizes of dock-widgets are not...

 
 

bug #37319: Sizes of dock-widgets are not correctly restored when GUI starts maximized

Submitted by:  Torsten <ttl>
Submitted on:  Mon 10 Sep 2012 08:28:42 PM UTC  
 
Category: GUISeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: Max Brister <fisheater>
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 11 Sep 2012 07:54:07 AM UTC, comment #2:

Ok, never mind my previous comment. I think I see why that's a bad idea now. I applied your patch with a few changes. Normally we try to avoid lines like
and instead do only one function call per line.

http://hg.savannah.gnu.org/hgweb/octave/rev/450fedd44176

Max Brister <fisheater>
Project MemberIn charge of this item.
Tue 11 Sep 2012 06:33:48 AM UTC, comment #1:

Torsten,

It looks like a more permanent solution might be to recursively save the geometry of the main window and all of its children. Is there a reason not to do this?

Max Brister <fisheater>
Project MemberIn charge of this item.
Mon 10 Sep 2012 08:28:42 PM UTC, original submission:

When GUI starts maximized, the sizes of the dock-widgets are not correctly restored during startup (running on ubuntu 12.04 32 bit).

Steps to reproduce:

1. Un-maximize the GUI (if necessary) and restart
2. Maximize the GUI
3. Enlarge other widgets such that console is at min width
4. Exit and restart the GUI
=> widgets don't have the same size compared to step 3 (console has larger width)

The attached patch saves and restores the geometry of all dock-widgets and solves the problem for me.

Torsten <ttl>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #26523:  dockwidget_geometry.diff added by ttl (2KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by fisheater (Posted a comment)
  • -unavailable- added by jordigh (Updated the item)
  • -unavailable- added by ttl (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 11 Sep 2012 07:54:22 AM UTCfisheaterStatusPatch Submitted=>Fixed
      Open/ClosedOpen=>Closed
    Mon 10 Sep 2012 08:47:32 PM UTCjordighAssigned toNone=>fisheater
    Mon 10 Sep 2012 08:36:43 PM UTCjordighStatusNone=>Patch Submitted
    Mon 10 Sep 2012 08:28:42 PM UTCttlAttached File-=>Added dockwidget_geometry.diff, #26523

    Back to the top


    Powered by Savane 3.1-cleanup1