/src/wrappers/gtk/library/gtk_action_group.e

http://github.com/tybor/Liberty · Specman e · 812 lines · 101 code · 223 blank · 488 comment · 2 complexity · a5210098bca0624afeec96870693ec21 MD5 · raw file

  1. indexing
  2. description: "A group of actions."
  3. copyright: "[
  4. Copyright (C) 2007 Paolo Redaelli, GTK+ team
  5. This library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Lesser General Public License
  7. as published by the Free Software Foundation; either version 2.1 of
  8. the License, or (at your option) any later version.
  9. This library is distributed in the hopeOA that it will be useful, but
  10. WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. Lesser General Public License for more details.
  13. You should have received a copy of the GNU Lesser General Public
  14. License along with this library; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  16. 02110-1301 USA
  17. ]"
  18. wrapped_version: "2.10.6"
  19. class GTK_ACTION_GROUP
  20. -- Actions are organised into groups. An action group is
  21. -- essentially a map from names to GtkAction objects.
  22. -- All actions that would make sense to use in a particular context
  23. -- should be in a single group. Multiple action groups may be used
  24. -- for a particular user interface. In fact, it is expected that
  25. -- most nontrivial applications will make use of multiple
  26. -- groups. For example, in an application that can edit multiple
  27. -- documents, one group holding global actions (e.g. quit, about,
  28. -- new), and one group per document holding actions that act on
  29. -- that document (eg. save, cut/copy/paste, etc). Each window's
  30. -- menus would be constructed from a combination of two action
  31. -- groups.
  32. -- Accelerators are handled by the GTK+ accelerator map. All
  33. -- actions are assigned an accelerator path (which normally has the
  34. -- form <Actions>/group-name/action-name) and a shortcut is
  35. -- associated with this accelerator path. All menuitems and tool
  36. -- items take on this accelerator path. The GTK+ accelerator map
  37. -- code makes sure that the correct shortcut is displayed next to
  38. -- the menu item.
  39. inherit G_OBJECT
  40. creation make, from_external_pointer
  41. feature {} -- Creation
  42. make (a_name: STRING) is
  43. -- Creates a new GtkActionGroup object. `a_name' is used as
  44. -- the name of the action group and it is used when
  45. -- associating keybindings with the actions.
  46. do
  47. from_external_pointer (gtk_action_group_new (a_name.to_external))
  48. end
  49. feature
  50. name: CONST_STRING is
  51. -- the name of the action group.
  52. do
  53. create Result.from_external(gtk_action_group_get_name(handle))
  54. ensure not_void: Result /= Void
  55. end
  56. -- gtk_action_group_get_sensitive ()
  57. -- gboolean gtk_action_group_get_sensitive (GtkActionGroup *action_group);
  58. -- Returns TRUE if the group is sensitive. The constituent actions can only
  59. -- be logically sensitive (see gtk_action_is_sensitive()) if they are
  60. -- sensitive (see gtk_action_get_sensitive()) and their group is sensitive.
  61. -- action_group : the action group
  62. -- Returns : TRUE if the group is sensitive.
  63. -- Since 2.4
  64. -- --------------------------------------------------------------------------
  65. -- gtk_action_group_set_sensitive ()
  66. -- void gtk_action_group_set_sensitive (GtkActionGroup *action_group,
  67. -- gboolean sensitive);
  68. -- Changes the sensitivity of action_group
  69. -- action_group : the action group
  70. -- sensitive : new sensitivity
  71. -- Since 2.4
  72. -- --------------------------------------------------------------------------
  73. -- gtk_action_group_get_visible ()
  74. -- gboolean gtk_action_group_get_visible (GtkActionGroup *action_group);
  75. -- Returns TRUE if the group is visible. The constituent actions can only be
  76. -- logically visible (see gtk_action_is_visible()) if they are visible (see
  77. -- gtk_action_get_visible()) and their group is visible.
  78. -- action_group : the action group
  79. -- Returns : TRUE if the group is visible.
  80. -- Since 2.4
  81. -- --------------------------------------------------------------------------
  82. -- gtk_action_group_set_visible ()
  83. -- void gtk_action_group_set_visible (GtkActionGroup *action_group,
  84. -- gboolean visible);
  85. -- Changes the visible of action_group.
  86. -- action_group : the action group
  87. -- visible : new visiblity
  88. -- Since 2.4
  89. -- --------------------------------------------------------------------------
  90. -- gtk_action_group_get_action ()
  91. -- GtkAction* gtk_action_group_get_action (GtkActionGroup *action_group,
  92. -- const gchar *action_name);
  93. -- Looks up an action in the action group by name.
  94. -- action_group : the action group
  95. -- action_name : the name of the action
  96. -- Returns : the action, or NULL if no action by that name exists
  97. -- Since 2.4
  98. -- --------------------------------------------------------------------------
  99. -- gtk_action_group_list_actions ()
  100. -- GList* gtk_action_group_list_actions (GtkActionGroup *action_group);
  101. -- Lists the actions in the action group.
  102. -- action_group : the action group
  103. -- Returns : an allocated list of the action objects in the action group
  104. -- Since 2.4
  105. -- --------------------------------------------------------------------------
  106. -- gtk_action_group_add_action ()
  107. -- void gtk_action_group_add_action (GtkActionGroup *action_group,
  108. -- GtkAction *action);
  109. -- Adds an action object to the action group. Note that this function does
  110. -- not set up the accel path of the action, which can lead to problems if a
  111. -- user tries to modify the accelerator of a menuitem associated with the
  112. -- action. Therefore you must either set the accel path yourself with
  113. -- gtk_action_set_accel_path(), or use gtk_action_group_add_action_with_accel
  114. -- (..., NULL).
  115. -- action_group : the action group
  116. -- action : an action
  117. -- Since 2.4
  118. -- --------------------------------------------------------------------------
  119. -- gtk_action_group_add_action_with_accel ()
  120. -- void gtk_action_group_add_action_with_accel
  121. -- (GtkActionGroup *action_group,
  122. -- GtkAction *action,
  123. -- const gchar *accelerator);
  124. -- Adds an action object to the action group and sets up the accelerator.
  125. -- If accelerator is NULL, attempts to use the accelerator associated with
  126. -- the stock_id of the action.
  127. -- Accel paths are set to <Actions>/group-name/action-name.
  128. -- action_group : the action group
  129. -- action : the action to add
  130. -- accelerator : the accelerator for the action, in the format understood by
  131. -- gtk_accelerator_parse(), or "" for no accelerator, or NULL
  132. -- to use the stock accelerator
  133. -- Since 2.4
  134. -- --------------------------------------------------------------------------
  135. -- gtk_action_group_remove_action ()
  136. -- void gtk_action_group_remove_action (GtkActionGroup *action_group,
  137. -- GtkAction *action);
  138. -- Removes an action object from the action group.
  139. -- action_group : the action group
  140. -- action : an action
  141. -- Since 2.4
  142. -- --------------------------------------------------------------------------
  143. -- GtkActionEntry
  144. -- typedef struct {
  145. -- const gchar *name;
  146. -- const gchar *stock_id;
  147. -- const gchar *label;
  148. -- const gchar *accelerator;
  149. -- const gchar *tooltip;
  150. -- GCallback callback;
  151. -- } GtkActionEntry;
  152. -- GtkActionEntry structs are used with gtk_action_group_add_actions() to
  153. -- construct actions.
  154. -- const gchar *name; The name of the action.
  155. -- const gchar *stock_id; The stock id for the action, or the name of an
  156. -- icon from the icon theme.
  157. -- const gchar *label; The label for the action. This field should
  158. -- typically be marked for translation, see
  159. -- gtk_action_group_set_translation_domain().
  160. -- const gchar *accelerator; The accelerator for the action, in the format
  161. -- understood by gtk_accelerator_parse().
  162. -- const gchar *tooltip; The tooltip for the action. This field should
  163. -- typically be marked for translation, see
  164. -- gtk_action_group_set_translation_domain().
  165. -- GCallback callback; The function to call when the action is
  166. -- activated.
  167. -- --------------------------------------------------------------------------
  168. -- gtk_action_group_add_actions ()
  169. -- void gtk_action_group_add_actions (GtkActionGroup *action_group,
  170. -- const GtkActionEntry *entries,
  171. -- guint n_entries,
  172. -- gpointer user_data);
  173. -- This is a convenience function to create a number of actions and add them
  174. -- to the action group.
  175. -- The "activate" signals of the actions are connected to the callbacks and
  176. -- their accel paths are set to <Actions>/group-name/action-name.
  177. -- action_group : the action group
  178. -- entries : an array of action descriptions
  179. -- n_entries : the number of entries
  180. -- user_data : data to pass to the action callbacks
  181. -- Since 2.4
  182. -- --------------------------------------------------------------------------
  183. -- gtk_action_group_add_actions_full ()
  184. -- void gtk_action_group_add_actions_full
  185. -- (GtkActionGroup *action_group,
  186. -- const GtkActionEntry *entries,
  187. -- guint n_entries,
  188. -- gpointer user_data,
  189. -- GDestroyNotify destroy);
  190. -- This variant of gtk_action_group_add_actions() adds a GDestroyNotify
  191. -- callback for user_data.
  192. -- action_group : the action group
  193. -- entries : an array of action descriptions
  194. -- n_entries : the number of entries
  195. -- user_data : data to pass to the action callbacks
  196. -- destroy : destroy notification callback for user_data
  197. -- Since 2.4
  198. -- --------------------------------------------------------------------------
  199. -- GtkToggleActionEntry
  200. -- typedef struct {
  201. -- const gchar *name;
  202. -- const gchar *stock_id;
  203. -- const gchar *label;
  204. -- const gchar *accelerator;
  205. -- const gchar *tooltip;
  206. -- GCallback callback;
  207. -- gboolean is_active;
  208. -- } GtkToggleActionEntry;
  209. -- GtkToggleActionEntry structs are used with
  210. -- gtk_action_group_add_toggle_actions() to construct toggle actions.
  211. -- const gchar *name; The name of the action.
  212. -- const gchar *stock_id; The stock id for the action, or the name of an
  213. -- icon from the icon theme.
  214. -- const gchar *label; The label for the action. This field should
  215. -- typically be marked for translation, see
  216. -- gtk_action_group_set_translation_domain().
  217. -- const gchar *accelerator; The accelerator for the action, in the format
  218. -- understood by gtk_accelerator_parse().
  219. -- const gchar *tooltip; The tooltip for the action. This field should
  220. -- typically be marked for translation, see
  221. -- gtk_action_group_set_translation_domain().
  222. -- GCallback callback; The function to call when the action is
  223. -- activated.
  224. -- gboolean is_active; The initial state of the toggle action.
  225. -- --------------------------------------------------------------------------
  226. -- gtk_action_group_add_toggle_actions ()
  227. -- void gtk_action_group_add_toggle_actions
  228. -- (GtkActionGroup *action_group,
  229. -- const GtkToggleActionEntry *entries,
  230. -- guint n_entries,
  231. -- gpointer user_data);
  232. -- This is a convenience function to create a number of toggle actions and
  233. -- add them to the action group.
  234. -- The "activate" signals of the actions are connected to the callbacks and
  235. -- their accel paths are set to <Actions>/group-name/action-name.
  236. -- action_group : the action group
  237. -- entries : an array of toggle action descriptions
  238. -- n_entries : the number of entries
  239. -- user_data : data to pass to the action callbacks
  240. -- Since 2.4
  241. -- --------------------------------------------------------------------------
  242. -- gtk_action_group_add_toggle_actions_full ()
  243. -- void gtk_action_group_add_toggle_actions_full
  244. -- (GtkActionGroup *action_group,
  245. -- const GtkToggleActionEntry *entries,
  246. -- guint n_entries,
  247. -- gpointer user_data,
  248. -- GDestroyNotify destroy);
  249. -- This variant of gtk_action_group_add_toggle_actions() adds a
  250. -- GDestroyNotify callback for user_data.
  251. -- action_group : the action group
  252. -- entries : an array of toggle action descriptions
  253. -- n_entries : the number of entries
  254. -- user_data : data to pass to the action callbacks
  255. -- destroy : destroy notification callback for user_data
  256. -- Since 2.4
  257. -- --------------------------------------------------------------------------
  258. -- GtkRadioActionEntry
  259. -- typedef struct {
  260. -- const gchar *name;
  261. -- const gchar *stock_id;
  262. -- const gchar *label;
  263. -- const gchar *accelerator;
  264. -- const gchar *tooltip;
  265. -- gint value;
  266. -- } GtkRadioActionEntry;
  267. -- GtkRadioActionEntry structs are used with
  268. -- gtk_action_group_add_radio_actions() to construct groups of radio actions.
  269. -- const gchar *name; The name of the action.
  270. -- const gchar *stock_id; The stock id for the action, or the name of an
  271. -- icon from the icon theme.
  272. -- const gchar *label; The label for the action. This field should
  273. -- typically be marked for translation, see
  274. -- gtk_action_group_set_translation_domain().
  275. -- const gchar *accelerator; The accelerator for the action, in the format
  276. -- understood by gtk_accelerator_parse().
  277. -- const gchar *tooltip; The tooltip for the action. This field should
  278. -- typically be marked for translation, see
  279. -- gtk_action_group_set_translation_domain().
  280. -- gint value; The value to set on the radio action. See
  281. -- gtk_radio_action_get_current_value().
  282. -- --------------------------------------------------------------------------
  283. -- gtk_action_group_add_radio_actions ()
  284. -- void gtk_action_group_add_radio_actions
  285. -- (GtkActionGroup *action_group,
  286. -- const GtkRadioActionEntry *entries,
  287. -- guint n_entries,
  288. -- gint value,
  289. -- GCallback on_change,
  290. -- gpointer user_data);
  291. -- This is a convenience routine to create a group of radio actions and add
  292. -- them to the action group.
  293. -- The "changed" signal of the first radio action is connected to the
  294. -- on_change callback and the accel paths of the actions are set to
  295. -- <Actions>/group-name/action-name.
  296. -- action_group : the action group
  297. -- entries : an array of radio action descriptions
  298. -- n_entries : the number of entries
  299. -- value : the value of the action to activate initially, or -1 if no
  300. -- action should be activated
  301. -- on_change : the callback to connect to the changed signal
  302. -- user_data : data to pass to the action callbacks
  303. -- Since 2.4
  304. -- --------------------------------------------------------------------------
  305. -- gtk_action_group_add_radio_actions_full ()
  306. -- void gtk_action_group_add_radio_actions_full
  307. -- (GtkActionGroup *action_group,
  308. -- const GtkRadioActionEntry *entries,
  309. -- guint n_entries,
  310. -- gint value,
  311. -- GCallback on_change,
  312. -- gpointer user_data,
  313. -- GDestroyNotify destroy);
  314. -- This variant of gtk_action_group_add_radio_actions() adds a GDestroyNotify
  315. -- callback for user_data.
  316. -- action_group : the action group
  317. -- entries : an array of radio action descriptions
  318. -- n_entries : the number of entries
  319. -- value : the value of the action to activate initially, or -1 if no
  320. -- action should be activated
  321. -- on_change : the callback to connect to the changed signal
  322. -- user_data : data to pass to the action callbacks
  323. -- destroy : destroy notification callback for user_data
  324. -- Since 2.4
  325. -- --------------------------------------------------------------------------
  326. -- gtk_action_group_set_translate_func ()
  327. -- void gtk_action_group_set_translate_func
  328. -- (GtkActionGroup *action_group,
  329. -- GtkTranslateFunc func,
  330. -- gpointer data,
  331. -- GtkDestroyNotify notify);
  332. -- Sets a function to be used for translating the label and tooltip of
  333. -- GtkActionGroupEntrys added by gtk_action_group_add_actions().
  334. -- If you're using gettext(), it is enough to set the translation domain with
  335. -- gtk_action_group_set_translation_domain().
  336. -- action_group : a GtkActionGroup
  337. -- func : a GtkTranslateFunc
  338. -- data : data to be passed to func and notify
  339. -- notify : a GtkDestroyNotify function to be called when action_group
  340. -- is destroyed and when the translation function is changed
  341. -- again
  342. -- Since 2.4
  343. -- --------------------------------------------------------------------------
  344. -- gtk_action_group_set_translation_domain ()
  345. -- void gtk_action_group_set_translation_domain
  346. -- (GtkActionGroup *action_group,
  347. -- const gchar *domain);
  348. -- Sets the translation domain and uses dgettext() for translating the label
  349. -- and tooltip of GtkActionEntrys added by gtk_action_group_add_actions().
  350. -- If you're not using gettext() for localization, see
  351. -- gtk_action_group_set_translate_func().
  352. -- action_group : a GtkActionGroup
  353. -- domain : the translation domain to use for dgettext() calls
  354. -- Since 2.4
  355. -- --------------------------------------------------------------------------
  356. -- gtk_action_group_translate_string ()
  357. -- const gchar* gtk_action_group_translate_string
  358. -- (GtkActionGroup *action_group,
  359. -- const gchar *string);
  360. -- Translates a string using the specified translate_func(). This is mainly
  361. -- intended for language bindings.
  362. -- action_group : a GtkActionGroup
  363. -- string : a string
  364. -- Returns : the translation of string
  365. -- Since 2.6
  366. feature -- TODO: Properties
  367. -- "name" gchararray : Read / Write / Construct Only
  368. -- "sensitive" gboolean : Read / Write
  369. -- "visible" gboolean : Read / Write
  370. --Property Details
  371. -- The "name" property
  372. -- "name" gchararray : Read / Write / Construct Only
  373. -- A name for the action group.
  374. -- Default value: NULL
  375. -- --------------------------------------------------------------------------
  376. -- The "sensitive" property
  377. -- "sensitive" gboolean : Read / Write
  378. -- Whether the action group is enabled.
  379. -- Default value: TRUE
  380. -- --------------------------------------------------------------------------
  381. -- The "visible" property
  382. -- "visible" gboolean : Read / Write
  383. -- Whether the action group is visible.
  384. -- Default value: TRUE
  385. feature -- TODO: Signals
  386. -- "connect-proxy"
  387. -- void user_function (GtkActionGroup *action_group,
  388. -- GtkAction *action,
  389. -- GtkWidget *proxy,
  390. -- gpointer user_data) :
  391. -- "disconnect-proxy"
  392. -- void user_function (GtkActionGroup *action_group,
  393. -- GtkAction *action,
  394. -- GtkWidget *proxy,
  395. -- gpointer user_data) :
  396. -- "post-activate"
  397. -- void user_function (GtkActionGroup *action_group,
  398. -- GtkAction *action,
  399. -- gpointer user_data) :
  400. -- "pre-activate"
  401. -- void user_function (GtkActionGroup *action_group,
  402. -- GtkAction *action,
  403. -- gpointer user_data) :
  404. --Signal Details
  405. -- The "connect-proxy" signal
  406. -- void user_function (GtkActionGroup *action_group,
  407. -- GtkAction *action,
  408. -- GtkWidget *proxy,
  409. -- gpointer user_data) :
  410. -- The connect_proxy signal is emitted after connecting a proxy to an action
  411. -- in the group. Note that the proxy may have been connected to a different
  412. -- action before.
  413. -- This is intended for simple customizations for which a custom action class
  414. -- would be too clumsy, e.g. showing tooltips for menuitems in the statusbar.
  415. -- GtkUIManager proxies the signal and provides global notification just
  416. -- before any action is connected to a proxy, which is probably more
  417. -- convenient to use.
  418. -- action_group : the group
  419. -- action : the action
  420. -- proxy : the proxy
  421. -- user_data : user data set when the signal handler was connected.
  422. -- Since 2.4
  423. -- --------------------------------------------------------------------------
  424. -- The "disconnect-proxy" signal
  425. -- void user_function (GtkActionGroup *action_group,
  426. -- GtkAction *action,
  427. -- GtkWidget *proxy,
  428. -- gpointer user_data) :
  429. -- The disconnect_proxy signal is emitted after disconnecting a proxy from an
  430. -- action in the group.
  431. -- GtkUIManager proxies the signal and provides global notification just
  432. -- before any action is connected to a proxy, which is probably more
  433. -- convenient to use.
  434. -- action_group : the group
  435. -- action : the action
  436. -- proxy : the proxy
  437. -- user_data : user data set when the signal handler was connected.
  438. -- Since 2.4
  439. -- --------------------------------------------------------------------------
  440. -- The "post-activate" signal
  441. -- void user_function (GtkActionGroup *action_group,
  442. -- GtkAction *action,
  443. -- gpointer user_data) :
  444. -- The post_activate signal is emitted just after the action in the
  445. -- action_group is activated
  446. -- This is intended for GtkUIManager to proxy the signal and provide global
  447. -- notification just after any action is activated.
  448. -- action_group : the group
  449. -- action : the action
  450. -- user_data : user data set when the signal handler was connected.
  451. -- Since 2.4
  452. -- --------------------------------------------------------------------------
  453. -- The "pre-activate" signal
  454. -- void user_function (GtkActionGroup *action_group,
  455. -- GtkAction *action,
  456. -- gpointer user_data) :
  457. -- The pre_activate signal is emitted just before the action in the
  458. -- action_group is activated
  459. -- This is intended for GtkUIManager to proxy the signal and provide global
  460. -- notification just before any action is activated.
  461. -- action_group : the group
  462. -- action : the action
  463. -- user_data : user data set when the signal handler was connected.
  464. -- Since 2.4
  465. feature -- size
  466. struct_size: INTEGER is
  467. external "C inline use <gtk/gtk.h>"
  468. alias "sizeof(GtkActionGroup)"
  469. end
  470. feature {} -- External calls
  471. gtk_action_group_new (a_name: POINTER): POINTER is
  472. -- GtkActionGroup* gtk_action_group_new (const gchar *name);
  473. external "C use <gtk/gtk.h>"
  474. end
  475. gtk_action_group_get_name (an_action_group: POINTER): POINTER is
  476. -- const gchar* gtk_action_group_get_name (GtkActionGroup
  477. -- *action_group);
  478. external "C use <gtk/gtk.h>"
  479. end
  480. gtk_action_group_get_sensitive (an_action_group: POINTER): INTEGER is
  481. -- gboolean gtk_action_group_get_sensitive (GtkActionGroup
  482. -- *action_group);
  483. external "C use <gtk/gtk.h>"
  484. end
  485. gtk_action_group_set_sensitive (an_action_group: POINTER; a_sensitive: INTEGER) is
  486. -- void gtk_action_group_set_sensitive (GtkActionGroup
  487. -- *action_group, gboolean sensitive);
  488. external "C use <gtk/gtk.h>"
  489. end
  490. gtk_action_group_get_visible (an_action_group: POINTER): INTEGER is
  491. -- gboolean gtk_action_group_get_visible (GtkActionGroup
  492. -- *action_group);
  493. external "C use <gtk/gtk.h>"
  494. end
  495. gtk_action_group_set_visible (an_action_group: POINTER; a_setting: INTEGER) is
  496. -- void gtk_action_group_set_visible (GtkActionGroup
  497. -- *action_group, gboolean visible);
  498. external "C use <gtk/gtk.h>"
  499. end
  500. gtk_action_group_get_action (an_action_group, a_action_name: POINTER): POINTER is
  501. -- GtkAction* gtk_action_group_get_action (GtkActionGroup *action_group, const gchar *action_name);
  502. external "C use <gtk/gtk.h>"
  503. end
  504. gtk_action_group_list_actions (an_action_group: POINTER): POINTER is
  505. -- GList* gtk_action_group_list_actions (GtkActionGroup
  506. -- *action_group);
  507. external "C use <gtk/gtk.h>"
  508. end
  509. gtk_action_group_add_action (an_action_group, an_action: POINTER) is
  510. -- void gtk_action_group_add_action (GtkActionGroup
  511. -- *action_group, GtkAction *action);
  512. external "C use <gtk/gtk.h>"
  513. end
  514. gtk_action_group_add_action_with_accel (an_action_group, an_action, an_accelerator: POINTER) is
  515. -- void gtk_action_group_add_action_with_accel
  516. -- (GtkActionGroup *action_group, GtkAction *action, const
  517. -- gchar *accelerator);
  518. external "C use <gtk/gtk.h>"
  519. end
  520. gtk_action_group_remove_action (an_action_group, an_action: POINTER) is
  521. -- void gtk_action_group_remove_action (GtkActionGroup
  522. -- *action_group, GtkAction *action);
  523. external "C use <gtk/gtk.h>"
  524. end
  525. -- GtkActionEntry;
  526. gtk_action_group_add_actions (an_action_group, some_entries: POINTER; guint_n_entries: INTEGER; user_data: POINTER) is
  527. -- void gtk_action_group_add_actions (GtkActionGroup
  528. -- *action_group, const GtkActionEntry *entries, guint
  529. -- n_entries, gpointer user_data);
  530. -- TODO: guint_n_entries should be NATURAL since it is a guint
  531. external "C use <gtk/gtk.h>"
  532. end
  533. gtk_action_group_add_actions_full (an_action_group, some_entries: POINTE; guint_n_entries: INTEGER; user_data, gdestroynotify: POINTER) is
  534. -- void gtk_action_group_add_actions_full (GtkActionGroup
  535. -- *action_group, const GtkActionEntry *entries, guint
  536. -- n_entries, gpointer user_data, GDestroyNotify destroy);
  537. -- TODO: guint_n_entries should be NATURAL since it is a guint
  538. external "C use <gtk/gtk.h>"
  539. end
  540. -- GtkToggleActionEntry;
  541. gtk_action_group_add_toggle_actions (an_action_group, some_entrires: POINTER; guint_n_entries: INTEGER; user_data: POINTER) is
  542. -- void gtk_action_group_add_toggle_actions (GtkActionGroup
  543. -- *action_group, const GtkToggleActionEntry *entries, guint
  544. -- n_entries, gpointer user_data);
  545. -- TODO: guint_n_entries should be NATURAL since it is a guint
  546. external "C use <gtk/gtk.h>"
  547. end
  548. gtk_action_group_add_toggle_actions_full (an_action_group, some_entries: POINTER; guint_n_entries: INTEGER; user_data, gdestroynotify: POINTER) is
  549. -- void gtk_action_group_add_toggle_actions_full
  550. -- (GtkActionGroup *action_group, const GtkToggleActionEntry
  551. -- *entries, guint n_entries, gpointer user_data,
  552. -- GDestroyNotify destroy);
  553. -- TODO: guint_n_entries should be NATURAL since it is a guint
  554. external "C use <gtk/gtk.h>"
  555. end
  556. -- GtkRadioActionEntry;
  557. gtk_action_group_add_radio_actions (an_action_group, some_entries: POINTER; guint_n_entries, a_value: INTEGER; on_change_gcallback, user_data: POINTER) is
  558. -- void gtk_action_group_add_radio_actions (GtkActionGroup
  559. -- *action_group, const GtkRadioActionEntry *entries, guint
  560. -- n_entries, gint value, GCallback on_change, gpointer
  561. -- user_data);
  562. -- TODO: guint_n_entries should be NATURAL since it is a guint
  563. external "C use <gtk/gtk.h>"
  564. end
  565. gtk_action_group_add_radio_actions_full (an_action_group, some_entries: POINTER; guint_n_entries, a_value: INTEGER; on_change_gcallback, user_data, gdestroynotify: POINTER) is
  566. -- void gtk_action_group_add_radio_actions_full
  567. -- (GtkActionGroup *action_group, const GtkRadioActionEntry
  568. -- *entries, guint n_entries, gint value, GCallback
  569. -- on_change, gpointer user_data, GDestroyNotify destroy);
  570. -- TODO: guint_n_entries should be NATURAL since it is a guint
  571. external "C use <gtk/gtk.h>"
  572. end
  573. gtk_action_group_set_translate_func (an_action_group, a_gtktranslatefunc, some_data, a_gtkdestroynotify: POINTER) is
  574. -- void gtk_action_group_set_translate_func (GtkActionGroup
  575. -- *action_group, GtkTranslateFunc func, gpointer data,
  576. -- GtkDestroyNotify notify);
  577. external "C use <gtk/gtk.h>"
  578. end
  579. gtk_action_group_set_translation_domain (an_action_group, a_domain: POINTER) is
  580. -- void gtk_action_group_set_translation_domain
  581. -- (GtkActionGroup *action_group, const gchar *domain);
  582. external "C use <gtk/gtk.h>"
  583. end
  584. gtk_action_group_translate_string (an_action_group, a_string: POINTER): POINTER is
  585. -- const gchar* gtk_action_group_translate_string
  586. -- (GtkActionGroup *action_group, const gchar *string);
  587. external "C use <gtk/gtk.h>"
  588. end
  589. end -- class GTK_ACTION_GROUP