with Gtkada.Builder; use Gtkada.Builder; with Gtk; use Gtk; with Gtk.Main; use Gtk.Main; with Glib.Error; use Glib.Error; with Glib; use Glib; with Ada.Text_IO; with Gtk.Widget; use Gtk.Widget; with graphical_editor.aadl_options_callbacks; use graphical_editor.aadl_options_callbacks; with graphical_editor.cheddar_callbacks; use graphical_editor.cheddar_callbacks; package body graphical_editor.aadl_options is procedure Show_aadl_option_widget is Builder : Gtkada_Builder; Error : Glib.Error.GError; begin Gtk.Main.Init; Gtk_New (Builder); Error := Add_From_File (Builder, to_string(Glade_path) & "aadl_option.glade"); if Error /= null then Ada.Text_IO.Put_Line ("Error : " & Get_Message (Error)); Error_Free (Error); return; end if; Register_Handler (Builder => Builder, Handler_Name => "on_button1_clicked", Handler => graphical_editor.aadl_options_callbacks.aadl_option'Access); Register_Handler (Builder => Builder, Handler_Name => "on_button2_clicked", Handler => graphical_editor.aadl_options_callbacks.cancel'Access); --Register_Handler --(Builder => Builder, --Handler_Name => "gtk_main_quit", --Handler => graphical_editor.cheddar_callbacks.new_Quit'Access); Do_Connect (Builder); Gtk.Widget.Show_All (Get_Widget (Builder, "window1")); Gtk.Main.Main; Unref (Builder); end Show_aadl_option_widget; end graphical_editor.aadl_options;