Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: HaikuArchives/ArmyKnife
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0cca7d83b82a
Choose a base ref
...
head repository: HaikuArchives/ArmyKnife
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 46db22e91ea5
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Oct 12, 2021

  1. Genre menu fix (#56)

    * Add MIT headers
    
    * Set genre menu wide to longest genre name + 6 Ws, Fixes #1
    scottmc authored Oct 12, 2021
    Copy the full SHA
    46db22e View commit details
Showing with 2 additions and 1 deletion.
  1. +2 −1 source/editorview.cpp
3 changes: 2 additions & 1 deletion source/editorview.cpp
Original file line number Diff line number Diff line change
@@ -144,7 +144,7 @@ void EditorView::InitView()
menu->AddItem(new BMenuItem(genre,new BMessage(MSG_GENRE_CHANGED)));
last = current;
}

menu->SetMaxContentWidth(StringWidth("contemporary classical WWWWW "));
m_genre_menufield = new BMenuField("m_genre_menufield", "", menu);
m_genre_textcontrol = new BTextControl("m_genre_textcontrol","","",NULL);
//DONE INSIDE BOX
@@ -463,6 +463,7 @@ void EditorView::WidgetsSetValues() {
m_gender_textcontrol->SetText("");
#endif
BMenu* menu = m_genre_menufield->Menu();
menu->SetMaxContentWidth(StringWidth("contemporary classical WWWWW "));
BMenuItem* item = menu->FindItem(genre);
if(item)
{