File: power.adb

package info (click to toggle)
libgtkada 2.24.4dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 12,208 kB
  • ctags: 1,676
  • sloc: ada: 119,686; ansic: 4,719; sh: 3,003; makefile: 690; xml: 338; perl: 70
file content (23 lines) | stat: -rw-r--r-- 506 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
with Gtk; use Gtk;
with Gtk.Main;
with Powergnu_Pkg; use Powergnu_Pkg;
with Powergnu_Pkg.Callbacks; use Powergnu_Pkg.Callbacks;
with Ada.Command_Line; use Ada.Command_Line;

procedure Power is
begin
   Gtk.Main.Set_Locale;
   Gtk.Main.Init;
   Gtk_New (Powergnu);
   Show_All (Powergnu);

   --  Presentation file on the command line ? Load it

   if Argument_Count = 1 then
      Load_File (Powergnu, Argument (1));
   else
      Load_File (Powergnu, "file.tst");
   end if;

   Gtk.Main.Main;
end Power;