diff --git a/src/commands/cmd_layer_properties.cpp b/src/commands/cmd_layer_properties.cpp index f2feacd36..cd93a39c7 100644 --- a/src/commands/cmd_layer_properties.cpp +++ b/src/commands/cmd_layer_properties.cpp @@ -68,7 +68,7 @@ void LayerPropertiesCommand::onExecute(Context* context) Widget* box2 = jbox_new(JI_HORIZONTAL); Widget* box3 = jbox_new(JI_HORIZONTAL + JI_HOMOGENEOUS); Widget* label_name = new Label("Name:"); - Widget* entry_name = jentry_new(256, layer->getName().c_str()); + Entry* entry_name = new Entry(256, layer->getName().c_str()); Button* button_ok = new Button("&OK"); Button* button_cancel = new Button("&Cancel"); diff --git a/src/dialogs/filesel.cpp b/src/dialogs/filesel.cpp index 6b7f05014..e451cf165 100644 --- a/src/dialogs/filesel.cpp +++ b/src/dialogs/filesel.cpp @@ -90,7 +90,7 @@ base::string ase_file_selector(const base::string& message, { static Frame* window = NULL; Widget* fileview; - Widget* filename_entry; + Entry* filename_entry; ComboBox* filetype; base::string result; @@ -145,13 +145,13 @@ base::string ase_file_selector(const base::string& message, window = static_cast(load_widget("file_selector.xml", "file_selector")); JWidget box = jwidget_find_name(window, "box"); - Button* goback = dynamic_cast(jwidget_find_name(window, "goback")); - Button* goforward = dynamic_cast(jwidget_find_name(window, "goforward")); - Button* goup = dynamic_cast(jwidget_find_name(window, "goup")); - JWidget location = jwidget_find_name(window, "location"); - filetype = dynamic_cast(jwidget_find_name(window, "filetype")); + Button* goback = window->findChildT