[haiku-commits] Re: haiku: hrev45588 - src/kits/tracker

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 30 Apr 2013 17:12:52 +0200

Am 30/04/2013 16:45, schrieb John Scipione:
On Apr 30, 2013, at 5:41 AM, "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx> wrote:
On April 30, 2013 at 4:41 AM jscipione@xxxxxxxxx wrote:
c80aa6e: Simplication in Tracker Find Panel
  If attribute mode and you select a mime type, Remove then add the rows first
  with the first items marked, then go through and re-mark the selected item.
How? What? Huh? :-)
This is coming from memory here so some details like function names could be 
off, so...

If you are in "by attribute mode" and you select a mime type from the mime type 
menu field the attribute rows get removed with RemoveAttrRow and then a new one is added 
with AddAttrRow row which marks the first item in attribute menu and submenu. Name -> 
Contains. Then the selected item in the Mime type menu is marked.

Thanks for the explanation!

3a12979: FindPanel: Set the MIME type field to fixed width
[...]
+  fMimeTypeField->SetExplicitSize(
+          BSize(be_control_look->DefaultItemSpacing() * 20, B_SIZE_UNSET));
+          // ResizeMenuField() makes fMimeTypeField too wide.
I'm not sure if it's actually honored, but what about SetExplicitMaxSize()
instead?
I don't want this menu field to adjust its width based on its contents because
that would alter the width of the window so I need to do both
SetExplicitMinSize and SetExplicitMaxSize.

Do you mean resize in general, or only if a menu item gets chosen?

Bye,
   Axel.


Other related posts: