fltk-rs / fl2rust

A fluid (fltk ui designer) file to Rust transpiler
MIT License
52 stars 3 forks source link

deactivate flag in .fl is not taking into account on fltk to rust transformation #20

Closed diegoefe closed 1 year ago

diegoefe commented 1 year ago

Giving this .fl file:

# data file for the Fltk User Interface Designer (fluid)
version 1.0308
header_name {.h}
code_name {.cxx}
class UI {open
} {
  Function {make_window()} {open
  } {
    Fl_Window {} {open selected
      xywh {780 238 440 355} type Double resizable visible
    } {
      Fl_Button get_countries {
        label {Get countries}
        xywh {10 8 95 27} labelsize 12
      }
      Fl_Choice countries {
        label {Countries:} open
        xywh {177 9 152 25} down_box BORDER_BOX labelsize 12 textsize 12
      } {}
      Fl_Button get_trends {
        label {Get trends}
        xywh {335 8 95 27} labelsize 12 deactivate
      }
      Fl_Browser trends_ {
        xywh {12 45 420 295} type Select labelsize 12 textsize 12 resizable
      }
    }
  }
}

The get_trends button is not "deactivated" by default on the resulting .rs file

diegoefe commented 1 year ago

I'm using fl2rust = "0.4" on: Distributor ID: Ubuntu Description: Ubuntu 18.04.6 LTS Release: 18.04 Codename: bionic and building with: rustc 1.64.0 (a55dd71d5 2022-09-19)

MoAlyousef commented 1 year ago

Can you check with the latest release?

diegoefe commented 1 year ago

Excellent! Thank you!