- public bool dialog_confirm (Window? parent, string stock_id, string? confirm_label, string? secondary_text, string? primary_format, ...)
Runs a questions dialog that has a 'Cancel' and a 'Confirm' button.
- public int dialog_confirm_close_tabs (Window? parent, int num_tabs, bool show_confirm_box, bool? confirm_box_checked)
Runs a dialog to ask the user whether they want to close the whole
window, close the current tab, or cancel.
- public void dialog_show_error (Window? parent, Error? error, string primary_format, ...)
Displays an error dialog on parent using the
primary_format as primary message and optionally displaying error as secondary error text.
- public void dialog_show_help (Window? parent, string? component, string? page, string? offset)
Asks the user to visit the online documentation.
- public void dialog_show_help_with_version (Window? parent, string? component, string? page, string? offset, string? version)
Asks the user to visit the online documentation.
- public void dialog_show_info (Window? parent, string? secondary_text, string primary_format, ...)
Displays an information dialog on parent using the
primary_format as message.
- public void dialog_show_warning (Window? parent, string? secondary_text, string primary_format, ...)
Displays a warning dialog on parent using the
primary_format as message.
- public bool execute_preferred_application (string category, string parameter, string working_directory, string envp) throws Error
Launches the preferred application for the given category
with the parameter in the specified working_directory.
- public bool execute_terminal_shell (string command_line, string working_directory, string envp) throws Error
Executes command_line in the default terminal emulator.
- public bool gdk_device_grab (Seat seat, Window window, SeatCapabilities capabilities, Cursor? cursor)
Similar to gdk_seat_grab but tries to grab the seat five times with
100ms between each attempt.
- public Pixbuf gdk_pixbuf_frame (Pixbuf source, Pixbuf frame, int left_offset, int top_offset, int right_offset, int bottom_offset)
Embeds source in frame and returns the
result as new Pixbuf.
- public Pixbuf gdk_pixbuf_lucent (Pixbuf source, uint percent)
Returns a version of source, whose pixels translucency is
percent of the original source pixels.
- public Pixbuf gdk_pixbuf_new_from_file_at_max_size (string filename, int max_width, int max_height, bool preserve_aspect_ratio) throws Error
Creates a new
Pixbuf by loading an image from the file at filename.
- public Pixbuf gdk_pixbuf_scale_down (Pixbuf source, bool preserve_aspect_ratio, int dest_width, int dest_height)
Scales down the source to fit into the given width
and height.
- public Pixbuf gdk_pixbuf_scale_ratio (Pixbuf source, int dest_size)
Scales source to dest_size while preserving
the aspect ratio of source.
- public unowned Screen gdk_screen_get_active (out int monitor_return)
Returns the currently active
Screen, that is, the screen which currently contains the pointer.
- public Rectangle? gdk_screen_get_geometry ()
Returns the width and height of the default
Screen.
- public Icon gicon_from_name (string name)
This function will first look for a desktop file of name
and if successful use the value of the "Icon" property to return a Icon.
- public void gtk_accel_group_connect_action_entries (AccelGroup accel_group, GtkActionEntry action_entries, uint n_action_entries, void* callback_data)
This method will connect each accel_path from the
GtkActionEntry in action_entries to its related callback.
- public void gtk_accel_group_disconnect_action_entries (AccelGroup accel_group, GtkActionEntry action_entries, uint n_action_entries)
This method will disconnect each accel_path from the
GtkActionEntry in action_entries.
- public void gtk_accel_map_add_entries (GtkActionEntry action_entries, uint n_action_entries)
Adds the default key of each ActionEntry to the accel_map, if no key
was defined for the related accel_path so far.
- public unowned Widget gtk_button_new_mixed (string? stock_id, string? label)
Creates a new
Button containing a mnemonic label and a stock icon.
- public unowned Widget gtk_check_menu_item_new (string label_text, string? tooltip_text, string? accel_path, Callback? callback, Object? callback_param, bool active, MenuShell? menu_to_append_item)
Convenience method to create a
CheckMenuItem and preconfigure it with the passed parameters.
- public unowned Widget gtk_dialog_get_action_area (Dialog dialog)
Returns the action area of a
Dialog.
- public bool gtk_execute_tab_accel (string accel_path, void* data, GtkActionEntry entries, size_t entry_count)
Activates the callback function of the
GtkActionEntry that corresponds to accel_path.
- public void gtk_file_chooser_add_thumbnail_preview (FileChooser chooser)
This is a convenience function that adds a preview widget to the
chooser, which displays thumbnails for the selected filenames using the thumbnail database.
- public unowned Widget gtk_frame_box_new (string label, out Widget? container_return)
Creates an Xfce-styled frame.
- public unowned Widget gtk_frame_box_new_with_content (string label, Widget content)
- public unowned GtkActionEntry? gtk_get_action_entry_by_id (GtkActionEntry action_entries, uint n_action_entries, uint id)
Convenience method to find a specific action_entry from an array of
action_entries
- public bool gtk_handle_tab_accels (EventKey key_event, AccelGroup accel_group, void* data, GtkActionEntry entries, size_t entry_count)
The Tab key is used to navigate the interface by GTK+ so we need to
handle shortcuts with the Tab accelerator manually.
- public unowned Widget gtk_image_menu_item_new (string label_text, string? tooltip_text, string? accel_path, Callback? callback, Object? callback_param, Widget? image, MenuShell? menu_to_append_item)
Convenience method to create a deprecated
ImageMenuItem and preconfigure it with the passed parameters.
- public unowned Widget gtk_image_menu_item_new_from_icon_name (string label_text, string? tooltip_text, string? accel_path, Callback? callback, Object? callback_param, string? icon_name, MenuShell? menu_to_append_item)
Convenience method to create a
ImageMenuItem and preconfigure it with the passed parameters.
- public void gtk_label_set_a11y_relation (Label label, Widget widget)
Sets the `ATK_RELATION_LABEL_FOR` relation on label for
widget, which means accessiblity tools will identify label as descriptive item for the specified
widget.
- public void gtk_menu_append_separator (MenuShell menu)
Convenience method do add separators, used to prevent code duplication
- public void gtk_menu_append_seperator (MenuShell menu)
Convenience method do add separators, used to prevent code duplication
- public bool gtk_menu_popup_until_mapped (Menu menu, Widget? parent_menu_shell, Widget? parent_menu_item, MenuPositionFunc? func, uint button, uint32 activate_time)
Attempts to pop up a
Menu for a short duration.
- public unowned Widget gtk_radio_menu_item_new (string label_text, string? tooltip_text, string? accel_path, Callback? callback, Object? callback_param, bool active, MenuShell? menu_to_append_item)
Convenience method to create a
CheckMenuItem and preconfigure it with the passed parameters.
- public unowned Widget? gtk_toggle_menu_item_new_from_action_entry (GtkActionEntry action_entry, Object? callback_param, bool active, MenuShell? menu_to_append_item)
Method to create a toggle menu item from the passed action entry
- public unowned Widget gtk_toggle_tool_button_new_from_action_entry (GtkActionEntry action_entry, Object? callback_param, bool active, Toolbar toolbar_to_append_item)
Method to create a toolbar toggle-button from the passed action entry.
- public unowned Widget gtk_tool_button_new_from_action_entry (GtkActionEntry action_entry, Object? callback_param, Toolbar toolbar_to_append_item)
Method to create a toolbar button from the passed action entry.
- public void gtk_translate_action_entries (GtkActionEntry action_entries, uint n_action_entries)
Convenience method to translate the label text and tooltip text of an
array of action_entries
- public void gtk_url_about_dialog_hook (AboutDialog about_dialog, string address, void* user_data)
This is a convenience function, which can be registered with
AboutDialog, to open links clicked by the user in
AboutDialog<!---->s.
- public void gtk_window_center_on_active_screen (Window window)
Determines the screen that contains the pointer and centers the
window on it.
- public bool has_gtk_frame_extents (Window window, Border extents)
This function can be called to determine if a
Window is using client-side decorations which is indicated by the
_GTK_FRAME_EXTENTS X11 atom.
- public string icon_name_from_desktop_id (string desktop_id)
- public int message_dialog (Window? parent, string? title, string stock_id, string primary_text, string secondary_text, ...)
Create a new dialog as in
message_dialog_new, then runs the dialog using
run and return the response id selected by the user.
- public unowned Widget message_dialog_new (Window? parent, string? title, string stock_id, string primary_text, string secondary_text, ...)
message_dialog_new allows you to easily
create Gtk+ message dialogs.
- public unowned Widget message_dialog_new_valist (Window? parent, string? title, string icon_stock_id, string primary_text, string secondary_text, string first_button_text, va_list args)
- public bool spawn (Screen? screen, string? working_directory, string argv, string? envp, SpawnFlags flags, bool startup_notify, uint32 startup_timestamp, string? startup_icon_name, bool child_process) throws Error
Like gdk_spawn_on_screen (GDK 2), but also supports
startup notification (if Libxfce4ui was built with startup notification support).
- public bool spawn_command_line (Screen? screen, string command_line, bool in_terminal, bool startup_notify, bool child_process) throws Error
Executes the given command_line and returns
true if the command terminated successfully.
- public bool spawn_command_line_on_screen (Screen? screen, string command_line, bool in_terminal, bool startup_notify) throws Error
Executes the given command_line and returns
true if the command terminated successfully.
- public bool spawn_on_screen (Screen? screen, string? working_directory, string argv, string? envp, SpawnFlags flags, bool startup_notify, uint32 startup_timestamp, string? startup_icon_name) throws Error
Like gdk_spawn_on_screen (GDK 2), but also supports
startup notification (if Libxfce4ui was built with startup notification support).
- public bool spawn_on_screen_with_child_watch (Screen? screen, string? working_directory, string argv, string? envp, SpawnFlags flags, bool startup_notify, uint32 startup_timestamp, string? startup_icon_name, Closure? child_watch_closure) throws Error
Like
spawn_on_screen, but allows to attach a closure to watch the child's exit status.
- public bool widget_reparent (Widget widget, Widget new_parent)
Moves a widget from one GtkContainer to another, handling reference
count issues to avoid destroying the widget.