1. Compilation Units

    1. Cairo
    2. Cairo.Font_Face
    3. Cairo.Font_Options
    4. Cairo.Image_Surface
    5. Cairo.PDF
    6. Cairo.Matrix
    7. Cairo.Pattern
    8. Cairo.Png
    9. Cairo.SVG
    10. Cairo.Region
    11. Cairo.Scaled_Font
    12. Cairo.Surface
    13. Fontconfig
    14. Gdk
    15. Gdk.Cairo
    16. Gdk.Color
    17. Gdk.Cursor
    18. Gdk.Device
    19. Gdk.Device_Manager
    20. Gdk.Device_Tool
    21. Gdk.Display
    22. Gdk.Display_Manager
    23. Gdk.Dnd
    24. Gdk.Drag_Contexts
    25. Gdk.Drawing_Context
    26. Gdk.Event
      1. Gdk.Event.Handler_Set_User_Data
    27. Gdk.Frame_Clock
    28. Gdk.Frame_Timings
    29. Gdk.GLContext
    30. Gdk.Input
      1. Gdk.Input.Input_Add
    31. Gdk.Keyval
    32. Gdk.Main
    33. Gdk.Monitor
    34. Gdk.Pixbuf
    35. Gdk.RGBA
    36. Gdk.Property
    37. Gdk.Rectangle
    38. Gdk.Screen
    39. Gdk.Seat
    40. Gdk.Threads
    41. Gdk.Types
    42. Gdk.Types.Keysyms
    43. Gdk.Visual
    44. Gdk.Window
      1. Gdk.Window.Invalidate_Maybe_Recurse_User_Data
    45. Gdk.Window_Attr
    46. Glib
    47. Glib.Action
    48. Glib.Action_Group
    49. Glib.Action_Map
    50. Glib.Application
    51. Glib.Cancellable
      1. Glib.Cancellable.Connect_User_Data
    52. Glib.Convert
    53. Glib.Enums
    54. Glib.GSlist
      1. Glib.GSlist.Generic_SList
    55. Glib.Error
    56. Glib.G_Icon
    57. Glib.Generic_Properties
      1. Glib.Generic_Properties.Generic_Enumeration_Property
      2. Glib.Generic_Properties.Generic_Internal_Boxed_Property
      3. Glib.Generic_Properties.Generic_Internal_Discrete_Property
    58. Glib.Glist
      1. Glib.Glist.Generic_List
    59. Glib.Gnodes
      1. Glib.Gnodes.Gnode_Data
    60. Glib.Graphs
    61. Glib.Graphs.Layouts
      1. Glib.Graphs.Layouts.Layered_Layouts
    62. Glib.IOChannel
    63. Glib.Key_File
    64. Glib.List_Model
    65. Glib.Main
      1. Glib.Main.Generic_Sources
    66. Glib.Menu
    67. Glib.Menu_Model
    68. Glib.Messages
    69. Glib.Module
    70. Glib.Notification
    71. Glib.Object
      1. Glib.Object.User_Data
      2. Glib.Object.User_Data_Closure
    72. Glib.Option
      1. Glib.Option.Set_Translate_Func_User_Data
    73. Glib.Poll
    74. Glib.Properties
    75. Glib.Properties.Creation
    76. Glib.Simple_Action
    77. Glib.Simple_Action_Group
    78. Glib.Spawn
    79. Glib.String
    80. Glib.Type_Conversion_Hooks
      1. Glib.Type_Conversion_Hooks.Hook_Registrator
    81. Glib.Types
      1. Glib.Types.Implements
    82. Glib.Unicode
    83. Glib.Utils
    84. Glib.Values
    85. Glib.Variant
    86. Glib.XML
    87. Gtk
    88. Gtk.About_Dialog
    89. Gtk.Accel_Group
    90. Gtk.Accel_Label
    91. Gtk.Accel_Map
      1. Gtk.Accel_Map.Foreach_Unfiltered_User_Data
      2. Gtk.Accel_Map.Foreach_User_Data
    92. Gtk.Action
    93. Gtk.Action_Bar
    94. Gtk.Action_Group
      1. Gtk.Action_Group.Set_Translate_Func_User_Data
    95. Gtk.Actionable
    96. Gtk.Activatable
    97. Gtk.Adjustment
    98. Gtk.Alignment
    99. Gtk.Application
    100. Gtk.Application_Window
    101. Gtk.Arguments
    102. Gtk.Arrow
    103. Gtk.Aspect_Frame
    104. Gtk.Assistant
      1. Gtk.Assistant.Set_Forward_Page_Func_User_Data
    105. Gtk.Bin
    106. Gtk.Binding_Set
    107. Gtk.Bindings
    108. Gtk.Box
    109. Gtk.Buildable
    110. Gtk.Builder
    111. Gtk.Button
    112. Gtk.Button_Box
    113. Gtk.Calendar
      1. Gtk.Calendar.Set_Detail_Func_User_Data
    114. Gtk.Cell_Area
      1. Gtk.Cell_Area.Foreach_Alloc_User_Data
      2. Gtk.Cell_Area.Foreach_User_Data
      3. Gtk.Cell_Area.Set_Cell_Data_Func_User_Data
    115. Gtk.Cell_Area_Box
      1. Gtk.Cell_Area_Box.Set_Cell_Data_Func_User_Data
    116. Gtk.Cell_Area_Context
    117. Gtk.Cell_Editable
    118. Gtk.Cell_Layout
      1. Gtk.Cell_Layout.Set_Cell_Data_Func_User_Data
    119. Gtk.Cell_Renderer
    120. Gtk.Cell_Renderer_Accel
    121. Gtk.Cell_Renderer_Combo
    122. Gtk.Cell_Renderer_Pixbuf
    123. Gtk.Cell_Renderer_Progress
    124. Gtk.Cell_Renderer_Spin
    125. Gtk.Cell_Renderer_Spinner
    126. Gtk.Cell_Renderer_Text
    127. Gtk.Cell_Renderer_Toggle
    128. Gtk.Cell_View
      1. Gtk.Cell_View.Set_Cell_Data_Func_User_Data
    129. Gtk.Check_Button
    130. Gtk.Check_Menu_Item
    131. Gtk.Clipboard
    132. Gtk.Color_Button
    133. Gtk.Color_Chooser
    134. Gtk.Color_Chooser_Dialog
    135. Gtk.Color_Chooser_Widget
    136. Gtk.Color_Selection
    137. Gtk.Color_Selection_Dialog
    138. Gtk.Combo_Box
      1. Gtk.Combo_Box.Set_Cell_Data_Func_User_Data
      2. Gtk.Combo_Box.Set_Row_Separator_Func_User_Data
    139. Gtk.Combo_Box_Text
      1. Gtk.Combo_Box_Text.Set_Cell_Data_Func_User_Data
    140. Gtk.Container
      1. Gtk.Container.Forall_User_Data
      2. Gtk.Container.Foreach_User_Data
    141. Gtk.Css_Provider
    142. Gtk.Css_Section
    143. Gtk.Dialog
    144. Gtk.Dnd
    145. Gtk.Drawing_Area
    146. Gtk.Editable
    147. Gtk.Entry_Buffer
    148. Gtk.Entry_Completion
      1. Gtk.Entry_Completion.Set_Cell_Data_Func_User_Data
      2. Gtk.Entry_Completion.Set_Match_Func_User_Data
    149. Gtk.Enums
    150. Gtk.Event_Box
    151. Gtk.Event_Controller
    152. Gtk.Expander
    153. Gtk.File_Chooser
    154. Gtk.File_Chooser_Button
    155. Gtk.File_Chooser_Dialog
    156. Gtk.File_Chooser_Widget
    157. Gtk.File_Filter
      1. Gtk.File_Filter.Add_Custom_User_Data
    158. Gtk.Fixed
    159. Gtk.Flow_Box
      1. Gtk.Flow_Box.Bind_Model_User_Data
      2. Gtk.Flow_Box.Selected_Foreach_User_Data
      3. Gtk.Flow_Box.Set_Filter_Func_User_Data
      4. Gtk.Flow_Box.Set_Sort_Func_User_Data
    160. Gtk.Flow_Box_Child
    161. Gtk.Font_Button
      1. Gtk.Font_Button.Set_Filter_Func_User_Data
    162. Gtk.Font_Chooser
      1. Gtk.Font_Chooser.Set_Filter_Func_User_Data
    163. Gtk.Font_Chooser_Dialog
      1. Gtk.Font_Chooser_Dialog.Set_Filter_Func_User_Data
    164. Gtk.Font_Chooser_Widget
      1. Gtk.Font_Chooser_Widget.Set_Filter_Func_User_Data
    165. Gtk.Font_Selection
    166. Gtk.Font_Selection_Dialog
    167. Gtk.Frame
    168. Gtk.GLArea
    169. Gtk.GRange
    170. Gtk.GEntry
    171. Gtk.Gesture
    172. Gtk.Gesture_Drag
    173. Gtk.Gesture_Long_Press
    174. Gtk.Gesture_Multi_Press
    175. Gtk.Gesture_Pan
    176. Gtk.Gesture_Rotate
    177. Gtk.Gesture_Single
    178. Gtk.Gesture_Swipe
    179. Gtk.Gesture_Zoom
    180. Gtk.Gradient
    181. Gtk.Grid
    182. Gtk.Handle_Box
    183. Gtk.Hbutton_Box
    184. Gtk.Header_Bar
    185. Gtk.IM_Context
    186. Gtk.IM_Context_Simple
    187. Gtk.IM_Multi_Context
    188. Gtk.Hsv
    189. Gtk.Icon_Factory
    190. Gtk.Icon_Set
    191. Gtk.Icon_Source
    192. Gtk.Icon_Theme
    193. Gtk.Icon_View
      1. Gtk.Icon_View.Selected_Foreach_User_Data
      2. Gtk.Icon_View.Set_Cell_Data_Func_User_Data
    194. Gtk.Image
    195. Gtk.Image_Menu_Item
    196. Gtk.Info_Bar
    197. Gtk.Invisible
    198. Gtk.Label
    199. Gtk.Layout
    200. Gtk.Level_Bar
    201. Gtk.Link_Button
    202. Gtk.List_Box
      1. Gtk.List_Box.Bind_Model_User_Data
      2. Gtk.List_Box.Selected_Foreach_User_Data
      3. Gtk.List_Box.Set_Filter_Func_User_Data
      4. Gtk.List_Box.Set_Header_Func_User_Data
      5. Gtk.List_Box.Set_Sort_Func_User_Data
    203. Gtk.List_Box_Row
    204. Gtk.List_Store
      1. Gtk.List_Store.Foreach_User_Data
      2. Gtk.List_Store.Set_Default_Sort_Func_User_Data
      3. Gtk.List_Store.Set_Sort_Func_User_Data
    205. Gtk.Main
    206. Gtk.Menu
      1. Gtk.Menu.Popup_For_Device_User_Data
      2. Gtk.Menu.Popup_User_Data
    207. Gtk.Menu_Bar
    208. Gtk.Menu_Button
    209. Gtk.Menu_Item
    210. Gtk.Menu_Shell
    211. Gtk.Menu_Tool_Button
    212. Gtk.Message_Dialog
    213. Gtk.Misc
    214. Gtk.Notebook
    215. Gtk.Offscreen_Window
    216. Gtk.Orientable
    217. Gtk.Overlay
    218. Gtk.Page_Setup
    219. Gtk.Paned
    220. Gtk.Paper_Size
    221. Gtk.Popover
    222. Gtk.Print_Context
    223. Gtk.Print_Operation
    224. Gtk.Print_Operation_Preview
    225. Gtk.Print_Settings
      1. Gtk.Print_Settings.Foreach_User_Data
    226. Gtk.Progress_Bar
    227. Gtk.Radio_Action
    228. Gtk.Radio_Button
    229. Gtk.Radio_Menu_Item
    230. Gtk.Radio_Tool_Button
    231. Gtk.Rc
    232. Gtk.Recent_Action
      1. Gtk.Recent_Action.Set_Sort_Func_User_Data
    233. Gtk.Recent_Chooser
      1. Gtk.Recent_Chooser.Set_Sort_Func_User_Data
    234. Gtk.Recent_Chooser_Dialog
      1. Gtk.Recent_Chooser_Dialog.Set_Sort_Func_User_Data
    235. Gtk.Recent_Chooser_Menu
      1. Gtk.Recent_Chooser_Menu.Set_Sort_Func_User_Data
    236. Gtk.Recent_Chooser_Widget
      1. Gtk.Recent_Chooser_Widget.Set_Sort_Func_User_Data
    237. Gtk.Recent_Filter
      1. Gtk.Recent_Filter.Add_Custom_User_Data
    238. Gtk.Recent_Info
    239. Gtk.Recent_Manager
    240. Gtk.Revealer
    241. Gtk.Scale
    242. Gtk.Scale_Button
    243. Gtk.Scrollable
    244. Gtk.Scrollbar
    245. Gtk.Scrolled_Window
    246. Gtk.Search_Bar
    247. Gtk.Search_Entry
    248. Gtk.Selection_Data
    249. Gtk.Separator
    250. Gtk.Separator_Menu_Item
    251. Gtk.Separator_Tool_Item
    252. Gtk.Settings
    253. Gtk.Shortcuts_Window
    254. Gtk.Size_Group
    255. Gtk.Spin_Button
    256. Gtk.Spinner
    257. Gtk.Stack
    258. Gtk.Stack_Switcher
    259. Gtk.Status_Bar
    260. Gtk.Status_Icon
    261. Gtk.Stock
    262. Gtk.Style
    263. Gtk.Style_Context
    264. Gtk.Style_Properties
    265. Gtk.Style_Provider
    266. Gtk.Switch
    267. Gtk.Symbolic_Color
    268. Gtk.Table
    269. Gtk.Target_Entry
    270. Gtk.Target_List
    271. Gtk.Tearoff_Menu_Item
    272. Gtk.Text_Attributes
    273. Gtk.Text_Buffer
    274. Gtk.Text_Child
    275. Gtk.Text_Child_Anchor
    276. Gtk.Text_Iter
    277. Gtk.Text_Mark
    278. Gtk.Text_Tag
    279. Gtk.Text_Tag_Table
      1. Gtk.Text_Tag_Table.Foreach_User_Data
    280. Gtk.Text_View
    281. Gtk.Theming_Engine
    282. Gtk.Toggle_Action
    283. Gtk.Toggle_Button
    284. Gtk.Toggle_Tool_Button
    285. Gtk.Tool_Button
    286. Gtk.Tool_Item
    287. Gtk.Tool_Item_Group
    288. Gtk.Tool_Palette
    289. Gtk.Tool_Shell
    290. Gtk.Toolbar
    291. Gtk.Tooltip
    292. Gtk.Tree_Drag_Dest
    293. Gtk.Tree_Drag_Source
    294. Gtk.Tree_Model
      1. Gtk.Tree_Model.Foreach_User_Data
    295. Gtk.Tree_Model.Utils
    296. Gtk.Tree_Model_Filter
      1. Gtk.Tree_Model_Filter.Foreach_User_Data
      2. Gtk.Tree_Model_Filter.Set_Modify_Func_User_Data
      3. Gtk.Tree_Model_Filter.Set_Visible_Func_User_Data
    297. Gtk.Tree_Model_Sort
      1. Gtk.Tree_Model_Sort.Foreach_User_Data
      2. Gtk.Tree_Model_Sort.Set_Default_Sort_Func_User_Data
      3. Gtk.Tree_Model_Sort.Set_Sort_Func_User_Data
    298. Gtk.Tree_Row_Reference
    299. Gtk.Tree_Selection
      1. Gtk.Tree_Selection.Selected_Foreach_User_Data
      2. Gtk.Tree_Selection.Set_Select_Function_User_Data
    300. Gtk.Tree_Sortable
      1. Gtk.Tree_Sortable.Set_Default_Sort_Func_User_Data
      2. Gtk.Tree_Sortable.Set_Sort_Func_User_Data
    301. Gtk.Tree_Store
      1. Gtk.Tree_Store.Foreach_User_Data
      2. Gtk.Tree_Store.Generic_Set
      3. Gtk.Tree_Store.Set_Default_Sort_Func_User_Data
      4. Gtk.Tree_Store.Set_Sort_Func_User_Data
    302. Gtk.Tree_View
      1. Gtk.Tree_View.Insert_Column_With_Data_Func_User_Data
      2. Gtk.Tree_View.Map_Expanded_Rows_User_Data
      3. Gtk.Tree_View.Set_Column_Drag_Function_User_Data
      4. Gtk.Tree_View.Set_Destroy_Count_Func_User_Data
      5. Gtk.Tree_View.Set_Row_Separator_Func_User_Data
      6. Gtk.Tree_View.Set_Search_Equal_Func_User_Data
      7. Gtk.Tree_View.Set_Search_Position_Func_User_Data
    303. Gtk.Tree_View_Column
      1. Gtk.Tree_View_Column.Set_Cell_Data_Func_User_Data
    304. Gtk.Type_Conversion
    305. Gtk.UI_Manager
    306. Gtk.Vbutton_Box
    307. Gtk.Viewport
    308. Gtk.Volume_Button
    309. Gtk.Widget
      1. Gtk.Widget.Add_Tick_Callback_User_Data
      2. Gtk.Widget.Set_Connect_Func_User_Data
    310. Gtk.Window
    311. Gtkada
    312. Gtkada.Abstract_List_Model
    313. Gtkada.Abstract_Tree_Model
    314. Gtkada.Application
    315. Gtkada.Bindings
    316. Gtkada.Builder
    317. Gtkada.C
      1. Gtkada.C.Unbounded_Arrays
    318. Gtkada.Canvas
    319. Gtkada.Canvas_View
    320. Gtkada.Canvas_View.Astar
    321. Gtkada.Canvas_View.Links
    322. Gtkada.Canvas_View.Models
      1. Gtkada.Canvas_View.Models.Rtree_Models
    323. Gtkada.Canvas_View.Models.Layers
    324. Gtkada.Canvas_View.Objects
    325. Gtkada.Canvas_View.Rtrees
    326. Gtkada.Canvas_View.Views
    327. Gtkada.Dialogs
    328. Gtkada.File_Selection
    329. Gtkada.Handlers
    330. Gtkada.Intl
    331. Gtkada.MDI
      1. Gtkada.MDI.Desktop
    332. Gtkada.Multi_Paned
    333. Gtkada.Multiline_Entry
    334. Gtkada.Pixmaps
    335. Gtkada.Printing
    336. Gtkada.Stock_Icons
    337. Gtkada.Stock_Labels
    338. Gtkada.Style
    339. Gtkada.Types
    340. Pango
    341. Pango.Attributes
    342. Pango.Cairo
    343. Pango.Context
    344. Pango.Coverage
    345. Pango.Enums
    346. Pango.Font
    347. Pango.Font_Face
    348. Pango.Font_Family
    349. Pango.Font_Map
    350. Pango.Font_Metrics
    351. Pango.Fontset
      1. Pango.Fontset.Foreach_User_Data
    352. Pango.Language
    353. Pango.Layout
    354. Pango.Matrix
    355. Pango.Tabs
  2. Tagged Types

    1. Gdk.Device.Gdk_Device_Record
    2. Gdk.Device_Manager.Gdk_Device_Manager_Record
    3. Gdk.Device_Tool.Gdk_Device_Tool_Record
    4. Gdk.Display.Gdk_Display_Record
    5. Gdk.Drag_Contexts.Drag_Context_Record
    6. Gdk.Drawing_Context.Gdk_Drawing_Context_Record
    7. Gdk.Frame_Clock.Gdk_Frame_Clock_Record
    8. Gdk.Frame_Timings.Gdk_Frame_Timings
    9. Gdk.GLContext.Gdk_GLContext_Record
    10. Gdk.Monitor.Gdk_Monitor_Record
    11. Gdk.Pixbuf.Gdk_Pixbuf_Record
    12. Gdk.Screen.Gdk_Screen_Record
    13. Glib.Application.Gapplication_Command_Line_Record
    14. Glib.Application.Gapplication_Record
    15. Gdk.Seat.Gdk_Seat_Record
    16. Glib.C_Boxed
    17. Glib.Cancellable.Gcancellable_Record
    18. Glib.Graphs.Layouts.Base_Dummy_Vertex
    19. Glib.Graphs.Edge
    20. Glib.Graphs.Vertex
    21. Glib.Menu.Gmenu_Item_Record
    22. Glib.Menu.Gmenu_Record
    23. Glib.Menu_Model.Gmenu_Attribute_Iter_Record
    24. Glib.Menu_Model.Gmenu_Link_Iter_Record
    25. Glib.Menu_Model.Gmenu_Model_Record
    26. Glib.Object.GObject_Record
    27. Glib.Notification.Gnotification_Record
    28. Glib.Object.G_Binding_Record
    29. Glib.Option.Goption_Context
    30. Glib.Simple_Action.Gsimple_Action_Record
    31. Glib.Simple_Action_Group.Gsimple_Action_Group_Record
    32. Glib.Variant.Gvariant
    33. Gtk.About_Dialog.Gtk_About_Dialog_Record
    34. Gtk.Accel_Group.Gtk_Accel_Group_Record
    35. Gtk.Accel_Label.Gtk_Accel_Label_Record
    36. Gtk.Accel_Map.Gtk_Accel_Map_Record
    37. Gtk.Action.Gtk_Action_Record
    38. Gtk.Action_Bar.Gtk_Action_Bar_Record
    39. Gtk.Action_Group.Gtk_Action_Group_Record
    40. Gtk.Adjustment.Gtk_Adjustment_Record
    41. Gtk.Alignment.Gtk_Alignment_Record
    42. Gtk.Application.Gtk_Application_Record
    43. Gtk.Application_Window.Gtk_Application_Window_Record
    44. Gtk.Arrow.Gtk_Arrow_Record
    45. Gtk.Aspect_Frame.Gtk_Aspect_Frame_Record
    46. Gtk.Assistant.Gtk_Assistant_Record
    47. Gtk.Bin.Gtk_Bin_Record
    48. Gtk.Box.Gtk_Box_Record
    49. Gtk.Builder.Gtk_Builder_Record
    50. Gtk.Button.Gtk_Button_Record
    51. Gtk.Button_Box.Gtk_Button_Box_Record
    52. Gtk.Calendar.Gtk_Calendar_Record
    53. Gtk.Cell_Area.Gtk_Cell_Area_Record
    54. Gtk.Cell_Area_Box.Gtk_Cell_Area_Box_Record
    55. Gtk.Cell_Area_Context.Gtk_Cell_Area_Context_Record
    56. Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record
    57. Gtk.Cell_Renderer_Accel.Gtk_Cell_Renderer_Accel_Record
    58. Gtk.Cell_Renderer_Combo.Gtk_Cell_Renderer_Combo_Record
    59. Gtk.Cell_Renderer_Pixbuf.Gtk_Cell_Renderer_Pixbuf_Record
    60. Gtk.Cell_Renderer_Progress.Gtk_Cell_Renderer_Progress_Record
    61. Gtk.Cell_Renderer_Spin.Gtk_Cell_Renderer_Spin_Record
    62. Gtk.Cell_Renderer_Spinner.Gtk_Cell_Renderer_Spinner_Record
    63. Gtk.Cell_Renderer_Text.Gtk_Cell_Renderer_Text_Record
    64. Gtk.Cell_Renderer_Toggle.Gtk_Cell_Renderer_Toggle_Record
    65. Gtk.Cell_View.Gtk_Cell_View_Record
    66. Gtk.Check_Button.Gtk_Check_Button_Record
    67. Gtk.Check_Menu_Item.Gtk_Check_Menu_Item_Record
    68. Gtk.Clipboard.Gtk_Clipboard_Record
    69. Gtk.Color_Button.Gtk_Color_Button_Record
    70. Gtk.Color_Chooser_Dialog.Gtk_Color_Chooser_Dialog_Record
    71. Gtk.Color_Chooser_Widget.Gtk_Color_Chooser_Widget_Record
    72. Gtk.Color_Selection.Gtk_Color_Selection_Record
    73. Gtk.Color_Selection_Dialog.Gtk_Color_Selection_Dialog_Record
    74. Gtk.Combo_Box.Gtk_Combo_Box_Record
    75. Gtk.Combo_Box_Text.Gtk_Combo_Box_Text_Record
    76. Gtk.Container.Gtk_Container_Record
    77. Gtk.Css_Provider.Gtk_Css_Provider_Record
    78. Gtk.Css_Section.Gtk_Css_Section
    79. Gtk.Dialog.Gtk_Dialog_Record
    80. Gtk.Drawing_Area.Gtk_Drawing_Area_Record
    81. Gtk.Entry_Buffer.Gtk_Entry_Buffer_Record
    82. Gtk.Entry_Completion.Gtk_Entry_Completion_Record
    83. Gtk.Event_Box.Gtk_Event_Box_Record
    84. Gtk.Event_Controller.Gtk_Event_Controller_Record
    85. Gtk.Expander.Gtk_Expander_Record
    86. Gtk.File_Chooser_Button.Gtk_File_Chooser_Button_Record
    87. Gtk.File_Chooser_Dialog.Gtk_File_Chooser_Dialog_Record
    88. Gtk.File_Chooser_Widget.Gtk_File_Chooser_Widget_Record
    89. Gtk.File_Filter.Gtk_File_Filter_Record
    90. Gtk.Fixed.Gtk_Fixed_Record
    91. Gtk.Flow_Box.Gtk_Flow_Box_Record
    92. Gtk.Flow_Box_Child.Gtk_Flow_Box_Child_Record
    93. Gtk.Font_Button.Gtk_Font_Button_Record
    94. Gtk.Font_Chooser_Dialog.Gtk_Font_Chooser_Dialog_Record
    95. Gtk.Font_Chooser_Widget.Gtk_Font_Chooser_Widget_Record
    96. Gtk.Font_Selection.Gtk_Font_Selection_Record
    97. Gtk.Font_Selection_Dialog.Gtk_Font_Selection_Dialog_Record
    98. Gtk.Frame.Gtk_Frame_Record
    99. Gtk.GLArea.Gtk_GLArea_Record
    100. Gtk.GRange.Gtk_Range_Record
    101. Gtk.GEntry.Gtk_Entry_Record
    102. Gtk.Gesture.Gtk_Gesture_Record
    103. Gtk.Gesture_Drag.Gtk_Gesture_Drag_Record
    104. Gtk.Gesture_Long_Press.Gtk_Gesture_Long_Press_Record
    105. Gtk.Gesture_Multi_Press.Gtk_Gesture_Multi_Press_Record
    106. Gtk.Gesture_Pan.Gtk_Gesture_Pan_Record
    107. Gtk.Gesture_Rotate.Gtk_Gesture_Rotate_Record
    108. Gtk.Gesture_Single.Gtk_Gesture_Single_Record
    109. Gtk.Gesture_Swipe.Gtk_Gesture_Swipe_Record
    110. Gtk.Gesture_Zoom.Gtk_Gesture_Zoom_Record
    111. Gtk.Gradient.Gtk_Gradient
    112. Gtk.Grid.Gtk_Grid_Record
    113. Gtk.Handle_Box.Gtk_Handle_Box_Record
    114. Gtk.Hbutton_Box.Gtk_Hbutton_Box_Record
    115. Gtk.Header_Bar.Gtk_Header_Bar_Record
    116. Gtk.IM_Context.Gtk_IM_Context_Record
    117. Gtk.IM_Context_Simple.Gtk_IM_Context_Simple_Record
    118. Gtk.IM_Multi_Context.Gtk_IM_Multi_Context_Record
    119. Gtk.Hsv.Gtk_Hsv_Record
    120. Gtk.Icon_Factory.Gtk_Icon_Factory_Record
    121. Gtk.Icon_Set.Gtk_Icon_Set
    122. Gtk.Icon_Source.Gtk_Icon_Source
    123. Gtk.Icon_Theme.Gtk_Icon_Info_Record
    124. Gtk.Icon_Theme.Gtk_Icon_Theme_Record
    125. Gtk.Icon_View.Gtk_Icon_View_Record
    126. Gtk.Image.Gtk_Image_Record
    127. Gtk.Image_Menu_Item.Gtk_Image_Menu_Item_Record
    128. Gtk.Info_Bar.Gtk_Info_Bar_Record
    129. Gtk.Invisible.Gtk_Invisible_Record
    130. Gtk.Label.Gtk_Label_Record
    131. Gtk.Layout.Gtk_Layout_Record
    132. Gtk.Level_Bar.Gtk_Level_Bar_Record
    133. Gtk.Link_Button.Gtk_Link_Button_Record
    134. Gtk.List_Box.Gtk_List_Box_Record
    135. Gtk.List_Box_Row.Gtk_List_Box_Row_Record
    136. Gtk.List_Store.Gtk_List_Store_Record
    137. Gtk.Menu.Gtk_Menu_Record
    138. Gtk.Menu_Bar.Gtk_Menu_Bar_Record
    139. Gtk.Menu_Button.Gtk_Menu_Button_Record
    140. Gtk.Menu_Item.Gtk_Menu_Item_Record
    141. Gtk.Menu_Shell.Gtk_Menu_Shell_Record
    142. Gtk.Menu_Tool_Button.Gtk_Menu_Tool_Button_Record
    143. Gtk.Message_Dialog.Gtk_Message_Dialog_Record
    144. Gtk.Misc.Gtk_Misc_Record
    145. Gtk.Notebook.Gtk_Notebook_Record
    146. Gtk.Offscreen_Window.Gtk_Offscreen_Window_Record
    147. Gtk.Overlay.Gtk_Overlay_Record
    148. Gtk.Page_Setup.Gtk_Page_Setup_Record
    149. Gtk.Paned.Gtk_Paned_Record
    150. Gtk.Paper_Size.Gtk_Paper_Size
    151. Gtk.Popover.Gtk_Popover_Record
    152. Gtk.Print_Context.Gtk_Print_Context_Record
    153. Gtk.Print_Operation.Gtk_Print_Operation_Record
    154. Gtk.Print_Settings.Gtk_Print_Settings_Record
    155. Gtk.Progress_Bar.Gtk_Progress_Bar_Record
    156. Gtk.Radio_Action.Gtk_Radio_Action_Record
    157. Gtk.Radio_Button.Gtk_Radio_Button_Record
    158. Gtk.Radio_Menu_Item.Gtk_Radio_Menu_Item_Record
    159. Gtk.Radio_Tool_Button.Gtk_Radio_Tool_Button_Record
    160. Gtk.Recent_Action.Gtk_Recent_Action_Record
    161. Gtk.Recent_Chooser_Dialog.Gtk_Recent_Chooser_Dialog_Record
    162. Gtk.Recent_Chooser_Menu.Gtk_Recent_Chooser_Menu_Record
    163. Gtk.Recent_Chooser_Widget.Gtk_Recent_Chooser_Widget_Record
    164. Gtk.Recent_Filter.Gtk_Recent_Filter_Record
    165. Gtk.Recent_Info.Gtk_Recent_Info
    166. Gtk.Recent_Manager.Gtk_Recent_Manager_Record
    167. Gtk.Revealer.Gtk_Revealer_Record
    168. Gtk.Scale.Gtk_Scale_Record
    169. Gtk.Scale_Button.Gtk_Scale_Button_Record
    170. Gtk.Scrollbar.Gtk_Scrollbar_Record
    171. Gtk.Scrolled_Window.Gtk_Scrolled_Window_Record
    172. Gtk.Search_Bar.Gtk_Search_Bar_Record
    173. Gtk.Search_Entry.Gtk_Search_Entry_Record
    174. Gtk.Selection_Data.Gtk_Selection_Data
    175. Gtk.Separator.Gtk_Separator_Record
    176. Gtk.Separator_Menu_Item.Gtk_Separator_Menu_Item_Record
    177. Gtk.Separator_Tool_Item.Gtk_Separator_Tool_Item_Record
    178. Gtk.Settings.Gtk_Settings_Record
    179. Gtk.Shortcuts_Window.Gtk_Shortcuts_Window_Record
    180. Gtk.Size_Group.Gtk_Size_Group_Record
    181. Gtk.Spin_Button.Gtk_Spin_Button_Record
    182. Gtk.Spinner.Gtk_Spinner_Record
    183. Gtk.Stack.Gtk_Stack_Record
    184. Gtk.Stack_Switcher.Gtk_Stack_Switcher_Record
    185. Gtk.Status_Bar.Gtk_Status_Bar_Record
    186. Gtk.Status_Icon.Gtk_Status_Icon_Record
    187. Gtk.Style.Gtk_Style_Record
    188. Gtk.Style_Context.Gtk_Style_Context_Record
    189. Gtk.Style_Properties.Gtk_Style_Properties_Record
    190. Gtk.Switch.Gtk_Switch_Record
    191. Gtk.Symbolic_Color.Gtk_Symbolic_Color
    192. Gtk.Table.Gtk_Table_Record
    193. Gtk.Target_List.Gtk_Target_List
    194. Gtk.Tearoff_Menu_Item.Gtk_Tearoff_Menu_Item_Record
    195. Gtk.Text_Buffer.Gtk_Text_Buffer_Record
    196. Gtk.Text_Child.Gtk_Text_Child_Anchor_Record
    197. Gtk.Text_Child_Anchor.Gtk_Text_Child_Anchor_Record
    198. Gtk.Text_Mark.Gtk_Text_Mark_Record
    199. Gtk.Text_Tag.Gtk_Text_Tag_Record
    200. Gtk.Text_Tag_Table.Gtk_Text_Tag_Table_Record
    201. Gtk.Text_View.Gtk_Text_View_Record
    202. Gtk.Theming_Engine.Gtk_Theming_Engine_Record
    203. Gtk.Toggle_Action.Gtk_Toggle_Action_Record
    204. Gtk.Toggle_Button.Gtk_Toggle_Button_Record
    205. Gtk.Toggle_Tool_Button.Gtk_Toggle_Tool_Button_Record
    206. Gtk.Tool_Button.Gtk_Tool_Button_Record
    207. Gtk.Tool_Item.Gtk_Tool_Item_Record
    208. Gtk.Tool_Item_Group.Gtk_Tool_Item_Group_Record
    209. Gtk.Tool_Palette.Gtk_Tool_Palette_Record
    210. Gtk.Toolbar.Gtk_Toolbar_Record
    211. Gtk.Tooltip.Gtk_Tooltip_Record
    212. Gtk.Tree_Model.Gtk_Root_Tree_Model_Record
    213. Gtk.Tree_Model.Gtk_Tree_Path
    214. Gtk.Tree_Model_Filter.Gtk_Tree_Model_Filter_Record
    215. Gtk.Tree_Model_Sort.Gtk_Tree_Model_Sort_Record
    216. Gtk.Tree_Row_Reference.Gtk_Tree_Row_Reference
    217. Gtk.Tree_Selection.Gtk_Tree_Selection_Record
    218. Gtk.Tree_Store.Gtk_Tree_Store_Record
    219. Gtk.Tree_View.Gtk_Tree_View_Record
    220. Gtk.Tree_View_Column.Gtk_Tree_View_Column_Record
    221. Gtk.UI_Manager.Gtk_UI_Manager_Record
    222. Gtk.Vbutton_Box.Gtk_Vbutton_Box_Record
    223. Gtk.Viewport.Gtk_Viewport_Record
    224. Gtk.Volume_Button.Gtk_Volume_Button_Record
    225. Gtk.Widget.Gtk_Widget_Record
    226. Gtk.Window.Gtk_Window_Group_Record
    227. Gtk.Window.Gtk_Window_Record
    228. Gtkada.Abstract_List_Model.Gtk_Abstract_List_Model_Record
    229. Gtkada.Abstract_Tree_Model.Gtk_Abstract_Tree_Model_Record
    230. Gtkada.Application.Gtkada_Application_Record
    231. Gtkada.Builder.Gtkada_Builder_Record
    232. Gtkada.Canvas.Buffered_Item_Record
    233. Gtkada.Canvas.Canvas_Item_Record
    234. Gtkada.Canvas.Canvas_Link_Record
    235. Gtkada.Canvas_View.Abstract_Item_Record
    236. Gtkada.Canvas.Interactive_Canvas_Record
    237. Gtkada.Canvas_View.Canvas_Item_Record
    238. Gtkada.Canvas_View.Canvas_Link_Record
    239. Gtkada.Canvas_View.Canvas_Model_Record
    240. Gtkada.Canvas_View.Canvas_View_Record
    241. Gtkada.Canvas_View.Container_Item_Record
    242. Gtkada.Canvas_View.Editable_Text_Item_Record
    243. Gtkada.Canvas_View.Ellipse_Item_Record
    244. Gtkada.Canvas_View.Hr_Item_Record
    245. Gtkada.Canvas_View.Image_Item_Record
    246. Gtkada.Canvas_View.Models.Rtree_Models.Rtree_Model_Record
    247. Gtkada.Canvas_View.List_Canvas_Model_Record
    248. Gtkada.Canvas_View.Polyline_Item_Record
    249. Gtkada.Canvas_View.Rtrees.Rtree
    250. Gtkada.Canvas_View.Rect_Item_Record
    251. Gtkada.Canvas_View.Text_Item_Record
    252. Gtkada.Canvas_View.Views.Animator
    253. Gtkada.Canvas_View.Views.Minimap_View_Record
    254. Gtkada.MDI.MDI_Child_Record
    255. Gtkada.MDI.MDI_Window_Record
    256. Gtkada.Multi_Paned.Gtkada_Multi_Paned_Record
    257. Gtkada.Multiline_Entry.Gtkada_Multiline_Entry_Record
    258. Gtkada.Printing.Gtkada_Print_Operation_Record
    259. Gtkada.Style.Drawing_Style
    260. Pango.Attributes.Pango_Attr_List
    261. Pango.Context.Pango_Context_Record
    262. Pango.Coverage.Pango_Coverage_Record
    263. Pango.Font.Pango_Font_Record
    264. Pango.Font_Face.Pango_Font_Face_Record
    265. Pango.Font_Family.Pango_Font_Family_Record
    266. Pango.Font_Map.Pango_Font_Map_Record
    267. Pango.Font_Metrics.Pango_Font_Metrics
    268. Pango.Fontset.Pango_Fontset_Record
    269. Pango.Language.Pango_Language
    270. Pango.Layout.Pango_Layout_Iter
    271. Pango.Layout.Pango_Layout_Record
    272. Pango.Tabs.Pango_Tab_Array

Glib.Application

Description

A Glib.Application.Gapplication is the foundation of an application. It wraps some low-level platform-specific services and is intended to act as the foundation for higher-level application classes such as Gtk.Application.Gtk_Application or Mx_Application. In general, you should not use this class outside of a higher level framework.

GApplication provides convenient life cycle management by maintaining a "use count" for the primary application instance. The use count can be changed using Glib.Application.Hold and Glib.Application.Release. If it drops to zero, the application exits. Higher-level classes such as Gtk.Application.Gtk_Application employ the use count to ensure that the application stays alive as long as it has any opened windows.

Another feature that GApplication (optionally) provides is process uniqueness. Applications can make use of this functionality by providing a unique application ID. If given, only one application with this ID can be running at a time per session. The session concept is platform-dependent, but corresponds roughly to a graphical desktop login. When your application is launched again, its arguments are passed through platform communication to the already running program. The already running instance of the program is called the "primary instance"; for non-unique applications this is always the current instance. On Linux, the D-Bus session bus is used for communication.

The use of Glib.Application.Gapplication differs from some other commonly-used uniqueness libraries (such as libunique) in important ways. The application is not expected to manually register itself and check if it is the primary instance. Instead, the main function of a Glib.Application.Gapplication should do very little more than instantiating the application instance, possibly connecting signal handlers, then calling Glib.Application.Run. All checks for uniqueness are done internally. If the application is the primary instance then the startup signal is emitted and the mainloop runs. If the application is not the primary instance then a signal is sent to the primary instance and Glib.Application.Run promptly returns. See the code examples below.

If used, the expected form of an application identifier is the same as that of of a D-Bus well-known bus name. Examples include: com.example.MyApp, org.example.internal_apps.Calculator, org._7_zip.Archiver. For details on valid application identifiers, see Glib.Application.Id_Is_Valid.

On Linux, the application identifier is claimed as a well-known bus name on the user's session bus. This means that the uniqueness of your application is scoped to the current session. It also means that your application may provide additional services (through registration of other object paths) at that bus name. The registration of these object paths should be done with the shared GDBus session bus. Note that due to the internal architecture of GDBus, method calls can be dispatched at any time (even if a main loop is not running). For this reason, you must ensure that any object paths that you wish to register are registered before Glib.Application.Gapplication attempts to acquire the bus name of your application (which happens in g_application_register). Unfortunately, this means that you cannot use Glib.Application.Get_Is_Remote to decide if you want to register object paths.

GApplication also implements the Glib.Action_Group.Gaction_Group and Glib.Action_Map.Gaction_Map interfaces and lets you easily export actions by adding them with Glib.Action_Map.Add_Action. When invoking an action by calling Glib.Action_Group.Activate_Action on the application, it is always invoked in the primary instance. The actions are also exported on the session bus, and GIO provides the Gdbus.Action_Group.Gdbus_Action_Group wrapper to conveniently access them remotely. GIO provides a Gdbus.Menu_Model.Gdbus_Menu_Model wrapper for remote access to exported GMenu_Models.

There is a number of different entry points into a GApplication:

The Glib.Application.Gapplication::startup signal lets you handle the application initialization for all of these in a single place.

Regardless of which of these entry points is used to start the application, GApplication passes some ‘platform data' from the launching instance to the primary instance, in the form of a Glib.Variant.Gvariant dictionary mapping strings to variants. To use platform data, override the Before_Emit or After_Emit virtual functions in your Glib.Application.Gapplication subclass. When dealing with Glib.Application.Gapplication_Command_Line objects, the platform data is directly available via Glib.Application.Get_Cwd, Glib.Application.Get_Environ and Glib.Application.Get_Platform_Data.

As the name indicates, the platform data may vary depending on the operating system, but it always includes the current directory (key "cwd"), and optionally the environment (ie the set of environment variables and their values) of the calling process (key "environ"). The environment is only added to the platform data if the Glib.Application.G_Application_Send_Environment flag is set. Glib.Application.Gapplication subclasses can add their own platform data by overriding the Add_Platform_Data virtual function. For instance, Gtk.Application.Gtk_Application adds startup notification data in this way.

To parse commandline arguments you may handle the Glib.Application.Gapplication::command-line signal or override the local_command_line vfunc, to parse them in either the primary instance or the local instance, respectively.

For an example of opening files with a GApplication, see gapplication-example-open.c.

For an example of using actions with GApplication, see gapplication-example-actions.c.

For an example of using extra D-Bus hooks with GApplication, see gapplication-example-dbushooks.c.

"+"

function "+"
  (Widget : access Gapplication_Record'Class)
return Glib.Action_Group.Gaction_Group
Parameters
Widget
Return Value

"+"

function "+"
  (Widget : access Gapplication_Record'Class)
return Glib.Action_Map.Gaction_Map
Parameters
Widget
Return Value

"-"

function "-"
  (Interf : Glib.Action_Group.Gaction_Group)
return Gapplication
Parameters
Interf
Return Value

"-"

function "-"
  (Interf : Glib.Action_Map.Gaction_Map)
return Gapplication
Parameters
Interf
Return Value

Action_Added

procedure Action_Added
   (Self        : not null access Gapplication_Record;
    Action_Name : UTF8_String)
Parameters
Self
Action_Name

Action_Enabled_Changed

procedure Action_Enabled_Changed
   (Self        : not null access Gapplication_Record;
    Action_Name : UTF8_String;
    Enabled     : Boolean)
Parameters
Self
Action_Name
Enabled

Action_Group_Property

Action_Group_Property : constant Glib.Properties.Property_Object;

Type: Gtk.Action_Group.Gtk_Action_Group Flags: write

Action_Removed

procedure Action_Removed
   (Self        : not null access Gapplication_Record;
    Action_Name : UTF8_String)
Parameters
Self
Action_Name

Action_State_Changed

procedure Action_State_Changed
   (Self        : not null access Gapplication_Record;
    Action_Name : UTF8_String;
    State       : Glib.Variant.Gvariant)
Parameters
Self
Action_Name
State

Activate

procedure Activate (Self : not null access Gapplication_Record)

Activates the application. In essence, this results in the Glib.Application.Gapplication::activate signal being emitted in the primary instance. The application must be registered before calling this function. Since: gtk+ 2.28

Parameters
Self

Activate_Action

procedure Activate_Action
   (Self        : not null access Gapplication_Record;
    Action_Name : UTF8_String;
    Parameter   : Glib.Variant.Gvariant)
Parameters
Self
Action_Name
Parameter

Add_Action

procedure Add_Action
   (Self   : not null access Gapplication_Record;
    Action : Glib.Action.Gaction)
Parameters
Self
Action

Add_Action_Entries

procedure Add_Action_Entries
   (Self      : not null access Gapplication_Record;
    Entries   : GAction_Entry_Array;
    User_Data : System.Address := System.Null_Address)
Parameters
Self
Entries
User_Data

Application_Id_Property

Application_Id_Property : constant Glib.Properties.Property_String;

Application_Interface_Descr

subtype Application_Interface_Descr is Glib.Object.Interface_Description;

Arguments_Property

Arguments_Property : constant Glib.Properties.Property_Object;

Type: Glib.Variant.Gvariant Flags: write

Bind_Busy_Property

procedure Bind_Busy_Property
   (Self     : not null access Gapplication_Record;
    Object   : System.Address;
    Property : UTF8_String)

Marks Application as busy (see Glib.Application.Mark_Busy) while Property on Object is True. The binding holds a reference to Application while it is active, but not to Object. Instead, the binding is destroyed when Object is finalized. Since: gtk+ 2.44

Parameters
Self
Object

a Glib.Object.GObject

Property

the name of a boolean property of Object

Cb_Gapplication_Boolean

type Cb_Gapplication_Boolean is not null access function
  (Self : access Gapplication_Record'Class) return Boolean;
Parameters
Self
Return Value

Cb_Gapplication_Gapplication_Command_Line_Gint

type Cb_Gapplication_Gapplication_Command_Line_Gint is not null access function
  (Self         : access Gapplication_Record'Class;
   Command_Line : not null access Gapplication_Command_Line_Record'Class)
return Glib.Gint;
Parameters
Self
Command_Line
Return Value

Cb_Gapplication_Void

type Cb_Gapplication_Void is not null access procedure (Self : access Gapplication_Record'Class);
Parameters
Self

Cb_GObject_Boolean

type Cb_GObject_Boolean is not null access function
  (Self : access Glib.Object.GObject_Record'Class)
return Boolean;
Parameters
Self
Return Value

Cb_GObject_Gapplication_Command_Line_Gint

type Cb_GObject_Gapplication_Command_Line_Gint is not null access function
  (Self         : access Glib.Object.GObject_Record'Class;
   Command_Line : not null access Gapplication_Command_Line_Record'Class)
return Glib.Gint;
Parameters
Self
Command_Line
Return Value

Cb_GObject_Void

type Cb_GObject_Void is not null access procedure
  (Self : access Glib.Object.GObject_Record'Class);
Parameters
Self

Change_Action_State

procedure Change_Action_State
   (Self        : not null access Gapplication_Record;
    Action_Name : UTF8_String;
    Value       : Glib.Variant.Gvariant)
Parameters
Self
Action_Name
Value

Flags_Property

Flags_Property : constant Glib.Properties.Property_Boxed;

Type: Application_Flags

G_Application_Allow_Replacement

G_Application_Allow_Replacement : constant GApplication_Flags := 128;

G_Application_Can_Override_App_Id

G_Application_Can_Override_App_Id : constant GApplication_Flags := 64;

G_Application_Flags_None

G_Application_Flags_None : constant GApplication_Flags := 0;

G_Application_Handles_Command_Line

G_Application_Handles_Command_Line : constant GApplication_Flags := 8;

G_Application_Handles_Open

G_Application_Handles_Open : constant GApplication_Flags := 4;

G_Application_Is_Launcher

G_Application_Is_Launcher : constant GApplication_Flags := 2;

G_Application_Is_Service

G_Application_Is_Service : constant GApplication_Flags := 1;

G_Application_Non_Unique

G_Application_Non_Unique : constant GApplication_Flags := 32;

G_Application_Replace

G_Application_Replace : constant GApplication_Flags := 256;

G_Application_Send_Environment

G_Application_Send_Environment : constant GApplication_Flags := 16;

G_New

procedure G_New
   (Self           : out Gapplication;
    Application_Id : UTF8_String := "";
    Flags          : GApplication_Flags)

Creates a new Glib.Application.Gapplication instance. If non-null, the application id must be valid. See Glib.Application.Id_Is_Valid. If no application ID is given then some features of Glib.Application.Gapplication (most notably application uniqueness) will be disabled.

Parameters
Self
Application_Id

the application id

Flags

the application flags

Gapplication

type Gapplication is access all Gapplication_Record'Class;

Gapplication_Command_Line

type Gapplication_Command_Line is access all Gapplication_Command_Line_Record'Class;

Gapplication_Command_Line_Record

type Gapplication_Command_Line_Record is new GObject_Record with null record;

GApplication_Flags

type GApplication_Flags is mod 2 ** Integer'Size;

Flags used to define the behaviour of a Glib.Application.Gapplication.

GApplication_Flags_Properties

package GApplication_Flags_Properties is
   new Generic_Internal_Discrete_Property (GApplication_Flags);

Gapplication_New

function Gapplication_New
   (Application_Id : UTF8_String := "";
    Flags          : GApplication_Flags) return Gapplication

Creates a new Glib.Application.Gapplication instance. If non-null, the application id must be valid. See Glib.Application.Id_Is_Valid. If no application ID is given then some features of Glib.Application.Gapplication (most notably application uniqueness) will be disabled.

Parameters
Application_Id

the application id

Flags

the application flags

Return Value

Gapplication_Record

type Gapplication_Record is new GObject_Record with null record;

Get_Action_Enabled

function Get_Action_Enabled
   (Self        : not null access Gapplication_Record;
    Action_Name : UTF8_String) return Boolean
Parameters
Self
Action_Name
Return Value

Get_Action_Parameter_Type

function Get_Action_Parameter_Type
   (Self        : not null access Gapplication_Record;
    Action_Name : UTF8_String) return Glib.Variant.Gvariant_Type
Parameters
Self
Action_Name
Return Value

Get_Action_State

function Get_Action_State
   (Self        : not null access Gapplication_Record;
    Action_Name : UTF8_String) return Glib.Variant.Gvariant
Parameters
Self
Action_Name
Return Value

Get_Action_State_Hint

function Get_Action_State_Hint
   (Self        : not null access Gapplication_Record;
    Action_Name : UTF8_String) return Glib.Variant.Gvariant
Parameters
Self
Action_Name
Return Value

Get_Action_State_Type

function Get_Action_State_Type
   (Self        : not null access Gapplication_Record;
    Action_Name : UTF8_String) return Glib.Variant.Gvariant_Type
Parameters
Self
Action_Name
Return Value

Get_Application_Id

function Get_Application_Id
   (Self : not null access Gapplication_Record) return UTF8_String

Gets the unique identifier for Application. Since: gtk+ 2.28

Parameters
Self
Return Value

the identifier for Application, owned by Application

Get_Arguments

function Get_Arguments
   (Self : not null access Gapplication_Command_Line_Record)
    return GNAT.Strings.String_List

Gets the list of arguments that was passed on the command line. The strings in the array may contain non-UTF-8 data on UNIX (such as filenames or arguments given in the system locale) but are always in UTF-8 on Windows. If you wish to use the return value with Glib.Option.Goption_Context, you must use g_option_context_parse_strv. The return value is null-terminated and should be freed using g_strfreev. Since: gtk+ 2.28

Parameters
Self
Return Value

the string array containing the arguments (the argv)

Get_Cwd

function Get_Cwd
   (Self : not null access Gapplication_Command_Line_Record)
    return UTF8_String

Gets the working directory of the command line invocation. The string may contain non-utf8 data. It is possible that the remote application did not send a working directory, so this may be null. The return value should not be modified or freed and is valid for as long as Cmdline exists. Since: gtk+ 2.28

Parameters
Self
Return Value

the current directory, or null

Get_Dbus_Object_Path

function Get_Dbus_Object_Path
   (Self : not null access Gapplication_Record) return UTF8_String

Gets the D-Bus object path being used by the application, or null. If Glib.Application.Gapplication is using its D-Bus backend then this function will return the D-Bus object path that Glib.Application.Gapplication is using. If the application is the primary instance then there is an object published at this path. If the application is not the primary instance then the result of this function is undefined. If Glib.Application.Gapplication is not using D-Bus then this function will return null. This includes the situation where the D-Bus backend would normally be in use but we were unable to connect to the bus. This function must not be called before the application has been registered. See Glib.Application.Get_Is_Registered. Since: gtk+ 2.34

Parameters
Self
Return Value

the object path, or null

Get_Default

function Get_Default return Gapplication

Returns the default Glib.Application.Gapplication instance for this process. Normally there is only one Glib.Application.Gapplication per process and it becomes the default when it is created. You can exercise more control over this by using Glib.Application.Set_Default. If there is no default application then null is returned. Since: gtk+ 2.32

Return Value

the default application for this process, or null

Get_Environ

function Get_Environ
   (Self : not null access Gapplication_Command_Line_Record)
    return GNAT.Strings.String_List

Gets the contents of the 'environ' variable of the command line invocation, as would be returned by Glib.Spawn.Get_Environ, ie as a null-terminated list of strings in the form 'NAME=VALUE'. The strings may contain non-utf8 data. The remote application usually does not send an environment. Use Glib.Application.G_Application_Send_Environment to affect that. Even with this flag set it is possible that the environment is still not available (due to invocation messages from other applications). The return value should not be modified or freed and is valid for as long as Cmdline exists. See Glib.Application.Getenv if you are only interested in the value of a single environment variable. Since: gtk+ 2.28

Parameters
Self
Return Value

the environment strings, or null if they were not sent

Get_Exit_Status

function Get_Exit_Status
   (Self : not null access Gapplication_Command_Line_Record)
    return Glib.Gint

Gets the exit status of Cmdline. See Glib.Application.Set_Exit_Status for more information. Since: gtk+ 2.28

Parameters
Self
Return Value

the exit status

Get_Flags

function Get_Flags
   (Self : not null access Gapplication_Record) return GApplication_Flags

Gets the flags for Application. See Glib.Application.GApplication_Flags. Since: gtk+ 2.28

Parameters
Self
Return Value

the flags for Application

Get_Inactivity_Timeout

function Get_Inactivity_Timeout
   (Self : not null access Gapplication_Record) return Guint

Gets the current inactivity timeout for the application. This is the amount of time (in milliseconds) after the last call to Glib.Application.Release before the application stops running. Since: gtk+ 2.28

Parameters
Self
Return Value

the timeout, in milliseconds

Get_Is_Busy

function Get_Is_Busy
   (Self : not null access Gapplication_Record) return Boolean

Gets the application's current busy state, as set through Glib.Application.Mark_Busy or Glib.Application.Bind_Busy_Property. Since: gtk+ 2.44

Parameters
Self
Return Value

True if Application is currently marked as busy

Get_Is_Registered

function Get_Is_Registered
   (Self : not null access Gapplication_Record) return Boolean

Checks if Application is registered. An application is registered if g_application_register has been successfully called. Since: gtk+ 2.28

Parameters
Self
Return Value

True if Application is registered

Get_Is_Remote

function Get_Is_Remote
   (Self : not null access Gapplication_Command_Line_Record)
    return Boolean

Determines if Cmdline represents a remote invocation. Since: gtk+ 2.28

Parameters
Self
Return Value

True if the invocation was remote

Get_Is_Remote

function Get_Is_Remote
   (Self : not null access Gapplication_Record) return Boolean

Checks if Application is remote. If Application is remote then it means that another instance of application already exists (the 'primary' instance). Calls to perform actions on Application will result in the actions being performed by the primary instance. The value of this property cannot be accessed before g_application_register has been called. See Glib.Application.Get_Is_Registered. Since: gtk+ 2.28

Parameters
Self
Return Value

True if Application is remote

Get_Platform_Data

function Get_Platform_Data
   (Self : not null access Gapplication_Command_Line_Record)
    return Glib.Variant.Gvariant

Gets the platform data associated with the invocation of Cmdline. This is a Glib.Variant.Gvariant dictionary containing information about the context in which the invocation occurred. It typically contains information like the current working directory and the startup notification ID. For local invocation, it will be null. Since: gtk+ 2.28

Parameters
Self
Return Value

the platform data, or null

Get_Resource_Base_Path

function Get_Resource_Base_Path
   (Self : not null access Gapplication_Record) return UTF8_String

Gets the resource base path of Application. See Glib.Application.Set_Resource_Base_Path for more information. Since: gtk+ 2.42

Parameters
Self
Return Value

the base resource path, if one is set

Get_Type

function Get_Type return Glib.GType
Return Value

Get_Type_Command_Line

function Get_Type_Command_Line return Glib.GType
Return Value

Getenv

function Getenv
   (Self : not null access Gapplication_Command_Line_Record;
    Name : UTF8_String) return UTF8_String

Gets the value of a particular environment variable of the command line invocation, as would be returned by g_getenv. The strings may contain non-utf8 data. The remote application usually does not send an environment. Use Glib.Application.G_Application_Send_Environment to affect that. Even with this flag set it is possible that the environment is still not available (due to invocation messages from other applications). The return value should not be modified or freed and is valid for as long as Cmdline exists. Since: gtk+ 2.28

Parameters
Self
Name

the environment variable to get

Return Value

the value of the variable, or null if unset or unsent

Has_Action

function Has_Action
   (Self        : not null access Gapplication_Record;
    Action_Name : UTF8_String) return Boolean
Parameters
Self
Action_Name
Return Value

Hold

procedure Hold (Self : not null access Gapplication_Record)

Increases the use count of Application. Use this function to indicate that the application has a reason to continue to run. For example, Glib.Application.Hold is called by GTK+ when a toplevel window is on the screen. To cancel the hold, call Glib.Application.Release.

Parameters
Self

Id_Is_Valid

function Id_Is_Valid (Application_Id : UTF8_String) return Boolean

Checks if Application_Id is a valid application identifier. A valid ID is required for calls to Glib.Application.G_New and Glib.Application.Set_Application_Id. Application identifiers follow the same format as D-Bus well-known bus names. For convenience, the restrictions on application identifiers are reproduced here:

by a period (.) character. All elements must contain at least one character.

[A-Z][a-z][0-9]_-, with - discouraged in new application identifiers. Each element must not begin with a digit.

character (and thus at least two elements).

Note that the hyphen (-) character is allowed in application identifiers, but is problematic or not allowed in various specifications and APIs that refer to D-Bus, such as Flatpak application IDs, the DBusActivatable interface in the Desktop Entry Specification, and the convention that an application's "main" interface and object path resemble its application identifier and bus name. To avoid situations that require special-case handling, it is recommended that new application identifiers consistently replace hyphens with underscores. Like D-Bus interface names, application identifiers should start with the reversed DNS domain name of the author of the interface (in lower-case), and it is conventional for the rest of the application identifier to consist of words run together, with initial capital letters. As with D-Bus interface names, if the author's DNS domain name contains hyphen/minus characters they should be replaced by underscores, and if it contains leading digits they should be escaped by prepending an underscore. For example, if the owner of 7-zip.org used an application identifier for an archiving application, it might be named org._7_zip.Archiver.

Parameters
Application_Id

a potential application identifier

Return Value

True if Application_Id is valid

Implements_Gaction_Group

package Implements_Gaction_Group is new Glib.Types.Implements
  (Glib.Action_Group.Gaction_Group, Gapplication_Record, Gapplication);

Implements_Gaction_Map

package Implements_Gaction_Map is new Glib.Types.Implements
  (Glib.Action_Map.Gaction_Map, Gapplication_Record, Gapplication);

Inactivity_Timeout_Property

Inactivity_Timeout_Property : constant Glib.Properties.Property_Uint;

Initialize

procedure Initialize
   (Self           : not null access Gapplication_Record'Class;
    Application_Id : UTF8_String := "";
    Flags          : GApplication_Flags)

Creates a new Glib.Application.Gapplication instance. If non-null, the application id must be valid. See Glib.Application.Id_Is_Valid. If no application ID is given then some features of Glib.Application.Gapplication (most notably application uniqueness) will be disabled. Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Self
Application_Id

the application id

Flags

the application flags

Is_Busy_Property

Is_Busy_Property : constant Glib.Properties.Property_Boolean;

Whether the application is currently marked as busy through Glib.Application.Mark_Busy or Glib.Application.Bind_Busy_Property.

Is_Registered_Property

Is_Registered_Property : constant Glib.Properties.Property_Boolean;

Is_Remote_Property

Is_Remote_Property : constant Glib.Properties.Property_Boolean;

List_Actions

function List_Actions
   (Self : not null access Gapplication_Record)
    return GNAT.Strings.String_List
Parameters
Self
Return Value

Lookup_Action

function Lookup_Action
   (Self        : not null access Gapplication_Record;
    Action_Name : UTF8_String) return Glib.Action.Gaction
Parameters
Self
Action_Name
Return Value

Mark_Busy

procedure Mark_Busy (Self : not null access Gapplication_Record)

Increases the busy count of Application. Use this function to indicate that the application is busy, for instance while a long running operation is pending. The busy state will be exposed to other processes, so a session shell will use that information to indicate the state to the user (e.g. with a spinner). To cancel the busy indication, use Glib.Application.Unmark_Busy. Since: gtk+ 2.38

Parameters
Self

On_Activate

procedure On_Activate
   (Self  : not null access Gapplication_Record;
    Call  : Cb_Gapplication_Void;
    After : Boolean := False)

The ::activate signal is emitted on the primary instance when an activation occurs. See Glib.Application.Activate.

Parameters
Self
Call
After

On_Activate

procedure On_Activate
   (Self  : not null access Gapplication_Record;
    Call  : Cb_GObject_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

The ::activate signal is emitted on the primary instance when an activation occurs. See Glib.Application.Activate.

Parameters
Self
Call
Slot
After

On_Command_Line

procedure On_Command_Line
   (Self  : not null access Gapplication_Record;
    Call  : Cb_Gapplication_Gapplication_Command_Line_Gint;
    After : Boolean := False)

The ::command-line signal is emitted on the primary instance when a commandline is not handled locally. See Glib.Application.Run and the Glib.Application.Gapplication_Command_Line documentation for more information.

Callback parameters: -- @param Command_Line a Glib.Application.Gapplication_Command_Line -- representing the passed commandline

Parameters
Self
Call
After

On_Command_Line

procedure On_Command_Line
   (Self  : not null access Gapplication_Record;
    Call  : Cb_GObject_Gapplication_Command_Line_Gint;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

The ::command-line signal is emitted on the primary instance when a commandline is not handled locally. See Glib.Application.Run and the Glib.Application.Gapplication_Command_Line documentation for more information.

Callback parameters: -- @param Command_Line a Glib.Application.Gapplication_Command_Line -- representing the passed commandline

Parameters
Self
Call
Slot
After

On_Name_Lost

procedure On_Name_Lost
   (Self  : not null access Gapplication_Record;
    Call  : Cb_Gapplication_Boolean;
    After : Boolean := False)

The ::name-lost signal is emitted only on the registered primary instance when a new instance has taken over. This can only happen if the application is using the Glib.Application.G_Application_Allow_Replacement flag.

The default handler for this signal calls Glib.Application.Quit.

Callback parameters:

Parameters
Self
Call
After

On_Name_Lost

procedure On_Name_Lost
   (Self  : not null access Gapplication_Record;
    Call  : Cb_GObject_Boolean;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

The ::name-lost signal is emitted only on the registered primary instance when a new instance has taken over. This can only happen if the application is using the Glib.Application.G_Application_Allow_Replacement flag.

The default handler for this signal calls Glib.Application.Quit.

Callback parameters:

Parameters
Self
Call
Slot
After

On_Shutdown

procedure On_Shutdown
   (Self  : not null access Gapplication_Record;
    Call  : Cb_Gapplication_Void;
    After : Boolean := False)

The ::shutdown signal is emitted only on the registered primary instance immediately after the main loop terminates.

Parameters
Self
Call
After

On_Shutdown

procedure On_Shutdown
   (Self  : not null access Gapplication_Record;
    Call  : Cb_GObject_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

The ::shutdown signal is emitted only on the registered primary instance immediately after the main loop terminates.

Parameters
Self
Call
Slot
After

On_Startup

procedure On_Startup
   (Self  : not null access Gapplication_Record;
    Call  : Cb_Gapplication_Void;
    After : Boolean := False)

The ::startup signal is emitted on the primary instance immediately after registration. See g_application_register.

Parameters
Self
Call
After

On_Startup

procedure On_Startup
   (Self  : not null access Gapplication_Record;
    Call  : Cb_GObject_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

The ::startup signal is emitted on the primary instance immediately after registration. See g_application_register.

Parameters
Self
Call
Slot
After

Options_Property

Options_Property : constant Glib.Properties.Property_Object;

Type: Glib.Variant.Gvariant Flags: write

Platform_Data_Property

Platform_Data_Property : constant Glib.Properties.Property_Object;

Type: Glib.Variant.Gvariant Flags: write

Property_GApplication_Flags

type Property_GApplication_Flags is new GApplication_Flags_Properties.Property;

Query_Action

function Query_Action
   (Self           : not null access Gapplication_Record;
    Action_Name    : UTF8_String;
    Enabled        : access Boolean;
    Parameter_Type : access Glib.Variant.Gvariant_Type;
    State_Type     : access Glib.Variant.Gvariant_Type;
    State_Hint     : access Glib.Variant.Gvariant;
    State          : access Glib.Variant.Gvariant) return Boolean
Parameters
Self
Action_Name
Enabled
Parameter_Type
State_Type
State_Hint
State
Return Value

Quit

procedure Quit (Self : not null access Gapplication_Record)

Immediately quits the application. Upon return to the mainloop, Glib.Application.Run will return, calling only the 'shutdown' function before doing so. The hold count is ignored. Take care if your code has called Glib.Application.Hold on the application and is therefore still expecting it to exist. (Note that you may have called Glib.Application.Hold indirectly, for example through Gtk.Application.Add_Window.) The result of calling Glib.Application.Run again after it returns is unspecified. Since: gtk+ 2.32

Parameters
Self

Register

function Register
  (Self        : not null access Gapplication_Record;
   Cancellable : access Glib.Cancellable.Gcancellable_Record'Class)
return Boolean

Attempts registration of the application. This is the point at which the application discovers if it is the primary instance or merely acting as a remote for an already-existing primary instance. This is implemented by attempting to acquire the application identifier as a unique bus name on the session bus using GDBus. If there is no application ID or if Glib.Application.G_Application_Non_Unique was given, then this process will always become the primary instance. Due to the internal architecture of GDBus, method calls can be dispatched at any time (even if a main loop is not running). For this reason, you must ensure that any object paths that you wish to register are registered before calling this function. If the application has already been registered then True is returned with no work performed. The Glib.Application.Gapplication::startup signal is emitted if registration succeeds and Application is the primary instance (including the non-unique case). In the event of an error (such as Cancellable being cancelled, or a failure to connect to the session bus), False is returned and Error is set appropriately. Note: the return value of this function is not an indicator that this instance is or is not the primary instance of the application. See Glib.Application.Get_Is_Remote for that. Since: gtk+ 2.28 "cancellable": a Glib.Cancellable.Gcancellable, or null

Parameters
Self
Cancellable
Return Value

Release

procedure Release (Self : not null access Gapplication_Record)

Decrease the use count of Application. When the use count reaches zero, the application will stop running. Never call this function except to cancel the effect of a previous call to Glib.Application.Hold.

Parameters
Self

Remove_Action

procedure Remove_Action
   (Self        : not null access Gapplication_Record;
    Action_Name : UTF8_String)
Parameters
Self
Action_Name

Resource_Base_Path_Property

Resource_Base_Path_Property : constant Glib.Properties.Property_String;

Run

function Run
  (Self : not null access Gapplication_Record) return Gint

Same as above, but automatically sets argc argv from actual values.

Parameters
Self
Return Value

Run

function Run
   (Self : not null access Gapplication_Record;
    Argc : Glib.Gint;
    Argv : GNAT.Strings.String_List) return Glib.Gint

Runs the application. This function is intended to be run from main and its return value is intended to be returned by main. Although you are expected to pass the Argc, Argv parameters from main to this function, it is possible to pass null if Argv is not available or commandline handling is not required. Note that on Windows, Argc and Argv are ignored, and g_win32_get_command_line is called internally (for proper support of Unicode commandline arguments). Glib.Application.Gapplication will attempt to parse the commandline arguments. You can add commandline flags to the list of recognised options by way of g_application_add_main_option_entries. After this, the Glib.Application.Gapplication::handle-local-options signal is emitted, from which the application can inspect the values of its GOption_Entrys. Glib.Application.Gapplication::handle-local-options is a good place to handle options such as --version, where an immediate reply from the local process is desired (instead of communicating with an already-running instance). A Glib.Application.Gapplication::handle-local-options handler can stop further processing by returning a non-negative value, which then becomes the exit status of the process. What happens next depends on the flags: if Glib.Application.G_Application_Handles_Command_Line was specified then the remaining commandline arguments are sent to the primary instance, where a Glib.Application.Gapplication::command-line signal is emitted. Otherwise, the remaining commandline arguments are assumed to be a list of files. If there are no files listed, the application is activated via the Glib.Application.Gapplication::activate signal. If there are one or more files, and Glib.Application.G_Application_Handles_Open was specified then the files are opened via the Glib.Application.Gapplication::open signal. If you are interested in doing more complicated local handling of the commandline then you should implement your own Glib.Application.Gapplication subclass and override local_command_line. In this case, you most likely want to return True from your local_command_line implementation to suppress the default handling. See [gapplication-example-cmdline2.c][gapplication-example-cmdline2] for an example. If, after the above is done, the use count of the application is zero then the exit status is returned immediately. If the use count is non-zero then the default main context is iterated until the use count falls to zero, at which point 0 is returned. If the Glib.Application.G_Application_Is_Service flag is set, then the service will run for as much as 10 seconds with a use count of zero while waiting for the message that caused the activation to arrive. After that, if the use count falls to zero the application will exit immediately, except in the case that Glib.Application.Set_Inactivity_Timeout is in use. This function sets the prgname (g_set_prgname), if not already set, to the basename of argv[0]. Much like g_main_loop_run, this function will acquire the main context for the duration that the application is running. Since 2.40, applications that are not explicitly flagged as services or launchers (ie: neither Glib.Application.G_Application_Is_Service or Glib.Application.G_Application_Is_Launcher are given as flags) will check (from the default handler for local_command_line) if "--gapplication-service" was given in the command line. If this flag is present then normal commandline processing is interrupted and the Glib.Application.G_Application_Is_Service flag is set. This provides a "compromise" solution whereby running an application directly from the commandline will invoke it in the normal way (which can be useful for debugging) while still allowing applications to be D-Bus activated in service mode. The D-Bus service file should invoke the executable with "--gapplication-service" as the sole commandline argument. This approach is suitable for use by most graphical applications but should not be used from applications like editors that need precise control over when processes invoked via the commandline will exit and what their exit status will be. Since: gtk+ 2.28

Parameters
Self
Argc

the argc from main (or 0 if Argv is null)

Argv

the argv from main, or null

Return Value

the exit status

Send_Notification

procedure Send_Notification
   (Self         : not null access Gapplication_Record;
    Id           : UTF8_String := "";
    Notification : not null access Glib.Notification.Gnotification_Record'Class)

Sends a notification on behalf of Application to the desktop shell. There is no guarantee that the notification is displayed immediately, or even at all. Notifications may persist after the application exits. It will be D-Bus-activated when the notification or one of its actions is activated. Modifying Notification after this call has no effect. However, the object can be reused for a later call to this function. Id may be any string that uniquely identifies the event for the application. It does not need to be in any special format. For example, "new-message" might be appropriate for a notification about new messages. If a previous notification was sent with the same Id, it will be replaced with Notification and shown again as if it was a new notification. This works even for notifications sent from a previous execution of the application, as long as Id is the same string. Id may be null, but it is impossible to replace or withdraw notifications without an id. If Notification is no longer relevant, it can be withdrawn with Glib.Application.Withdraw_Notification. Since: gtk+ 2.40

Parameters
Self
Id

id of the notification, or null

Notification

the Glib.Notification.Gnotification to send

Set_Action_Group

procedure Set_Action_Group
   (Self         : not null access Gapplication_Record;
    Action_Group : Glib.Action_Group.Gaction_Group)

This used to be how actions were associated with a Glib.Application.Gapplication. Now there is Glib.Action_Map.Gaction_Map for that. Since: gtk+ 2.28 Deprecated since 2.32, 1

Parameters
Self
Action_Group

a Glib.Action_Group.Gaction_Group, or null

Set_Application_Id

procedure Set_Application_Id
   (Self           : not null access Gapplication_Record;
    Application_Id : UTF8_String := "")

Sets the unique identifier for Application. The application id can only be modified if Application has not yet been registered. If non-null, the application id must be valid. See Glib.Application.Id_Is_Valid. Since: gtk+ 2.28

Parameters
Self
Application_Id

the identifier for Application

Set_Command_Line

procedure Set_Command_Line
  (Self    : Glib.Object.GObject_Class;
   Handler : Virtual_Command_Line)
Parameters
Self
Handler

Set_Default

procedure Set_Default (Self : not null access Gapplication_Record)

Sets or unsets the default application for the process, as returned by Glib.Application.Get_Default. This function does not take its own reference on Application. If Application is destroyed then the default application will revert back to null. Since: gtk+ 2.32

Parameters
Self

Set_Exit_Status

procedure Set_Exit_Status
   (Self        : not null access Gapplication_Command_Line_Record;
    Exit_Status : Glib.Gint)

Sets the exit status that will be used when the invoking process exits. The return value of the Glib.Application.Gapplication::command-line signal is passed to this function when the handler returns. This is the usual way of setting the exit status. In the event that you want the remote invocation to continue running and want to decide on the exit status in the future, you can use this call. For the case of a remote invocation, the remote process will typically exit when the last reference is dropped on Cmdline. The exit status of the remote process will be equal to the last value that was set with this function. In the case that the commandline invocation is local, the situation is slightly more complicated. If the commandline invocation results in the mainloop running (ie: because the use-count of the application increased to a non-zero value) then the application is considered to have been 'successful' in a certain sense, and the exit status is always zero. If the application use count is zero, though, the exit status of the local Glib.Application.Gapplication_Command_Line is used. Since: gtk+ 2.28

Parameters
Self
Exit_Status

the exit status

Set_Flags

procedure Set_Flags
   (Self  : not null access Gapplication_Record;
    Flags : GApplication_Flags)

Sets the flags for Application. The flags can only be modified if Application has not yet been registered. See Glib.Application.GApplication_Flags. Since: gtk+ 2.28

Parameters
Self
Flags

the flags for Application

Set_Inactivity_Timeout

procedure Set_Inactivity_Timeout
   (Self               : not null access Gapplication_Record;
    Inactivity_Timeout : Guint)

Sets the current inactivity timeout for the application. This is the amount of time (in milliseconds) after the last call to Glib.Application.Release before the application stops running. This call has no side effects of its own. The value set here is only used for next time Glib.Application.Release drops the use count to zero. Any timeouts currently in progress are not impacted. Since: gtk+ 2.28

Parameters
Self
Inactivity_Timeout

the timeout, in milliseconds

Set_Local_Command_Line

procedure Set_Local_Command_Line
  (Self    : Glib.Object.GObject_Class;
   Handler : Virtual_Local_Command_Line)

See Glib.Object.Add_Interface

Parameters
Self
Handler

Set_Option_Context_Description

procedure Set_Option_Context_Description
   (Self        : not null access Gapplication_Record;
    Description : UTF8_String := "")

Adds a description to the Application option context. See Glib.Option.Set_Description for more information. Since: gtk+ 2.56

Parameters
Self
Description

a string to be shown in --help output after the list of options, or null

Set_Option_Context_Parameter_String

procedure Set_Option_Context_Parameter_String
   (Self             : not null access Gapplication_Record;
    Parameter_String : UTF8_String := "")

Sets the parameter string to be used by the commandline handling of Application. This function registers the argument to be passed to Glib.Option.G_New when the internal Glib.Option.Goption_Context of Application is created. See Glib.Option.G_New for more information about Parameter_String. Since: gtk+ 2.56

Parameters
Self
Parameter_String

a string which is displayed in the first line of --help output, after the usage summary programname [OPTION...].

Set_Option_Context_Summary

procedure Set_Option_Context_Summary
   (Self    : not null access Gapplication_Record;
    Summary : UTF8_String := "")

Adds a summary to the Application option context. See Glib.Option.Set_Summary for more information. Since: gtk+ 2.56

Parameters
Self
Summary

a string to be shown in --help output before the list of options, or null

Set_Resource_Base_Path

procedure Set_Resource_Base_Path
   (Self          : not null access Gapplication_Record;
    Resource_Path : UTF8_String := "")

Sets (or unsets) the base resource path of Application. The path is used to automatically load various [application resources][gresource] such as menu layouts and action descriptions. The various types of resources will be found at fixed names relative to the given base path. By default, the resource base path is determined from the application ID by prefixing '/' and replacing each '.' with '/'. This is done at the time that the Glib.Application.Gapplication object is constructed. Changes to the application ID after that point will not have an impact on the resource base path. As an example, if the application has an ID of "org.example.app" then the default resource base path will be "/org/example/app". If this is a Gtk.Application.Gtk_Application (and you have not manually changed the path) then Gtk will then search for the menus of the application at "/org/example/app/gtk/menus.ui". See Gresource.Gresource for more information about adding resources to your application. You can disable automatic resource loading functionality by setting the path to null. Changing the resource base path once the application is running is not recommended. The point at which the resource path is consulted for forming paths for various purposes is unspecified. When writing a sub-class of Glib.Application.Gapplication you should either set the Glib.Application.Gapplication:resource-base-path property at construction time, or call this function during the instance initialization. Alternatively, you can call this function in the GApplication_Class.startup virtual function, before chaining up to the parent implementation. Since: gtk+ 2.42

Parameters
Self
Resource_Path

the resource path to use

Signal_Activate

Signal_Activate : constant Glib.Signal_Name := "activate";

The ::activate signal is emitted on the primary instance when an activation occurs. See Glib.Application.Activate.

Signal_Command_Line

Signal_Command_Line : constant Glib.Signal_Name := "command-line";

The ::command-line signal is emitted on the primary instance when a commandline is not handled locally. See Glib.Application.Run and the Glib.Application.Gapplication_Command_Line documentation for more information.

Callback parameters: -- @param Command_Line a Glib.Application.Gapplication_Command_Line -- representing the passed commandline

Signal_Handle_Local_Options

Signal_Handle_Local_Options : constant Glib.Signal_Name := "handle-local-options";

The ::handle-local-options signal is emitted on the local instance after the parsing of the commandline options has occurred.

You can add options to be recognised during commandline option parsing using g_application_add_main_option_entries and g_application_add_option_group.

Signal handlers can inspect Options (along with values pointed to from the Arg_Data of an installed GOption_Entrys) in order to decide to perform certain actions, including direct local handling (which may be useful for options like --version).

In the event that the application is marked Glib.Application.G_Application_Handles_Command_Line the "normal processing" will send the Options dictionary to the primary instance where it can be read with g_application_command_line_get_options_dict. The signal handler can modify the dictionary before returning, and the modified dictionary will be sent.

In the event that Glib.Application.G_Application_Handles_Command_Line is not set, "normal processing" will treat the remaining uncollected command line arguments as filenames or URIs. If there are no arguments, the application is activated by Glib.Application.Activate. One or more arguments results in a call to g_application_open.

If you want to handle the local commandline arguments for yourself by converting them to calls to g_application_open or Glib.Action_Group.Activate_Action then you must be sure to register the application first. You should probably not call Glib.Application.Activate for yourself, however: just return -1 and allow the default handler to do it for you. This will ensure that the --gapplication-service switch works properly (i.e. no activation in that case).

Note that this signal is emitted from the default implementation of local_command_line. If you override that function and don't chain up then this signal will never be emitted.

You can override local_command_line if you need more powerful capabilities than what is provided here, but this should not normally be required. function Handler (Self : access Gapplication_Record'Class; Options : GLib.Variant_Dict) return Glib.Gint

Callback parameters: -- @param Options the options dictionary

Signal_Name_Lost

Signal_Name_Lost : constant Glib.Signal_Name := "name-lost";

The ::name-lost signal is emitted only on the registered primary instance when a new instance has taken over. This can only happen if the application is using the Glib.Application.G_Application_Allow_Replacement flag.

The default handler for this signal calls Glib.Application.Quit.

Callback parameters:

Signal_Open

Signal_Open : constant Glib.Signal_Name := "open";

The ::open signal is emitted on the primary instance when there are files to open. See g_application_open for more information. procedure Handler (Self : access Gapplication_Record'Class; Files : array_of_File; N_Files : Glib.Gint; Hint : UTF8_String)

Callback parameters: -- @param Files an array of GFiles -- @param N_Files the length of Files -- @param Hint a hint provided by the calling instance

Signal_Shutdown

Signal_Shutdown : constant Glib.Signal_Name := "shutdown";

The ::shutdown signal is emitted only on the registered primary instance immediately after the main loop terminates.

Signal_Startup

Signal_Startup : constant Glib.Signal_Name := "startup";

The ::startup signal is emitted on the primary instance immediately after registration. See g_application_register.

Unbind_Busy_Property

procedure Unbind_Busy_Property
   (Self     : not null access Gapplication_Record;
    Object   : System.Address;
    Property : UTF8_String)

Destroys a binding between Property and the busy state of Application that was previously created with Glib.Application.Bind_Busy_Property. Since: gtk+ 2.44

Parameters
Self
Object

a Glib.Object.GObject

Property

the name of a boolean property of Object

Unmark_Busy

procedure Unmark_Busy (Self : not null access Gapplication_Record)

Decreases the busy count of Application. When the busy count reaches zero, the new state will be propagated to other processes. This function must only be called to cancel the effect of a previous call to Glib.Application.Mark_Busy. Since: gtk+ 2.38

Parameters
Self

Virtual_Command_Line

type Virtual_Command_Line is access function
  (Self         : System.Address;
   Command_Line : System.Address) return Glib.Gint;
Parameters
Self
Command_Line
Return Value

Virtual_Local_Command_Line

type Virtual_Local_Command_Line is access function
  (Self        : System.Address;
   Arguments   : access Gtkada.Bindings.chars_ptr_array_access;
   Exit_Status : access Glib.Gint) return Glib.Gboolean;

This virtual function is always invoked in the local instance. It gets passed a pointer to a null-terminated copy of Argv and is expected to remove arguments that it handled (shifting up remaining arguments). The last argument to local_command_line is a pointer to the Status variable which can used to set the exit status that is returned from Glib.Application.Run. See Glib.Application.Run for more details on Glib.Application.Gapplication startup.

Parameters
Self
Arguments

array of command line arguments

Exit_Status

exit status to fill after processing the command line.

Return Value

True if the commandline has been completely handled

Withdraw_Notification

procedure Withdraw_Notification
   (Self : not null access Gapplication_Record;
    Id   : UTF8_String)

Withdraws a notification that was sent with Glib.Application.Send_Notification. This call does nothing if a notification with Id doesn't exist or the notification was never sent. This function works even for notifications sent in previous executions of this application, as long Id is the same as it was for the sent notification. Note that notifications are dismissed when the user clicks on one of the buttons in a notification or triggers its default action, so there is no need to explicitly withdraw the notification in that case. Since: gtk+ 2.40

Parameters
Self
Id

id of a previously sent notification

Simple Types

Tagged Types

Access Types

Subtypes

Constants

Subprograms

Generic Instantiations