[Xfce4-commits] <pyxfce:master> add new defs.

Danny Milosavljevic noreply at xfce.org
Sun Jan 2 21:14:01 CET 2011


Updating branch refs/heads/master
         to b8dcfd800d67de1871b8e568df9081e983c8eac4 (commit)
       from f003847dcad1c2034083bb53386d4c46eae0e1e7 (commit)

commit b8dcfd800d67de1871b8e568df9081e983c8eac4
Author: Danny Milosavljevic <dannym at xfce.org>
Date:   Sun Jan 2 20:34:54 2011 +0100

    add new defs.

 panel/convenience.defs                         |   23 +++
 panel/hvbox.defs                               |   46 +++++
 panel/image.defs                               |   81 +++++++++
 panel/libxfce4panel.defs                       |    8 +
 panel/libxfce4panel_config.defs                |   18 ++
 panel/libxfce4panel_enum_types.defs            |   13 ++
 panel/{enums.defs => libxfce4panel_enums.defs} |    2 +-
 panel/macros.defs                              |    8 +
 panel/macros_46.defs                           |    8 +
 panel/plugin.defs                              |  224 ++++++++++++++++++++++++
 panel/plugin_provider.defs                     |  164 +++++++++++++++++
 ui/dialogs.defs                                |   97 ++++++++++
 ui/gdk_extensions.defs                         |   16 ++
 ui/gtk_extensions.defs                         |   44 +++++
 ui/libxfce4ui.defs                             |    8 +
 ui/libxfce4ui_config.defs                      |   18 ++
 ui/libxfce4ui_enum_types.defs                  |   18 ++
 ui/sm_client.defs                              |  191 ++++++++++++++++++++
 ui/spawn.defs                                  |   53 ++++++
 ui/titled_dialog.defs                          |   53 ++++++
 20 files changed, 1092 insertions(+), 1 deletions(-)

diff --git a/panel/convenience.defs b/panel/convenience.defs
new file mode 100644
index 0000000..2f819e7
--- /dev/null
+++ b/panel/convenience.defs
@@ -0,0 +1,23 @@
+;; -*- scheme -*-
+; object definitions ...
+;; Enumerations and flags ...
+
+
+;; From xfce-panel-convenience.h
+
+(define-function xfce_panel_create_button
+  (c-name "xfce_panel_create_button")
+  (return-type "GtkWidget*")
+)
+
+(define-function xfce_panel_create_toggle_button
+  (c-name "xfce_panel_create_toggle_button")
+  (return-type "GtkWidget*")
+)
+
+(define-function xfce_panel_get_channel_name
+  (c-name "xfce_panel_get_channel_name")
+  (return-type "const-gchar*")
+)
+
+
diff --git a/panel/hvbox.defs b/panel/hvbox.defs
new file mode 100644
index 0000000..1e3e6e6
--- /dev/null
+++ b/panel/hvbox.defs
@@ -0,0 +1,46 @@
+;; -*- scheme -*-
+; object definitions ...
+(define-object HVBox
+  (in-module "Xfce")
+  (parent "GtkBox")
+  (c-name "XfceHVBox")
+  (gtype-id "XFCE_TYPE_HV_BOX")
+)
+
+;; Enumerations and flags ...
+
+
+;; From xfce-hvbox.h
+
+(define-function xfce_hvbox_get_type
+  (c-name "xfce_hvbox_get_type")
+  (return-type "GType")
+)
+
+(define-function xfce_hvbox_new
+  (c-name "xfce_hvbox_new")
+  (is-constructor-of "XfceHvbox")
+  (return-type "GtkWidget*")
+  (parameters
+    '("GtkOrientation" "orientation")
+    '("gboolean" "homogeneous")
+    '("gint" "spacing")
+  )
+)
+
+(define-method set_orientation
+  (of-object "XfceHVBox")
+  (c-name "xfce_hvbox_set_orientation")
+  (return-type "none")
+  (parameters
+    '("GtkOrientation" "orientation")
+  )
+)
+
+(define-method get_orientation
+  (of-object "XfceHVBox")
+  (c-name "xfce_hvbox_get_orientation")
+  (return-type "GtkOrientation")
+)
+
+
diff --git a/panel/image.defs b/panel/image.defs
new file mode 100644
index 0000000..47ce250
--- /dev/null
+++ b/panel/image.defs
@@ -0,0 +1,81 @@
+;; -*- scheme -*-
+; object definitions ...
+(define-object PanelImage
+  (in-module "Xfce")
+  (parent "GtkWidget")
+  (c-name "XfcePanelImage")
+  (gtype-id "XFCE_TYPE_PANEL_IMAGE")
+)
+
+;; Enumerations and flags ...
+
+
+;; From xfce-panel-image.h
+
+(define-function xfce_panel_image_get_type
+  (c-name "xfce_panel_image_get_type")
+  (return-type "GType")
+)
+
+(define-function xfce_panel_image_new
+  (c-name "xfce_panel_image_new")
+  (is-constructor-of "XfcePanelImage")
+  (return-type "GtkWidget*")
+)
+
+(define-function xfce_panel_image_new_from_pixbuf
+  (c-name "xfce_panel_image_new_from_pixbuf")
+  (return-type "GtkWidget*")
+  (parameters
+    '("GdkPixbuf*" "pixbuf")
+  )
+)
+
+(define-function xfce_panel_image_new_from_source
+  (c-name "xfce_panel_image_new_from_source")
+  (return-type "GtkWidget*")
+  (parameters
+    '("const-gchar*" "source")
+  )
+)
+
+(define-method set_from_pixbuf
+  (of-object "XfcePanelImage")
+  (c-name "xfce_panel_image_set_from_pixbuf")
+  (return-type "none")
+  (parameters
+    '("GdkPixbuf*" "pixbuf")
+  )
+)
+
+(define-method set_from_source
+  (of-object "XfcePanelImage")
+  (c-name "xfce_panel_image_set_from_source")
+  (return-type "none")
+  (parameters
+    '("const-gchar*" "source")
+  )
+)
+
+(define-method set_size
+  (of-object "XfcePanelImage")
+  (c-name "xfce_panel_image_set_size")
+  (return-type "none")
+  (parameters
+    '("gint" "size")
+  )
+)
+
+(define-method get_size
+  (of-object "XfcePanelImage")
+  (c-name "xfce_panel_image_get_size")
+  (return-type "gint")
+)
+
+(define-method clear
+  (of-object "XfcePanelImage")
+  (c-name "xfce_panel_image_clear")
+  (return-type "none")
+)
+
+
diff --git a/panel/libxfce4panel.defs b/panel/libxfce4panel.defs
new file mode 100644
index 0000000..1f79830
--- /dev/null
+++ b/panel/libxfce4panel.defs
@@ -0,0 +1,8 @@
+;; -*- scheme -*-
+; object definitions ...
+;; Enumerations and flags ...
+
+
+;; From libxfce4panel.h
+
+
diff --git a/panel/libxfce4panel_config.defs b/panel/libxfce4panel_config.defs
new file mode 100644
index 0000000..2852644
--- /dev/null
+++ b/panel/libxfce4panel_config.defs
@@ -0,0 +1,18 @@
+;; -*- scheme -*-
+; object definitions ...
+;; Enumerations and flags ...
+
+
+;; From libxfce4panel-config.h
+
+(define-function libxfce4panel_check_version
+  (c-name "libxfce4panel_check_version")
+  (return-type "const-gchar*")
+  (parameters
+    '("guint" "required_major")
+    '("guint" "required_minor")
+    '("guint" "required_micro")
+  )
+)
+
+
diff --git a/panel/libxfce4panel_enum_types.defs b/panel/libxfce4panel_enum_types.defs
new file mode 100644
index 0000000..7c5f5ab
--- /dev/null
+++ b/panel/libxfce4panel_enum_types.defs
@@ -0,0 +1,13 @@
+;; -*- scheme -*-
+; object definitions ...
+;; Enumerations and flags ...
+
+
+;; From libxfce4panel-enum-types.h
+
+(define-function xfce_screen_position_get_type
+  (c-name "xfce_screen_position_get_type")
+  (return-type "GType")
+)
+
+
diff --git a/panel/enums.defs b/panel/libxfce4panel_enums.defs
similarity index 96%
copy from panel/enums.defs
copy to panel/libxfce4panel_enums.defs
index 7e6834a..017fc3c 100644
--- a/panel/enums.defs
+++ b/panel/libxfce4panel_enums.defs
@@ -26,6 +26,6 @@
 )
 
 
-;; From xfce-panel-enums.h
+;; From libxfce4panel-enums.h
 
 
diff --git a/panel/macros.defs b/panel/macros.defs
new file mode 100644
index 0000000..2736500
--- /dev/null
+++ b/panel/macros.defs
@@ -0,0 +1,8 @@
+;; -*- scheme -*-
+; object definitions ...
+;; Enumerations and flags ...
+
+
+;; From xfce-panel-macros.h
+
+
diff --git a/panel/macros_46.defs b/panel/macros_46.defs
new file mode 100644
index 0000000..3293bdc
--- /dev/null
+++ b/panel/macros_46.defs
@@ -0,0 +1,8 @@
+;; -*- scheme -*-
+; object definitions ...
+;; Enumerations and flags ...
+
+
+;; From xfce-panel-macros-46.h
+
+
diff --git a/panel/plugin.defs b/panel/plugin.defs
new file mode 100644
index 0000000..86c8764
--- /dev/null
+++ b/panel/plugin.defs
@@ -0,0 +1,224 @@
+;; -*- scheme -*-
+; object definitions ...
+(define-object PanelPlugin
+  (in-module "Xfce")
+  (parent "GtkEventBox")
+  (c-name "XfcePanelPlugin")
+  (gtype-id "XFCE_TYPE_PANEL_PLUGIN")
+)
+
+;; Enumerations and flags ...
+
+
+;; From xfce-panel-plugin.h
+
+(define-function xfce_panel_plugin_get_type
+  (c-name "xfce_panel_plugin_get_type")
+  (return-type "GType")
+)
+
+(define-method get_name
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_get_name")
+  (return-type "const-gchar*")
+)
+
+(define-method get_display_name
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_get_display_name")
+  (return-type "const-gchar*")
+)
+
+(define-method get_comment
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_get_comment")
+  (return-type "const-gchar*")
+)
+
+(define-method get_unique_id
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_get_unique_id")
+  (return-type "gint")
+)
+
+(define-method get_property_base
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_get_property_base")
+  (return-type "const-gchar*")
+)
+
+(define-method get_arguments
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_get_arguments")
+  (return-type "const-gchar**")
+)
+
+(define-method get_size
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_get_size")
+  (return-type "gint")
+)
+
+(define-method get_expand
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_get_expand")
+  (return-type "gboolean")
+)
+
+(define-method set_expand
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_set_expand")
+  (return-type "none")
+  (parameters
+    '("gboolean" "expand")
+  )
+)
+
+(define-method get_orientation
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_get_orientation")
+  (return-type "GtkOrientation")
+)
+
+(define-method get_screen_position
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_get_screen_position")
+  (return-type "XfceScreenPosition")
+)
+
+(define-method take_window
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_take_window")
+  (return-type "none")
+  (parameters
+    '("GtkWindow*" "window")
+  )
+)
+
+(define-method add_action_widget
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_add_action_widget")
+  (return-type "none")
+  (parameters
+    '("GtkWidget*" "widget")
+  )
+)
+
+(define-method menu_insert_item
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_menu_insert_item")
+  (return-type "none")
+  (parameters
+    '("GtkMenuItem*" "item")
+  )
+)
+
+(define-method menu_show_configure
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_menu_show_configure")
+  (return-type "none")
+)
+
+(define-method menu_show_about
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_menu_show_about")
+  (return-type "none")
+)
+
+(define-method get_locked
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_get_locked")
+  (return-type "gboolean")
+)
+
+(define-method remove
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_remove")
+  (return-type "none")
+)
+
+(define-method block_menu
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_block_menu")
+  (return-type "none")
+)
+
+(define-method unblock_menu
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_unblock_menu")
+  (return-type "none")
+)
+
+(define-method register_menu
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_register_menu")
+  (return-type "none")
+  (parameters
+    '("GtkMenu*" "menu")
+  )
+)
+
+(define-method arrow_type
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_arrow_type")
+  (return-type "GtkArrowType")
+)
+
+(define-method position_widget
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_position_widget")
+  (return-type "none")
+  (parameters
+    '("GtkWidget*" "menu_widget")
+    '("GtkWidget*" "attach_widget")
+    '("gint*" "x")
+    '("gint*" "y")
+  )
+)
+
+(define-function xfce_panel_plugin_position_menu
+  (c-name "xfce_panel_plugin_position_menu")
+  (return-type "none")
+  (parameters
+    '("GtkMenu*" "menu")
+    '("gint*" "x")
+    '("gint*" "y")
+    '("gboolean*" "push_in")
+    '("gpointer" "panel_plugin")
+  )
+)
+
+(define-method focus_widget
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_focus_widget")
+  (return-type "none")
+  (parameters
+    '("GtkWidget*" "widget")
+  )
+)
+
+(define-method block_autohide
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_block_autohide")
+  (return-type "none")
+  (parameters
+    '("gboolean" "blocked")
+  )
+)
+
+(define-method lookup_rc_file
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_lookup_rc_file")
+  (return-type "gchar*")
+)
+
+(define-method save_location
+  (of-object "XfcePanelPlugin")
+  (c-name "xfce_panel_plugin_save_location")
+  (return-type "gchar*")
+  (parameters
+    '("gboolean" "create")
+  )
+)
+
+
diff --git a/panel/plugin_provider.defs b/panel/plugin_provider.defs
new file mode 100644
index 0000000..1df4a04
--- /dev/null
+++ b/panel/plugin_provider.defs
@@ -0,0 +1,164 @@
+;; -*- scheme -*-
+; object definitions ...
+;; Enumerations and flags ...
+
+(define-enum PanelPluginProviderSignal
+  (in-module "Xfce")
+  (c-name "XfcePanelPluginProviderSignal")
+  (gtype-id "XFCE_TYPE_PANEL_PLUGIN_PROVIDER_SIGNAL")
+  (values
+    '("move-plugin" "PROVIDER_SIGNAL_MOVE_PLUGIN")
+    '("expand-plugin" "PROVIDER_SIGNAL_EXPAND_PLUGIN")
+    '("collapse-plugin" "PROVIDER_SIGNAL_COLLAPSE_PLUGIN")
+    '("wrap-plugin" "PROVIDER_SIGNAL_WRAP_PLUGIN")
+    '("unwrap-plugin" "PROVIDER_SIGNAL_UNWRAP_PLUGIN")
+    '("lock-panel" "PROVIDER_SIGNAL_LOCK_PANEL")
+    '("unlock-panel" "PROVIDER_SIGNAL_UNLOCK_PANEL")
+    '("remove-plugin" "PROVIDER_SIGNAL_REMOVE_PLUGIN")
+    '("add-new-items" "PROVIDER_SIGNAL_ADD_NEW_ITEMS")
+    '("panel-preferences" "PROVIDER_SIGNAL_PANEL_PREFERENCES")
+    '("panel-logout" "PROVIDER_SIGNAL_PANEL_LOGOUT")
+    '("panel-about" "PROVIDER_SIGNAL_PANEL_ABOUT")
+    '("panel-help" "PROVIDER_SIGNAL_PANEL_HELP")
+    '("show-configure" "PROVIDER_SIGNAL_SHOW_CONFIGURE")
+    '("show-about" "PROVIDER_SIGNAL_SHOW_ABOUT")
+    '("focus-plugin" "PROVIDER_SIGNAL_FOCUS_PLUGIN")
+  )
+)
+
+(define-enum PanelPluginProviderPropType
+  (in-module "Xfce")
+  (c-name "XfcePanelPluginProviderPropType")
+  (gtype-id "XFCE_TYPE_PANEL_PLUGIN_PROVIDER_PROP_TYPE")
+  (values
+    '("set-size" "PROVIDER_PROP_TYPE_SET_SIZE")
+    '("set-orientation" "PROVIDER_PROP_TYPE_SET_ORIENTATION")
+    '("set-screen-position" "PROVIDER_PROP_TYPE_SET_SCREEN_POSITION")
+    '("set-background-alpha" "PROVIDER_PROP_TYPE_SET_BACKGROUND_ALPHA")
+    '("set-locked" "PROVIDER_PROP_TYPE_SET_LOCKED")
+    '("set-sensitive" "PROVIDER_PROP_TYPE_SET_SENSITIVE")
+    '("set-background-color" "PROVIDER_PROP_TYPE_SET_BACKGROUND_COLOR")
+    '("set-background-image" "PROVIDER_PROP_TYPE_SET_BACKGROUND_IMAGE")
+    '("action-removed" "PROVIDER_PROP_TYPE_ACTION_REMOVED")
+    '("action-save" "PROVIDER_PROP_TYPE_ACTION_SAVE")
+    '("action-quit" "PROVIDER_PROP_TYPE_ACTION_QUIT")
+    '("action-quit-for-restart" "PROVIDER_PROP_TYPE_ACTION_QUIT_FOR_RESTART")
+    '("action-background-unset" "PROVIDER_PROP_TYPE_ACTION_BACKGROUND_UNSET")
+    '("action-show-configure" "PROVIDER_PROP_TYPE_ACTION_SHOW_CONFIGURE")
+    '("action-show-about" "PROVIDER_PROP_TYPE_ACTION_SHOW_ABOUT")
+  )
+)
+
+
+;; From xfce-panel-plugin-provider.h
+
+(define-function xfce_panel_plugin_provider_get_type
+  (c-name "xfce_panel_plugin_provider_get_type")
+  (return-type "GType")
+)
+
+(define-method get_name
+  (of-object "XfcePanelPluginProvider")
+  (c-name "xfce_panel_plugin_provider_get_name")
+  (return-type "const-gchar*")
+)
+
+(define-method get_unique_id
+  (of-object "XfcePanelPluginProvider")
+  (c-name "xfce_panel_plugin_provider_get_unique_id")
+  (return-type "gint")
+)
+
+(define-method set_size
+  (of-object "XfcePanelPluginProvider")
+  (c-name "xfce_panel_plugin_provider_set_size")
+  (return-type "none")
+  (parameters
+    '("gint" "size")
+  )
+)
+
+(define-method set_orientation
+  (of-object "XfcePanelPluginProvider")
+  (c-name "xfce_panel_plugin_provider_set_orientation")
+  (return-type "none")
+  (parameters
+    '("GtkOrientation" "orientation")
+  )
+)
+
+(define-method set_screen_position
+  (of-object "XfcePanelPluginProvider")
+  (c-name "xfce_panel_plugin_provider_set_screen_position")
+  (return-type "none")
+  (parameters
+    '("XfceScreenPosition" "screen_position")
+  )
+)
+
+(define-method save
+  (of-object "XfcePanelPluginProvider")
+  (c-name "xfce_panel_plugin_provider_save")
+  (return-type "none")
+)
+
+(define-method emit_signal
+  (of-object "XfcePanelPluginProvider")
+  (c-name "xfce_panel_plugin_provider_emit_signal")
+  (return-type "none")
+  (parameters
+    '("XfcePanelPluginProviderSignal" "provider_signal")
+  )
+)
+
+(define-method get_show_configure
+  (of-object "XfcePanelPluginProvider")
+  (c-name "xfce_panel_plugin_provider_get_show_configure")
+  (return-type "gboolean")
+)
+
+(define-method show_configure
+  (of-object "XfcePanelPluginProvider")
+  (c-name "xfce_panel_plugin_provider_show_configure")
+  (return-type "none")
+)
+
+(define-method get_show_about
+  (of-object "XfcePanelPluginProvider")
+  (c-name "xfce_panel_plugin_provider_get_show_about")
+  (return-type "gboolean")
+)
+
+(define-method show_about
+  (of-object "XfcePanelPluginProvider")
+  (c-name "xfce_panel_plugin_provider_show_about")
+  (return-type "none")
+)
+
+(define-method removed
+  (of-object "XfcePanelPluginProvider")
+  (c-name "xfce_panel_plugin_provider_removed")
+  (return-type "none")
+)
+
+(define-method remote_event
+  (of-object "XfcePanelPluginProvider")
+  (c-name "xfce_panel_plugin_provider_remote_event")
+  (return-type "gboolean")
+  (parameters
+    '("const-gchar*" "name")
+    '("const-GValue*" "value")
+    '("guint*" "handle")
+  )
+)
+
+(define-method set_locked
+  (of-object "XfcePanelPluginProvider")
+  (c-name "xfce_panel_plugin_provider_set_locked")
+  (return-type "none")
+  (parameters
+    '("gboolean" "locked")
+  )
+)
+
+
diff --git a/ui/dialogs.defs b/ui/dialogs.defs
new file mode 100644
index 0000000..c25afef
--- /dev/null
+++ b/ui/dialogs.defs
@@ -0,0 +1,97 @@
+;; -*- scheme -*-
+; object definitions ...
+;; Enumerations and flags ...
+
+
+;; From xfce-dialogs.h
+
+(define-function dialog_show_info
+  (c-name "xfce_dialog_show_info")
+  (return-type "none")
+  (parameters
+    '("GtkWindow*" "parent")
+    '("const-gchar*" "secondary_text")
+    '("const-gchar*" "primary_format")
+  )
+  (varargs #t)
+)
+
+(define-function dialog_show_warning
+  (c-name "xfce_dialog_show_warning")
+  (return-type "none")
+  (parameters
+    '("GtkWindow*" "parent")
+    '("const-gchar*" "secondary_text")
+    '("const-gchar*" "primary_format")
+  )
+  (varargs #t)
+)
+
+(define-function dialog_show_error
+  (c-name "xfce_dialog_show_error")
+  (return-type "none")
+  (parameters
+    '("GtkWindow*" "parent")
+    '("const-GError*" "error")
+    '("const-gchar*" "primary_format")
+  )
+  (varargs #t)
+)
+
+(define-function dialog_confirm
+  (c-name "xfce_dialog_confirm")
+  (return-type "gboolean")
+  (parameters
+    '("GtkWindow*" "parent")
+    '("const-gchar*" "stock_id")
+    '("const-gchar*" "confirm_label")
+    '("const-gchar*" "secondary_text")
+    '("const-gchar*" "primary_format")
+  )
+  (varargs #t)
+)
+
+(define-function message_dialog_new_valist
+  (c-name "xfce_message_dialog_new_valist")
+  (return-type "GtkWidget*")
+  (parameters
+    '("GtkWindow*" "parent")
+    '("const-gchar*" "title")
+    '("const-gchar*" "icon_stock_id")
+    '("const-gchar*" "primary_text")
+    '("const-gchar*" "secondary_text")
+    '("const-gchar*" "first_button_text")
+    '("va_list" "args")
+  )
+)
+
+(define-function message_dialog_new
+  (c-name "xfce_message_dialog_new")
+  (is-constructor-of "XfceMessageDialog")
+  (return-type "GtkWidget*")
+  (parameters
+    '("GtkWindow*" "parent")
+    '("const-gchar*" "title")
+    '("const-gchar*" "stock_id")
+    '("const-gchar*" "primary_text")
+    '("const-gchar*" "secondary_text")
+    '("const-gchar*" "first_button_text")
+  )
+  (varargs #t)
+)
+
+(define-function message_dialog
+  (c-name "xfce_message_dialog")
+  (return-type "gint")
+  (parameters
+    '("GtkWindow*" "parent")
+    '("const-gchar*" "title")
+    '("const-gchar*" "stock_id")
+    '("const-gchar*" "primary_text")
+    '("const-gchar*" "secondary_text")
+    '("const-gchar*" "first_button_text")
+  )
+  (varargs #t)
+)
+
+
diff --git a/ui/gdk_extensions.defs b/ui/gdk_extensions.defs
new file mode 100644
index 0000000..8df9dcc
--- /dev/null
+++ b/ui/gdk_extensions.defs
@@ -0,0 +1,16 @@
+;; -*- scheme -*-
+; object definitions ...
+;; Enumerations and flags ...
+
+
+;; From xfce-gdk-extensions.h
+
+(define-function gdk_screen_get_active
+  (c-name "xfce_gdk_screen_get_active")
+  (return-type "GdkScreen*")
+  (parameters
+    '("gint*" "monitor_return")
+  )
+)
+
+
diff --git a/ui/gtk_extensions.defs b/ui/gtk_extensions.defs
new file mode 100644
index 0000000..cb44e55
--- /dev/null
+++ b/ui/gtk_extensions.defs
@@ -0,0 +1,44 @@
+;; -*- scheme -*-
+; object definitions ...
+;; Enumerations and flags ...
+
+
+;; From xfce-gtk-extensions.h
+
+(define-function gtk_button_new_mixed
+  (c-name "xfce_gtk_button_new_mixed")
+  (return-type "GtkWidget*")
+  (parameters
+    '("const-gchar*" "stock_id")
+    '("const-gchar*" "label")
+  )
+)
+
+(define-function gtk_frame_box_new
+  (c-name "xfce_gtk_frame_box_new")
+  (is-constructor-of "XfceGtkFrameBox")
+  (return-type "GtkWidget*")
+  (parameters
+    '("const-gchar*" "label")
+    '("GtkWidget**" "container_return")
+  )
+)
+
+(define-function gtk_frame_box_new_with_content
+  (c-name "xfce_gtk_frame_box_new_with_content")
+  (return-type "GtkWidget*")
+  (parameters
+    '("const-gchar*" "label")
+    '("GtkWidget*" "content")
+  )
+)
+
+(define-function gtk_window_center_on_active_screen
+  (c-name "xfce_gtk_window_center_on_active_screen")
+  (return-type "none")
+  (parameters
+    '("GtkWindow*" "window")
+  )
+)
+
+
diff --git a/ui/libxfce4ui.defs b/ui/libxfce4ui.defs
new file mode 100644
index 0000000..c6e20d4
--- /dev/null
+++ b/ui/libxfce4ui.defs
@@ -0,0 +1,8 @@
+;; -*- scheme -*-
+; object definitions ...
+;; Enumerations and flags ...
+
+
+;; From libxfce4ui.h
+
+
diff --git a/ui/libxfce4ui_config.defs b/ui/libxfce4ui_config.defs
new file mode 100644
index 0000000..05920f5
--- /dev/null
+++ b/ui/libxfce4ui_config.defs
@@ -0,0 +1,18 @@
+;; -*- scheme -*-
+; object definitions ...
+;; Enumerations and flags ...
+
+
+;; From libxfce4ui-config.h
+
+(define-function libxfce4ui_check_version
+  (c-name "libxfce4ui_check_version")
+  (return-type "const-gchar*")
+  (parameters
+    '("guint" "required_major")
+    '("guint" "required_minor")
+    '("guint" "required_micro")
+  )
+)
+
+
diff --git a/ui/libxfce4ui_enum_types.defs b/ui/libxfce4ui_enum_types.defs
new file mode 100644
index 0000000..fb1a90b
--- /dev/null
+++ b/ui/libxfce4ui_enum_types.defs
@@ -0,0 +1,18 @@
+;; -*- scheme -*-
+; object definitions ...
+;; Enumerations and flags ...
+
+
+;; From libxfce4ui-enum-types.h
+
+(define-function sm_client_restart_style_get_type
+  (c-name "xfce_sm_client_restart_style_get_type")
+  (return-type "GType")
+)
+
+(define-function sm_client_shutdown_hint_get_type
+  (c-name "xfce_sm_client_shutdown_hint_get_type")
+  (return-type "GType")
+)
+
+
diff --git a/ui/sm_client.defs b/ui/sm_client.defs
new file mode 100644
index 0000000..29a744c
--- /dev/null
+++ b/ui/sm_client.defs
@@ -0,0 +1,191 @@
+;; -*- scheme -*-
+; object definitions ...
+;; Enumerations and flags ...
+
+(define-enum SMClientRestartStyle
+  (in-module "Xfce")
+  (c-name "XfceSMClientRestartStyle")
+  (gtype-id "XFCE_TYPE_SM_CLIENT_RESTART_STYLE")
+  (values
+    '("normal" "XFCE_SM_CLIENT_RESTART_NORMAL")
+    '("immediately" "XFCE_SM_CLIENT_RESTART_IMMEDIATELY")
+  )
+)
+
+
+(define-enum SMClientShutdownHint
+  (in-module "Xfce")
+  (c-name "XfceSMClientShutdownHint")
+  (gtype-id "XFCE_TYPE_SM_CLIENT_SHUTDOWN_HINT")
+  (values
+    '("ask" "XFCE_SM_CLIENT_SHUTDOWN_HINT_ASK")
+    '("logout" "XFCE_SM_CLIENT_SHUTDOWN_HINT_LOGOUT")
+    '("halt" "XFCE_SM_CLIENT_SHUTDOWN_HINT_HALT")
+    '("reboot" "XFCE_SM_CLIENT_SHUTDOWN_HINT_REBOOT")
+  )
+)
+
+
+;; From xfce-sm-client.h
+
+(define-function sm_client_get_type
+  (c-name "xfce_sm_client_get_type")
+  (return-type "GType")
+)
+
+(define-function sm_client_get_option_group
+  (c-name "xfce_sm_client_get_option_group")
+  (return-type "GOptionGroup*")
+  (parameters
+    '("gint" "argc")
+    '("gchar**" "argv")
+  )
+)
+
+(define-function sm_client_get
+  (c-name "xfce_sm_client_get")
+  (return-type "XfceSMClient*")
+)
+
+(define-function sm_client_get_with_argv
+  (c-name "xfce_sm_client_get_with_argv")
+  (return-type "XfceSMClient*")
+  (parameters
+    '("gint" "argc")
+    '("gchar**" "argv")
+    '("XfceSMClientRestartStyle" "restart_style")
+    '("guchar" "priority")
+  )
+)
+
+(define-function sm_client_get_full
+  (c-name "xfce_sm_client_get_full")
+  (return-type "XfceSMClient*")
+  (parameters
+    '("XfceSMClientRestartStyle" "restart_style")
+    '("guchar" "priority")
+    '("const-gchar*" "resumed_client_id")
+    '("const-gchar*" "current_directory")
+    '("const-gchar**" "restart_command")
+    '("const-gchar*" "desktop_file")
+  )
+)
+
+(define-method connect
+  (of-object "XfceSMClient")
+  (c-name "xfce_sm_client_connect")
+  (return-type "gboolean")
+  (parameters
+    '("GError**" "error")
+  )
+)
+
+(define-method disconnect
+  (of-object "XfceSMClient")
+  (c-name "xfce_sm_client_disconnect")
+  (return-type "none")
+)
+
+(define-method request_shutdown
+  (of-object "XfceSMClient")
+  (c-name "xfce_sm_client_request_shutdown")
+  (return-type "none")
+  (parameters
+    '("XfceSMClientShutdownHint" "shutdown_hint")
+  )
+)
+
+(define-method is_connected
+  (of-object "XfceSMClient")
+  (c-name "xfce_sm_client_is_connected")
+  (return-type "gboolean")
+)
+
+(define-method is_resumed
+  (of-object "XfceSMClient")
+  (c-name "xfce_sm_client_is_resumed")
+  (return-type "gboolean")
+)
+
+(define-method set_desktop_file
+  (of-object "XfceSMClient")
+  (c-name "xfce_sm_client_set_desktop_file")
+  (return-type "none")
+  (parameters
+    '("const-gchar*" "desktop_file")
+  )
+)
+
+(define-method get_client_id
+  (of-object "XfceSMClient")
+  (c-name "xfce_sm_client_get_client_id")
+  (return-type "const-gchar*")
+)
+
+(define-method get_state_file
+  (of-object "XfceSMClient")
+  (c-name "xfce_sm_client_get_state_file")
+  (return-type "const-gchar*")
+)
+
+(define-method set_restart_style
+  (of-object "XfceSMClient")
+  (c-name "xfce_sm_client_set_restart_style")
+  (return-type "none")
+  (parameters
+    '("XfceSMClientRestartStyle" "restart_style")
+  )
+)
+
+(define-method get_restart_style
+  (of-object "XfceSMClient")
+  (c-name "xfce_sm_client_get_restart_style")
+  (return-type "XfceSMClientRestartStyle")
+)
+
+(define-method set_priority
+  (of-object "XfceSMClient")
+  (c-name "xfce_sm_client_set_priority")
+  (return-type "none")
+  (parameters
+    '("guint8" "priority")
+  )
+)
+
+(define-method get_priority
+  (of-object "XfceSMClient")
+  (c-name "xfce_sm_client_get_priority")
+  (return-type "guint8")
+)
+
+(define-method set_current_directory
+  (of-object "XfceSMClient")
+  (c-name "xfce_sm_client_set_current_directory")
+  (return-type "none")
+  (parameters
+    '("const-gchar*" "current_directory")
+  )
+)
+
+(define-method get_current_directory
+  (of-object "XfceSMClient")
+  (c-name "xfce_sm_client_get_current_directory")
+  (return-type "const-gchar*")
+)
+
+(define-method set_restart_command
+  (of-object "XfceSMClient")
+  (c-name "xfce_sm_client_set_restart_command")
+  (return-type "none")
+  (parameters
+    '("gchar**" "restart_command")
+  )
+)
+
+(define-method get_restart_command
+  (of-object "XfceSMClient")
+  (c-name "xfce_sm_client_get_restart_command")
+  (return-type "const-gchar**")
+)
+
+
diff --git a/ui/spawn.defs b/ui/spawn.defs
new file mode 100644
index 0000000..ae38f17
--- /dev/null
+++ b/ui/spawn.defs
@@ -0,0 +1,53 @@
+;; -*- scheme -*-
+; object definitions ...
+;; Enumerations and flags ...
+
+
+;; From xfce-spawn.h
+
+(define-function spawn_on_screen_with_child_watch
+  (c-name "xfce_spawn_on_screen_with_child_watch")
+  (return-type "gboolean")
+  (parameters
+    '("GdkScreen*" "screen")
+    '("const-gchar*" "working_directory")
+    '("gchar**" "argv")
+    '("gchar**" "envp")
+    '("GSpawnFlags" "flags")
+    '("gboolean" "startup_notify")
+    '("guint32" "startup_timestamp")
+    '("const-gchar*" "startup_icon_name")
+    '("GClosure*" "child_watch_closure")
+    '("GError**" "error")
+  )
+)
+
+(define-function spawn_on_screen
+  (c-name "xfce_spawn_on_screen")
+  (return-type "gboolean")
+  (parameters
+    '("GdkScreen*" "screen")
+    '("const-gchar*" "working_directory")
+    '("gchar**" "argv")
+    '("gchar**" "envp")
+    '("GSpawnFlags" "flags")
+    '("gboolean" "startup_notify")
+    '("guint32" "startup_timestamp")
+    '("const-gchar*" "startup_icon_name")
+    '("GError**" "error")
+  )
+)
+
+(define-function spawn_command_line_on_screen
+  (c-name "xfce_spawn_command_line_on_screen")
+  (return-type "gboolean")
+  (parameters
+    '("GdkScreen*" "screen")
+    '("const-gchar*" "command_line")
+    '("gboolean" "in_terminal")
+    '("gboolean" "startup_notify")
+    '("GError**" "error")
+  )
+)
+
+
diff --git a/ui/titled_dialog.defs b/ui/titled_dialog.defs
new file mode 100644
index 0000000..277edb1
--- /dev/null
+++ b/ui/titled_dialog.defs
@@ -0,0 +1,53 @@
+;; -*- scheme -*-
+; object definitions ...
+(define-object TitledDialog
+  (in-module "Xfce")
+  (parent "GtkDialog")
+  (c-name "XfceTitledDialog")
+  (gtype-id "XFCE_TYPE_TITLED_DIALOG")
+)
+
+;; Enumerations and flags ...
+
+
+;; From xfce-titled-dialog.h
+
+(define-function titled_dialog_get_type
+  (c-name "xfce_titled_dialog_get_type")
+  (return-type "GType")
+)
+
+(define-function titled_dialog_new
+  (c-name "xfce_titled_dialog_new")
+  (is-constructor-of "XfceTitledDialog")
+  (return-type "GtkWidget*")
+)
+
+(define-function titled_dialog_new_with_buttons
+  (c-name "xfce_titled_dialog_new_with_buttons")
+  (return-type "GtkWidget*")
+  (parameters
+    '("const-gchar*" "title")
+    '("GtkWindow*" "parent")
+    '("GtkDialogFlags" "flags")
+    '("const-gchar*" "first_button_text")
+  )
+  (varargs #t)
+)
+
+(define-method get_subtitle
+  (of-object "XfceTitledDialog")
+  (c-name "xfce_titled_dialog_get_subtitle")
+  (return-type "const-gchar*")
+)
+
+(define-method set_subtitle
+  (of-object "XfceTitledDialog")
+  (c-name "xfce_titled_dialog_set_subtitle")
+  (return-type "none")
+  (parameters
+    '("const-gchar*" "subtitle")
+  )
+)
+
+



More information about the Xfce4-commits mailing list