Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-2.0.gir |
C documentation: | Gtk |
Namespace : | Gtk |
Show / Hide Inherited methods, properties and signals |
Properties | |
---|---|
Number Gtk.ARG_READWRITE : 0
|
|
Number Gtk.BINARY_AGE : 2101
|
|
Number Gtk.BUTTONBOX_DEFAULT : -1
|
|
Number Gtk.INPUT_ERROR : -1
|
|
Number Gtk.INTERFACE_AGE : 0
|
|
Number Gtk.MAJOR_VERSION : 2
|
|
Number Gtk.MAX_COMPOSE_LEN : 7
|
|
Number Gtk.MICRO_VERSION : 1
|
|
Number Gtk.MINOR_VERSION : 21
|
|
String Gtk.PAPER_NAME_A3 : iso_a3
|
|
String Gtk.PAPER_NAME_A4 : iso_a4
|
|
String Gtk.PAPER_NAME_A5 : iso_a5
|
|
String Gtk.PAPER_NAME_B5 : iso_b5
|
|
String Gtk.PAPER_NAME_EXECUTIVE : na_executive
|
|
String Gtk.PAPER_NAME_LEGAL : na_legal
|
|
String Gtk.PAPER_NAME_LETTER : na_letter
|
|
Number Gtk.PARAM_READABLE : 0
|
|
Number Gtk.PARAM_READWRITE : 0
|
|
Number Gtk.PARAM_WRITABLE : 0
|
|
Number Gtk.PATH_PRIO_MASK : 15
|
|
String Gtk.PRINT_SETTINGS_COLLATE : collate
|
|
String Gtk.PRINT_SETTINGS_DEFAULT_SOURCE : default-source
|
|
String Gtk.PRINT_SETTINGS_DITHER : dither
|
|
String Gtk.PRINT_SETTINGS_DUPLEX : duplex
|
|
String Gtk.PRINT_SETTINGS_FINISHINGS : finishings
|
|
String Gtk.PRINT_SETTINGS_MEDIA_TYPE : media-type
|
|
String Gtk.PRINT_SETTINGS_NUMBER_UP : number-up
|
|
String Gtk.PRINT_SETTINGS_NUMBER_UP_LAYOUT : number-up-layout
|
|
String Gtk.PRINT_SETTINGS_N_COPIES : n-copies
|
|
String Gtk.PRINT_SETTINGS_ORIENTATION : orientation
|
|
String Gtk.PRINT_SETTINGS_OUTPUT_BIN : output-bin
|
|
String Gtk.PRINT_SETTINGS_OUTPUT_FILE_FORMAT : output-file-format
|
|
String Gtk.PRINT_SETTINGS_OUTPUT_URI : output-uri
|
|
String Gtk.PRINT_SETTINGS_PAGE_RANGES : page-ranges
|
|
String Gtk.PRINT_SETTINGS_PAGE_SET : page-set
|
|
String Gtk.PRINT_SETTINGS_PAPER_FORMAT : paper-format
|
|
String Gtk.PRINT_SETTINGS_PAPER_HEIGHT : paper-height
|
|
String Gtk.PRINT_SETTINGS_PAPER_WIDTH : paper-width
|
|
String Gtk.PRINT_SETTINGS_PRINTER : printer
|
|
String Gtk.PRINT_SETTINGS_PRINTER_LPI : printer-lpi
|
|
String Gtk.PRINT_SETTINGS_PRINT_PAGES : print-pages
|
|
String Gtk.PRINT_SETTINGS_QUALITY : quality
|
|
String Gtk.PRINT_SETTINGS_RESOLUTION : resolution
|
|
String Gtk.PRINT_SETTINGS_RESOLUTION_X : resolution-x
|
|
String Gtk.PRINT_SETTINGS_RESOLUTION_Y : resolution-y
|
|
String Gtk.PRINT_SETTINGS_REVERSE : reverse
|
|
String Gtk.PRINT_SETTINGS_SCALE : scale
|
|
String Gtk.PRINT_SETTINGS_USE_COLOR : use-color
|
|
String Gtk.PRINT_SETTINGS_WIN32_DRIVER_EXTRA : win32-driver-extra
|
|
String Gtk.PRINT_SETTINGS_WIN32_DRIVER_VERSION : win32-driver-version
|
|
Number Gtk.PRIORITY_REDRAW : 20
|
|
Number Gtk.PRIORITY_RESIZE : 10
|
|
String Gtk.STOCK_ABOUT : gtk-about
|
|
String Gtk.STOCK_ADD : gtk-add
|
|
String Gtk.STOCK_APPLY : gtk-apply
|
|
String Gtk.STOCK_BOLD : gtk-bold
|
|
String Gtk.STOCK_CANCEL : gtk-cancel
|
|
String Gtk.STOCK_CAPS_LOCK_WARNING : gtk-caps-lock-warning
|
|
String Gtk.STOCK_CDROM : gtk-cdrom
|
|
String Gtk.STOCK_CLEAR : gtk-clear
|
|
String Gtk.STOCK_CLOSE : gtk-close
|
|
String Gtk.STOCK_COLOR_PICKER : gtk-color-picker
|
|
String Gtk.STOCK_CONNECT : gtk-connect
|
|
String Gtk.STOCK_CONVERT : gtk-convert
|
|
String Gtk.STOCK_COPY : gtk-copy
|
|
String Gtk.STOCK_CUT : gtk-cut
|
|
String Gtk.STOCK_DELETE : gtk-delete
|
|
String Gtk.STOCK_DIALOG_AUTHENTICATION : gtk-dialog-authentication
|
|
String Gtk.STOCK_DIALOG_ERROR : gtk-dialog-error
|
|
String Gtk.STOCK_DIALOG_INFO : gtk-dialog-info
|
|
String Gtk.STOCK_DIALOG_QUESTION : gtk-dialog-question
|
|
String Gtk.STOCK_DIALOG_WARNING : gtk-dialog-warning
|
|
String Gtk.STOCK_DIRECTORY : gtk-directory
|
|
String Gtk.STOCK_DISCARD : gtk-discard
|
|
String Gtk.STOCK_DISCONNECT : gtk-disconnect
|
|
String Gtk.STOCK_DND : gtk-dnd
|
|
String Gtk.STOCK_DND_MULTIPLE : gtk-dnd-multiple
|
|
String Gtk.STOCK_EDIT : gtk-edit
|
|
String Gtk.STOCK_EXECUTE : gtk-execute
|
|
String Gtk.STOCK_FILE : gtk-file
|
|
String Gtk.STOCK_FIND : gtk-find
|
|
String Gtk.STOCK_FIND_AND_REPLACE : gtk-find-and-replace
|
|
String Gtk.STOCK_FLOPPY : gtk-floppy
|
|
String Gtk.STOCK_FULLSCREEN : gtk-fullscreen
|
|
String Gtk.STOCK_GOTO_BOTTOM : gtk-goto-bottom
|
|
String Gtk.STOCK_GOTO_FIRST : gtk-goto-first
|
|
String Gtk.STOCK_GOTO_LAST : gtk-goto-last
|
|
String Gtk.STOCK_GOTO_TOP : gtk-goto-top
|
|
String Gtk.STOCK_GO_BACK : gtk-go-back
|
|
String Gtk.STOCK_GO_DOWN : gtk-go-down
|
|
String Gtk.STOCK_GO_FORWARD : gtk-go-forward
|
|
String Gtk.STOCK_GO_UP : gtk-go-up
|
|
String Gtk.STOCK_HARDDISK : gtk-harddisk
|
|
String Gtk.STOCK_HELP : gtk-help
|
|
String Gtk.STOCK_HOME : gtk-home
|
|
String Gtk.STOCK_INDENT : gtk-indent
|
|
String Gtk.STOCK_INDEX : gtk-index
|
|
String Gtk.STOCK_INFO : gtk-info
|
|
String Gtk.STOCK_ITALIC : gtk-italic
|
|
String Gtk.STOCK_JUMP_TO : gtk-jump-to
|
|
String Gtk.STOCK_JUSTIFY_CENTER : gtk-justify-center
|
|
String Gtk.STOCK_JUSTIFY_FILL : gtk-justify-fill
|
|
String Gtk.STOCK_JUSTIFY_LEFT : gtk-justify-left
|
|
String Gtk.STOCK_JUSTIFY_RIGHT : gtk-justify-right
|
|
String Gtk.STOCK_LEAVE_FULLSCREEN : gtk-leave-fullscreen
|
|
String Gtk.STOCK_MEDIA_FORWARD : gtk-media-forward
|
|
String Gtk.STOCK_MEDIA_NEXT : gtk-media-next
|
|
String Gtk.STOCK_MEDIA_PAUSE : gtk-media-pause
|
|
String Gtk.STOCK_MEDIA_PLAY : gtk-media-play
|
|
String Gtk.STOCK_MEDIA_PREVIOUS : gtk-media-previous
|
|
String Gtk.STOCK_MEDIA_RECORD : gtk-media-record
|
|
String Gtk.STOCK_MEDIA_REWIND : gtk-media-rewind
|
|
String Gtk.STOCK_MEDIA_STOP : gtk-media-stop
|
|
String Gtk.STOCK_MISSING_IMAGE : gtk-missing-image
|
|
String Gtk.STOCK_NETWORK : gtk-network
|
|
String Gtk.STOCK_NEW : gtk-new
|
|
String Gtk.STOCK_NO : gtk-no
|
|
String Gtk.STOCK_OK : gtk-ok
|
|
String Gtk.STOCK_OPEN : gtk-open
|
|
String Gtk.STOCK_ORIENTATION_LANDSCAPE : gtk-orientation-landscape
|
|
String Gtk.STOCK_ORIENTATION_PORTRAIT : gtk-orientation-portrait
|
|
String Gtk.STOCK_ORIENTATION_REVERSE_LANDSCAPE : gtk-orientation-reverse-landscape
|
|
String Gtk.STOCK_ORIENTATION_REVERSE_PORTRAIT : gtk-orientation-reverse-portrait
|
|
String Gtk.STOCK_PAGE_SETUP : gtk-page-setup
|
|
String Gtk.STOCK_PASTE : gtk-paste
|
|
String Gtk.STOCK_PREFERENCES : gtk-preferences
|
|
String Gtk.STOCK_PRINT : gtk-print
|
|
String Gtk.STOCK_PRINT_ERROR : gtk-print-error
|
|
String Gtk.STOCK_PRINT_PAUSED : gtk-print-paused
|
|
String Gtk.STOCK_PRINT_PREVIEW : gtk-print-preview
|
|
String Gtk.STOCK_PRINT_REPORT : gtk-print-report
|
|
String Gtk.STOCK_PRINT_WARNING : gtk-print-warning
|
|
String Gtk.STOCK_PROPERTIES : gtk-properties
|
|
String Gtk.STOCK_QUIT : gtk-quit
|
|
String Gtk.STOCK_REDO : gtk-redo
|
|
String Gtk.STOCK_REFRESH : gtk-refresh
|
|
String Gtk.STOCK_REMOVE : gtk-remove
|
|
String Gtk.STOCK_REVERT_TO_SAVED : gtk-revert-to-saved
|
|
String Gtk.STOCK_SAVE : gtk-save
|
|
String Gtk.STOCK_SAVE_AS : gtk-save-as
|
|
String Gtk.STOCK_SELECT_ALL : gtk-select-all
|
|
String Gtk.STOCK_SELECT_COLOR : gtk-select-color
|
|
String Gtk.STOCK_SELECT_FONT : gtk-select-font
|
|
String Gtk.STOCK_SORT_ASCENDING : gtk-sort-ascending
|
|
String Gtk.STOCK_SORT_DESCENDING : gtk-sort-descending
|
|
String Gtk.STOCK_SPELL_CHECK : gtk-spell-check
|
|
String Gtk.STOCK_STOP : gtk-stop
|
|
String Gtk.STOCK_STRIKETHROUGH : gtk-strikethrough
|
|
String Gtk.STOCK_UNDELETE : gtk-undelete
|
|
String Gtk.STOCK_UNDERLINE : gtk-underline
|
|
String Gtk.STOCK_UNDO : gtk-undo
|
|
String Gtk.STOCK_UNINDENT : gtk-unindent
|
|
String Gtk.STOCK_YES : gtk-yes
|
|
String Gtk.STOCK_ZOOM_100 : gtk-zoom-100
|
|
String Gtk.STOCK_ZOOM_FIT : gtk-zoom-fit
|
|
String Gtk.STOCK_ZOOM_IN : gtk-zoom-in
|
|
String Gtk.STOCK_ZOOM_OUT : gtk-zoom-out
|
|
Number Gtk.TEXT_VIEW_PRIORITY_VALIDATE : 5
|
|
Number Gtk.TYPE_FUNDAMENTAL_LAST : -1
|
None |
Method / Constructor | Defined By | |
---|---|---|
Finds the first accelerator in any GtkAccelGroup attached to object that matches accel_key and accel_mods, and activates that accelerator.
Finds the first accelerator in any GtkAccelGroup attached to object that matches accel_key and accel_mods, and activates that accelerator.
|
Gtk | |
Gets a list of all accel groups which are attached to object.
Gets a list of all accel groups which are attached to object.
|
Gtk | |
Gtk.accelerator_get_default_mod_mask
()
:
Number
Gets the value set by gtk_accelerator_set_default_mod_mask().
Gets the value set by gtk_accelerator_set_default_mod_mask().
|
Gtk | |
Converts an accelerator keyval and modifier mask into a string which can be used to represent the accelerator to the user.
Converts an accelerator keyval and modifier mask into a string which can be used to represent the accelerator to the user.
|
Gtk | |
Converts an accelerator keyval and modifier mask into a string parseable by gtk_accelerator_parse().
Converts an accelerator keyval and modifier mask into a string parseable by gtk_accelerator_parse(). For example, if you pass in GDK_q and GDK_CONTROL_MASK, this function returns "<Control>q". If you need to display accelerators in the user interface, see gtk_accelerator_get_label().
|
Gtk | |
Gtk.accelerator_parse
(String accelerator, Number accelerator_key, ModifierType accelerator_mods)
:
Number
Parses a string representing an accelerator.
Parses a string representing an accelerator. The format looks like "<Control>a" or "<Shift><Alt>F1" or "<Release>z" (the last one is for key release). The parser is fairly liberal and allows lower or upper case, and also abbreviations such as "<Ctl>" and "<Ctrl>". Key names are parsed using gdk_keyval_from_name(). For character keys the name is not the symbol, but the lowercase name, e.g. one would use "<Ctrl>minus" instead of "<Ctrl>-". If the parse fails, accelerator_key and accelerator_mods will be set to 0 (zero).
|
Gtk | |
Gtk.accelerator_set_default_mod_mask
(ModifierType default_mod_mask)
:
none
Sets the modifiers that will be considered significant for keyboard accelerators.
Sets the modifiers that will be considered significant for keyboard accelerators. The default mod mask is GDK_CONTROL_MASK | GDK_SHIFT_MASK | GDK_MOD1_MASK | GDK_SUPER_MASK | GDK_HYPER_MASK | GDK_META_MASK, that is, Control, Shift, Alt, Super, Hyper and Meta. Other modifiers will by default be ignored by GtkAccelGroup. You must include at least the three modifiers Control, Shift and Alt in any value you pass to this function. The default mod mask should be changed on application startup, before using any accelerator groups.
|
Gtk | |
Determines whether a given keyval and modifier mask constitute a valid keyboard accelerator.
Determines whether a given keyval and modifier mask constitute a valid keyboard accelerator. For example, the GDK_a keyval plus GDK_CONTROL_MASK is valid - this is a "Ctrl+a" accelerator. But, you can't, for instance, use the GDK_Control_L keyval as an accelerator.
|
Gtk | |
Returns TRUE if dialogs are expected to use an alternative button order on the screen screen.
Returns TRUE if dialogs are expected to use an alternative button order on the screen screen. See gtk_dialog_set_alternative_button_order() for more details about alternative button order. If you need to use this function, you should probably connect to the ::notify:gtk-alternative-button-order signal on the GtkSettings object associated to screen, in order to be notified if the button order setting changes.
|
Gtk | |
Gtk.binding_entry_add_signall
(BindingSet binding_set, Number keyval, ModifierType modifiers, String signal_name, Array binding_args)
:
none
Override or install a new key binding for keyval with modifiers on
Override or install a new key binding for keyval with modifiers on
|
Gtk | |
Clears a binding entry.
Clears a binding entry.
|
Gtk | |
Remove a binding previously installed via gtk_binding_entry_add_signal() on binding_set.
Remove a binding previously installed via gtk_binding_entry_add_signal() on binding_set.
|
Gtk | |
Install a binding on binding_set which causes key lookups to be aborted, to prevent bindings from lower priority sets to be activated.
Install a binding on binding_set which causes key lookups to be aborted, to prevent bindings from lower priority sets to be activated.
|
Gtk | |
Parse a binding entry from a gtkrc file.
Parse a binding entry from a gtkrc file.
|
Gtk | |
This function returns the binding set named after the type name of the passed in class structure.
This function returns the binding set named after the type name of the passed in class structure. New binding sets are created on demand by this function.
|
Gtk | |
Find a binding set by its globally unique name.
Find a binding set by its globally unique name. The set_name can either be a name used for gtk_binding_set_new() or the type name of a class used in gtk_binding_set_by_class().
|
Gtk | |
Find a key binding matching keyval and modifiers and activate the binding on object.
Find a key binding matching keyval and modifiers and activate the binding on object.
|
Gtk | |
Looks up key bindings for object to find one matching
Looks up key bindings for object to find one matching
|
Gtk | |
Checks that the GTK+ library in use is compatible with the given version.
Checks that the GTK+ library in use is compatible with the given version. Generally you would pass in the constants GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION as the three arguments to this function; that produces a check that the library in use is compatible with the version of GTK+ the application or module was compiled against. of the running library is newer than the version the running library must be binary compatible with the version required_major.required_minor.required_micro (same major version.) This function is primarily for GTK+ modules; the module can call this function to check that it wasn't loaded into an incompatible version of GTK+. However, such a a check isn't completely reliable, since the module may be linked against an old version of GTK+ and calling the old version of gtk_check_version(), but still get loaded into an application using a newer version of GTK+. given version, or a string describing the version mismatch. The returned string is owned by GTK+ and should not be modified or freed.
|
Gtk | |
Gtk.disable_setlocale
()
:
none
Prevents gtk_init(), gtk_init_check(), gtk_init_with_args() and gtk_parse_args() from automatically calling
Prevents gtk_init(), gtk_init_check(), gtk_init_with_args() and gtk_parse_args() from automatically calling
|
Gtk | |
Gtk.drag_begin
(Widget widget, TargetList targets, DragAction actions, Number button, Event event)
:
Gdk.DragContext
Initiates a drag on the source side.
Initiates a drag on the source side. The function only needs to be used when the application is starting drags itself, and is not needed when gtk_drag_source_set() is used.
|
Gtk | |
Gtk.drag_check_threshold
(Widget widget, Number start_x, Number start_y, Number current_x, Number current_y)
:
Boolean
Checks to see if a mouse drag starting at (start_x, start_y) and ending at (current_x, current_y) has passed the GTK+ drag threshold, and thus should trigger the beginning of a drag-and-drop operation.
Checks to see if a mouse drag starting at (start_x, start_y) and ending at (current_x, current_y) has passed the GTK+ drag threshold, and thus should trigger the beginning of a drag-and-drop operation.
|
Gtk | |
Gtk.drag_dest_add_image_targets
(Widget widget)
:
none
Add the image targets supported by GtkSelection to the target list of the drag destination.
Add the image targets supported by GtkSelection to the target list of the drag destination. The targets are added with info = 0. If you need another value, use gtk_target_list_add_image_targets() and gtk_drag_dest_set_target_list().
|
Gtk | |
Gtk.drag_dest_add_text_targets
(Widget widget)
:
none
Add the text targets supported by GtkSelection to the target list of the drag destination.
Add the text targets supported by GtkSelection to the target list of the drag destination. The targets are added with info = 0. If you need another value, use gtk_target_list_add_text_targets() and gtk_drag_dest_set_target_list().
|
Gtk | |
Gtk.drag_dest_add_uri_targets
(Widget widget)
:
none
Add the URI targets supported by GtkSelection to the target list of the drag destination.
Add the URI targets supported by GtkSelection to the target list of the drag destination. The targets are added with info = 0. If you need another value, use gtk_target_list_add_uri_targets() and gtk_drag_dest_set_target_list().
|
Gtk | |
Looks for a match between context->targets and the returning GDK_NONE.
Looks for a match between context->targets and the returning GDK_NONE. dest_target_list should usually be the return value from gtk_drag_dest_get_target_list(), but some widgets may have different valid targets for different parts of the widget; in that case, they will have to implement a drag_motion handler that passes the correct target list to this function.
|
Gtk | |
Returns the list of targets this widget can accept from drag-and-drop.
Returns the list of targets this widget can accept from drag-and-drop.
|
Gtk | |
Returns whether the widget has been configured to always emit ::drag-motion signals.
Returns whether the widget has been configured to always emit ::drag-motion signals.
|
Gtk | |
Gtk.drag_dest_set
(Widget widget, DestDefaults flags, Array targets, Number n_targets, DragAction actions)
:
none
Sets a widget as a potential drop destination, and adds default behaviors.
Sets a widget as a potential drop destination, and adds default behaviors. The default behaviors listed in flags have an effect similar to installing default handlers for the widget's drag-and-drop signals (GtkWidget:drag-motion, GtkWidget:drag-drop, ...). They all exist for convenience. When passing GTK_DEST_DEFAULT_ALL for instance it is sufficient to connect to the widget's GtkWidget::drag-data-received signal to get primitive, but consistent drag-and-drop support. Things become more complicated when you try to preview the dragged data, as described in the documentation for GtkWidget:drag-motion. The default behaviors described by flags make some assumptions, that can conflict with your own signal handlers. For instance GTK_DEST_DEFAULT_DROP causes invokations of gdk_drag_status() in the context of GtkWidget:drag-motion, and invokations of gtk_drag_finish() in GtkWidget:drag-data-received. Especially the later is dramatic, when your own GtkWidget:drag-motion handler calls gtk_drag_get_data() to inspect the dragged data. There's no way to set a default action here, you can use the GtkWidget:drag-motion callback for that. Here's an example which selects the action to use depending on whether the control key is pressed or not: |[ static void drag_motion (GtkWidget *widget, GdkDragContext *context, gint x, gint y, guint time) { GdkModifierType mask; gdk_window_get_pointer (gtk_widget_get_window (widget), NULL, NULL, &mask); if (mask & GDK_CONTROL_MASK) gdk_drag_status (context, GDK_ACTION_COPY, time); else gdk_drag_status (context, GDK_ACTION_MOVE, time); } ]|
|
Gtk | |
Gtk.drag_dest_set_proxy
(Widget widget, Window proxy_window, DragProtocol protocol, Boolean use_coordinates)
:
none
|
Gtk | |
Sets the target types that this widget can accept from drag-and-drop.
Sets the target types that this widget can accept from drag-and-drop. The widget must first be made into a drag destination with gtk_drag_dest_set().
|
Gtk | |
Tells the widget to emit ::drag-motion and ::drag-leave events regardless of the targets and the GTK_DEST_DEFAULT_MOTION flag.
Tells the widget to emit ::drag-motion and ::drag-leave events regardless of the targets and the GTK_DEST_DEFAULT_MOTION flag. This may be used when a widget wants to do generic actions regardless of the targets that the source offers.
|
Gtk | |
Gtk.drag_dest_unset
(Widget widget)
:
none
|
Gtk | |
|
Gtk | |
|
Gtk | |
|
Gtk | |
Gtk.drag_highlight
(Widget widget)
:
none
|
Gtk | |
Gtk.drag_set_default_icon
(Colormap colormap, Pixmap pixmap, Bitmap mask, Number hot_x, Number hot_y)
:
none
Changes the default drag icon.
Changes the default drag icon. GTK+ retains references for the arguments, and will release them when they are no longer needed. changing the stock pixbuf for GTK_STOCK_DND instead.
|
Gtk | |
Gtk.drag_set_icon_default
(DragContext context)
:
none
Sets the icon for a particular drag to the default icon.
Sets the icon for a particular drag to the default icon.
|
Gtk | |
Sets the icon for a given drag from a named themed icon.
Sets the icon for a given drag from a named themed icon. See the docs for GtkIconTheme for more details. Note that the size of the icon depends on the icon theme (the icon is loaded at the symbolic size GTK_ICON_SIZE_DND), thus
|
Gtk | |
Sets pixbuf as the icon for a given drag.
Sets pixbuf as the icon for a given drag.
|
Gtk | |
Gtk.drag_set_icon_pixmap
(DragContext context, Colormap colormap, Pixmap pixmap, Bitmap mask, Number hot_x, Number hot_y)
:
none
Sets pixmap as the icon for a given drag.
Sets pixmap as the icon for a given drag. GTK+ retains references for the arguments, and will release them when they are no longer needed. In general, gtk_drag_set_icon_pixbuf() will be more convenient to use.
|
Gtk | |
Sets the icon for a given drag from a stock ID.
Sets the icon for a given drag from a stock ID.
|
Gtk | |
Changes the icon for a widget to a given widget.
Changes the icon for a widget to a given widget. GTK+ will not destroy the icon, so if you don't want it to persist, you should connect to the "drag-end" signal and destroy it yourself.
|
Gtk | |
Gtk.drag_source_add_image_targets
(Widget widget)
:
none
Add the writable image targets supported by GtkSelection to the target list of the drag source.
Add the writable image targets supported by GtkSelection to the target list of the drag source. The targets are added with info = 0. If you need another value, use gtk_target_list_add_image_targets() and gtk_drag_source_set_target_list().
|
Gtk | |
Gtk.drag_source_add_text_targets
(Widget widget)
:
none
Add the text targets supported by GtkSelection to the target list of the drag source.
Add the text targets supported by GtkSelection to the target list of the drag source. The targets are added with info = 0. If you need another value, use gtk_target_list_add_text_targets() and gtk_drag_source_set_target_list().
|
Gtk | |
Gtk.drag_source_add_uri_targets
(Widget widget)
:
none
Add the URI targets supported by GtkSelection to the target list of the drag source.
Add the URI targets supported by GtkSelection to the target list of the drag source. The targets are added with info = 0. If you need another value, use gtk_target_list_add_uri_targets() and gtk_drag_source_set_target_list().
|
Gtk | |
Gets the list of targets this widget can provide for drag-and-drop.
Gets the list of targets this widget can provide for drag-and-drop.
|
Gtk | |
Gtk.drag_source_set
(Widget widget, ModifierType start_button_mask, Array targets, Number n_targets, DragAction actions)
:
none
Sets up a widget so that GTK+ will start a drag operation when the user clicks and drags on the widget.
Sets up a widget so that GTK+ will start a drag operation when the user clicks and drags on the widget. The widget must have a window.
|
Gtk | |
Sets the icon that will be used for drags from a particular widget from a pixmap/mask.
Sets the icon that will be used for drags from a particular widget from a pixmap/mask. GTK+ retains references for the arguments, and will release them when they are no longer needed. Use gtk_drag_source_set_icon_pixbuf() instead.
|
Gtk | |
Sets the icon that will be used for drags from a particular source to a themed icon.
Sets the icon that will be used for drags from a particular source to a themed icon. See the docs for GtkIconTheme for more details.
|
Gtk | |
Sets the icon that will be used for drags from a particular widget from a GdkPixbuf.
Sets the icon that will be used for drags from a particular widget from a GdkPixbuf. GTK+ retains a reference for pixbuf and will release it when it is no longer needed.
|
Gtk | |
Sets the icon that will be used for drags from a particular source to a stock icon.
Sets the icon that will be used for drags from a particular source to a stock icon.
|
Gtk | |
Changes the target types that this widget offers for drag-and-drop.
Changes the target types that this widget offers for drag-and-drop. The widget must first be made into a drag source with gtk_drag_source_set().
|
Gtk | |
Gtk.drag_source_unset
(Widget widget)
:
none
|
Gtk | |
Gtk.drag_unhighlight
(Widget widget)
:
none
|
Gtk | |
Gtk.draw_arrow
(Style style, Window window, StateType state_type, ShadowType shadow_type, ArrowType arrow_type, Boolean fill, Number x, Number y, Number width, Number height)
:
none
Draws an arrow in the given rectangle on window using the given parameters.
Draws an arrow in the given rectangle on window using the given parameters. arrow_type determines the direction of the arrow.
|
Gtk | |
Gtk.draw_box
(Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height)
:
none
Draws a box on window with the given parameters.
Draws a box on window with the given parameters.
|
Gtk | |
Gtk.draw_box_gap
(Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height, PositionType gap_side, Number gap_x, Number gap_width)
:
none
Draws a box in window using the given style and state and shadow type, leaving a gap in one side.
Draws a box in window using the given style and state and shadow type, leaving a gap in one side.
|
Gtk | |
Gtk.draw_check
(Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height)
:
none
Draws a check button indicator in the given rectangle on window with the given parameters.
Draws a check button indicator in the given rectangle on window with the given parameters.
|
Gtk | |
Gtk.draw_diamond
(Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height)
:
none
Draws a diamond in the given rectangle on window using the given parameters.
Draws a diamond in the given rectangle on window using the given parameters.
|
Gtk | |
Gtk.draw_expander
(Style style, Window window, StateType state_type, Number x, Number y, ExpanderStyle expander_style)
:
none
Draws an expander as used in GtkTreeView.
Draws an expander as used in GtkTreeView.
|
Gtk | |
Gtk.draw_extension
(Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height, PositionType gap_side)
:
none
Draws an extension, i.e.
Draws an extension, i.e. a notebook tab.
|
Gtk | |
Gtk.draw_flat_box
(Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height)
:
none
Draws a flat box on window with the given parameters.
Draws a flat box on window with the given parameters.
|
Gtk | |
Draws a focus indicator around the given rectangle on window using the given style.
Draws a focus indicator around the given rectangle on window using the given style.
|
Gtk | |
Gtk.draw_handle
(Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height, Orientation orientation)
:
none
Draws a handle as used in GtkHandleBox and GtkPaned.
Draws a handle as used in GtkHandleBox and GtkPaned.
|
Gtk | |
Gtk.draw_hline
(Style style, Window window, StateType state_type, Number x1, Number x2, Number y)
:
none
Draws a horizontal line from (x1, y) to (x2, y) in window using the given style and state.
Draws a horizontal line from (x1, y) to (x2, y) in window using the given style and state.
|
Gtk | |
Gtk.draw_insertion_cursor
(Widget widget, Drawable drawable, Rectangle area, Rectangle location, Boolean is_primary, TextDirection direction, Boolean draw_arrow)
:
none
Draws a text caret on drawable at location.
Draws a text caret on drawable at location. This is not a style function but merely a convenience function for drawing the standard cursor shape.
|
Gtk | |
Gtk.draw_layout
(Style style, Window window, StateType state_type, Boolean use_text, Number x, Number y, Layout layout)
:
none
Draws a layout on window using the given parameters.
Draws a layout on window using the given parameters.
|
Gtk | |
Gtk.draw_option
(Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height)
:
none
Draws a radio button indicator in the given rectangle on window with the given parameters.
Draws a radio button indicator in the given rectangle on window with the given parameters.
|
Gtk | |
Gtk.draw_polygon
(Style style, Window window, StateType state_type, ShadowType shadow_type, Point points, Number npoints, Boolean fill)
:
none
Draws a polygon on window with the given parameters.
Draws a polygon on window with the given parameters.
|
Gtk | |
Gtk.draw_resize_grip
(Style style, Window window, StateType state_type, WindowEdge edge, Number x, Number y, Number width, Number height)
:
none
Draws a resize grip in the given rectangle on window using the given parameters.
Draws a resize grip in the given rectangle on window using the given parameters.
|
Gtk | |
Gtk.draw_shadow
(Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height)
:
none
Draws a shadow around the given rectangle in window using the given style and state and shadow type.
Draws a shadow around the given rectangle in window using the given style and state and shadow type.
|
Gtk | |
Gtk.draw_shadow_gap
(Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height, PositionType gap_side, Number gap_x, Number gap_width)
:
none
Draws a shadow around the given rectangle in window using the given style and state and shadow type, leaving a gap in one side.
Draws a shadow around the given rectangle in window using the given style and state and shadow type, leaving a gap in one side.
|
Gtk | |
Gtk.draw_slider
(Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height, Orientation orientation)
:
none
Draws a slider in the given rectangle on window using the given style and orientation.
Draws a slider in the given rectangle on window using the given style and orientation.
|
Gtk | |
Gtk.draw_string
(Style style, Window window, StateType state_type, Number x, Number y, String string)
:
none
Draws a text string on window with the given parameters.
Draws a text string on window with the given parameters.
|
Gtk | |
Gtk.draw_tab
(Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height)
:
none
Draws an option menu tab (i.e.
Draws an option menu tab (i.e. the up and down pointing arrows) in the given rectangle on window using the given parameters.
|
Gtk | |
Gtk.draw_vline
(Style style, Window window, StateType state_type, Number y1_, Number y2_, Number x)
:
none
Draws a vertical line from (x, y1_) to (x, y2_) in window using the given style and state.
Draws a vertical line from (x, y1_) to (x, y2_) in window using the given style and state.
|
Gtk | |
Gtk.events_pending
()
:
Boolean
|
Gtk | |
Gtk.exit
(Number error_code)
:
none
|
Gtk | |
Gtk.false
()
:
Boolean
|
Gtk | |
|
Gtk | |
Gtk.gc_release
(GC gc)
:
none
|
Gtk | |
Gtk.get_current_event
()
:
Gdk.Event
Obtains a copy of the event currently being processed by GTK+.
Obtains a copy of the event currently being processed by GTK+. For example, if you get a "clicked" signal from GtkButton, the current event will be the GdkEventButton that triggered the "clicked" signal. The returned event must be freed with gdk_event_free(). If there is no current event, the function returns NULL.
|
Gtk | |
If there is a current event and it has a state field, place that state field in state and return TRUE, otherwise return FALSE.
If there is a current event and it has a state field, place that state field in state and return TRUE, otherwise return FALSE.
|
Gtk | |
Gtk.get_current_event_time
()
:
Number
If there is a current event and it has a timestamp, return that timestamp, otherwise return GDK_CURRENT_TIME.
If there is a current event and it has a timestamp, return that timestamp, otherwise return GDK_CURRENT_TIME.
|
Gtk | |
Gtk.get_default_language
()
:
Pango.Language
Returns the PangoLanguage for the default language currently in effect.
Returns the PangoLanguage for the default language currently in effect. (Note that this can change over the life of an application.) The default language is derived from the current locale. It determines, for example, whether GTK+ uses the right-to-left or left-to-right text direction. This function is equivalent to pango_language_get_default(). See that function for details. freed
|
Gtk | |
If event is NULL or the event was not associated with any widget, returns NULL, otherwise returns the widget that received the event originally.
If event is NULL or the event was not associated with any widget, returns NULL, otherwise returns the widget that received the event originally.
|
Gtk | |
Returns a GOptionGroup for the commandline arguments recognized by GTK+ and GDK.
Returns a GOptionGroup for the commandline arguments recognized by GTK+ and GDK. You should add this group to your GOptionContext with g_option_context_add_group(), if you are using g_option_context_parse() to parse your commandline arguments. by GTK+
|
Gtk | |
Gtk.grab_add
(Widget widget)
:
none
|
Gtk | |
Gtk.grab_get_current
()
:
Gtk.Widget
|
Gtk | |
Gtk.grab_remove
(Widget widget)
:
none
|
Gtk | |
Looks up the icon size associated with name.
Looks up the icon size associated with name.
|
Gtk | |
Gtk | ||
Obtains the pixel size of a semantic icon size, possibly modified by user preferences for the default GtkSettings.
Obtains the pixel size of a semantic icon size, possibly modified by user preferences for the default GtkSettings. (See gtk_icon_size_lookup_for_settings().) Normally size would be GTK_ICON_SIZE_MENU, GTK_ICON_SIZE_BUTTON, etc. This function isn't normally needed, gtk_widget_render_icon() is the usual way to get an icon for rendering, then just look at the size of the rendered pixbuf. The rendered pixbuf may not even correspond to the width/height returned by gtk_icon_size_lookup(), because themes are free to render the pixbuf however they like, including changing the usual size.
|
Gtk | |
Obtains the pixel size of a semantic icon size, possibly modified by user preferences for a particular GtkSettings.
Obtains the pixel size of a semantic icon size, possibly modified by user preferences for a particular GtkSettings. Normally size would be GTK_ICON_SIZE_MENU, GTK_ICON_SIZE_BUTTON, etc. This function isn't normally needed, gtk_widget_render_icon() is the usual way to get an icon for rendering, then just look at the size of the rendered pixbuf. The rendered pixbuf may not even correspond to the width/height returned by gtk_icon_size_lookup(), because themes are free to render the pixbuf however they like, including changing the usual size.
|
Gtk | |
Registers a new icon size, along the same lines as GTK_ICON_SIZE_MENU, etc.
|
Gtk | |
Gtk | ||
Gtk | ||
Gtk | ||
Gtk | ||
Gtk.idle_remove
(Number idle_handler_id)
:
none
|
Gtk | |
Gtk.idle_remove_by_data
(void* data)
:
none
|
Gtk | |
Call this function before using any other GTK+ functions in your GUI applications.
Call this function before using any other GTK+ functions in your GUI applications. It will initialize everything needed to operate the toolkit and parses some standard command line options. argc and never see those standard arguments. Note that there are some alternative ways to initialize GTK+: if you are calling gtk_parse_args(), gtk_init_check(), gtk_init_with_args() or g_option_context_parse() with the option group returned by gtk_get_option_group(), you
|
Gtk | |
Gtk | ||
This function does the same work as gtk_init() with only initialized.
This function does the same work as gtk_init() with only initialized. Instead it returns FALSE on failure. This way the application can fall back to some other means of communication with the user - for example a curses or command line interface. FALSE otherwise.
|
Gtk | |
Gtk.init_with_args
(Object out_values, String argv, String parameter_string, OptionEntry entries, String translation_domain)
:
Boolean
This function does the same work as gtk_init_check().
This function does the same work as gtk_init_check(). Additionally, it allows you to add your own commandline options, and it automatically generates nicely formatted output. Note that your program will be terminated after writing out the help output. FALSE otherwise.
|
Gtk | |
Gtk.input_add_full
(Number source, InputCondition condition, Function function, Function marshal, void* data, Function destroy)
:
Number
|
Gtk | |
Gtk.input_remove
(Number input_handler_id)
:
none
|
Gtk | |
Gtk | ||
Gtk.key_snooper_remove
(Number snooper_handler_id)
:
none
|
Gtk | |
Gtk.main
()
:
none
|
Gtk | |
Gtk.main_do_event
(Event event)
:
none
|
Gtk | |
Gtk.main_iteration
()
:
Boolean
|
Gtk | |
Gtk | ||
Gtk.main_level
()
:
Number
|
Gtk | |
Gtk.main_quit
()
:
none
|
Gtk | |
Gtk.paint_arrow
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, ArrowType arrow_type, Boolean fill, Number x, Number y, Number width, Number height)
:
none
Draws an arrow in the given rectangle on window using the given parameters.
Draws an arrow in the given rectangle on window using the given parameters. arrow_type determines the direction of the arrow.
|
Gtk | |
Gtk.paint_box
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a box on window with the given parameters.
Draws a box on window with the given parameters.
|
Gtk | |
Gtk.paint_box_gap
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height, PositionType gap_side, Number gap_x, Number gap_width)
:
none
Draws a box in window using the given style and state and shadow type, leaving a gap in one side.
Draws a box in window using the given style and state and shadow type, leaving a gap in one side.
|
Gtk | |
Gtk.paint_check
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a check button indicator in the given rectangle on window with the given parameters.
Draws a check button indicator in the given rectangle on window with the given parameters.
|
Gtk | |
Gtk.paint_diamond
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a diamond in the given rectangle on window using the given parameters.
Draws a diamond in the given rectangle on window using the given parameters.
|
Gtk | |
Gtk.paint_expander
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number x, Number y, ExpanderStyle expander_style)
:
none
Draws an expander as used in GtkTreeView.
Draws an expander as used in GtkTreeView. x and y specify the center the expander. The size of the expander is determined by the "expander-size" style property of widget. (If widget is not specified or doesn't have an "expander-size" property, an unspecified default size will be used, since the caller doesn't have sufficient information to position the expander, this is likely not useful.) The expander is expander_size pixels tall in the collapsed position and expander_size pixels wide in the expanded position.
|
Gtk | |
Gtk.paint_extension
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height, PositionType gap_side)
:
none
Draws an extension, i.e.
Draws an extension, i.e. a notebook tab.
|
Gtk | |
Gtk.paint_flat_box
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a flat box on window with the given parameters.
Draws a flat box on window with the given parameters.
|
Gtk | |
Gtk.paint_focus
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a focus indicator around the given rectangle on window using the given style.
Draws a focus indicator around the given rectangle on window using the given style.
|
Gtk | |
Gtk.paint_handle
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height, Orientation orientation)
:
none
Draws a handle as used in GtkHandleBox and GtkPaned.
Draws a handle as used in GtkHandleBox and GtkPaned.
|
Gtk | |
Gtk.paint_hline
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number x1, Number x2, Number y)
:
none
Draws a horizontal line from (x1, y) to (x2, y) in window using the given style and state.
Draws a horizontal line from (x1, y) to (x2, y) in window using the given style and state.
|
Gtk | |
Gtk.paint_layout
(Style style, Window window, StateType state_type, Boolean use_text, Rectangle area, Widget widget, String detail, Number x, Number y, Layout layout)
:
none
Draws a layout on window using the given parameters.
Draws a layout on window using the given parameters.
|
Gtk | |
Gtk.paint_option
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a radio button indicator in the given rectangle on window with the given parameters.
Draws a radio button indicator in the given rectangle on window with the given parameters.
|
Gtk | |
Gtk.paint_polygon
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Point points, Number n_points, Boolean fill)
:
none
Draws a polygon on window with the given parameters.
Draws a polygon on window with the given parameters.
|
Gtk | |
Gtk.paint_resize_grip
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, WindowEdge edge, Number x, Number y, Number width, Number height)
:
none
Draws a resize grip in the given rectangle on window using the given parameters.
Draws a resize grip in the given rectangle on window using the given parameters.
|
Gtk | |
Gtk.paint_shadow
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a shadow around the given rectangle in window using the given style and state and shadow type.
Draws a shadow around the given rectangle in window using the given style and state and shadow type.
|
Gtk | |
Gtk.paint_shadow_gap
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height, PositionType gap_side, Number gap_x, Number gap_width)
:
none
Draws a shadow around the given rectangle in window using the given style and state and shadow type, leaving a gap in one side.
Draws a shadow around the given rectangle in window using the given style and state and shadow type, leaving a gap in one side.
|
Gtk | |
Gtk.paint_slider
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height, Orientation orientation)
:
none
Draws a slider in the given rectangle on window using the given style and orientation.
Draws a slider in the given rectangle on window using the given style and orientation.
|
Gtk | |
Gtk.paint_spinner
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number step, Number x, Number y, Number width, Number height)
:
none
Draws a spinner on window using the given parameters.
Draws a spinner on window using the given parameters.
|
Gtk | |
Gtk.paint_string
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number x, Number y, String string)
:
none
Draws a text string on window with the given parameters.
Draws a text string on window with the given parameters.
|
Gtk | |
Gtk.paint_tab
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws an option menu tab (i.e.
Draws an option menu tab (i.e. the up and down pointing arrows) in the given rectangle on window using the given parameters.
|
Gtk | |
Gtk.paint_vline
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number y1_, Number y2_, Number x)
:
none
Draws a vertical line from (x, y1_) to (x, y2_) in window using the given style and state.
Draws a vertical line from (x, y1_) to (x, y2_) in window using the given style and state.
|
Gtk | |
Gtk.paper_size_get_default
()
:
String
Returns the name of the default paper size, which depends on the current locale.
Returns the name of the default paper size, which depends on the current locale. is owned by GTK+ and should not be modified.
|
Gtk | |
Gtk | ||
Parses command line arguments, and initializes global attributes of GTK+, but does not actually open a connection to a display.
Parses command line arguments, and initializes global attributes of GTK+, but does not actually open a connection to a display. (See gdk_display_open(), gdk_get_display_arg_name()) Any arguments used by GTK+ or GDK are removed from the array and You shouldn't call this function explicitely if you are using gtk_init(), or gtk_init_check().
|
Gtk | |
Gtk.print_run_page_setup_dialog
(Window parent, PageSetup page_setup, PrintSettings settings)
:
Gtk.PageSetup
Runs a page setup dialog, letting the user modify the values from is identical to the passed in page_setup, otherwise it contains the modifications done in the dialog.
Runs a page setup dialog, letting the user modify the values from is identical to the passed in page_setup, otherwise it contains the modifications done in the dialog. Note that this function may use a recursive mainloop to show the page setup dialog. See gtk_print_run_page_setup_dialog_async() if this is a problem.
|
Gtk | |
Gtk.print_run_page_setup_dialog_async
(Window parent, PageSetup page_setup, PrintSettings settings, Function done_cb, void* data)
:
none
Runs a page setup dialog, letting the user modify the values from page_setup.
Runs a page setup dialog, letting the user modify the values from page_setup. In contrast to gtk_print_run_page_setup_dialog(), this function returns after showing the page setup dialog on platforms that support this, and calls done_cb from a signal handler for the ::response signal of the dialog.
|
Gtk | |
Sends an event to a widget, propagating the event to parent widgets if the event remains unhandled.
Sends an event to a widget, propagating the event to parent widgets if the event remains unhandled. Events received by GTK+ from GDK normally begin in gtk_main_do_event(). Depending on the type of event, existence of modal dialogs, grabs, etc., the event may be propagated; if so, this function is used. gtk_propagate_event() calls gtk_widget_event() on each widget it decides to send the event to. So gtk_widget_event() is the lowest-level function; it simply emits the "event" and possibly an event-specific signal on a widget. gtk_propagate_event() is a bit higher-level, and gtk_main_do_event() is the highest level. All that said, you most likely don't want to use any of these functions; synthesizing events is rarely needed. Consider asking on the mailing list for better ways to achieve your goals. For example, use gdk_window_invalidate_rect() or gtk_widget_queue_draw() instead of making up expose events.
|
Gtk | |
Gtk | ||
|
Gtk | |
Gtk | ||
Gtk.quit_remove
(Number quit_handler_id)
:
none
|
Gtk | |
Gtk.quit_remove_by_data
(void* data)
:
none
|
Gtk | |
|
Gtk | |
Gtk.rc_add_default_file
(String filename)
:
none
Adds a file to the list of files to be parsed at the end of gtk_init().
Adds a file to the list of files to be parsed at the end of gtk_init().
|
Gtk | |
|
Gtk | |
|
Gtk | |
Gtk | ||
Looks up a file in pixmap path for the specified GtkSettings.
Looks up a file in pixmap path for the specified GtkSettings. If the file is not found, it outputs a warning message using g_warning() and returns NULL.
|
Gtk | |
Gtk.rc_get_default_files
()
:
Array
Retrieves the current list of RC files that will be parsed at the end of gtk_init().
Retrieves the current list of RC files that will be parsed at the end of gtk_init(). is owned by GTK+ and must not be freed by the application. If you want to store this information, you should make a copy.
|
Gtk | |
Gtk.rc_get_im_module_file
()
:
String
Obtains the path to the IM modules file.
Obtains the path to the IM modules file. See the documentation of the
|
Gtk | |
Gtk.rc_get_im_module_path
()
:
String
Obtains the path in which to look for IM modules.
Obtains the path in which to look for IM modules. See the documentation of the
|
Gtk | |
Gtk.rc_get_module_dir
()
:
String
Returns a directory in which GTK+ looks for theme engines.
Returns a directory in which GTK+ looks for theme engines. For full information about the search for theme engines, see the docs for
|
Gtk | |
Finds all matching RC styles for a given widget, composites them together, and then creates a GtkStyle representing the composite appearance.
Finds all matching RC styles for a given widget, composites them together, and then creates a GtkStyle representing the composite appearance. (GTK+ actually keeps a cache of previously created styles, so a new style may not be created.) to the returned style, so if you want to save this style around, you should add a reference yourself.
|
Gtk | |
Gtk.rc_get_style_by_paths
(Settings settings, String widget_path, String class_path, Number type)
:
Gtk.Style
Creates up a GtkStyle from styles defined in a RC file by providing the raw components used in matching.
Creates up a GtkStyle from styles defined in a RC file by providing the raw components used in matching. This function may be useful when creating pseudo-widgets that should be themed like widgets but don't actually have corresponding GTK+ widgets. An example of this would be items inside a GNOME canvas widget. The action of gtk_rc_get_style() is similar to: |[ gtk_widget_path (widget, NULL, &path, NULL); gtk_widget_class_path (widget, NULL, &class_path, NULL); gtk_rc_get_style_by_paths (gtk_widget_get_settings (widget), path, class_path, G_OBJECT_TYPE (widget)); ]| or NULL if nothing matching was specified and the default style should be used. The returned value is owned by GTK+ as part of an internal cache, so you must call g_object_ref() on the returned value if you want to keep a reference to it.
|
Gtk | |
Gtk.rc_get_theme_dir
()
:
String
|
Gtk | |
Gtk.rc_parse
(String filename)
:
none
|
Gtk | |
Parses a color in the format expected in a RC file.
Parses a color in the format expected in a RC file. Note that theme engines should use gtk_rc_parse_color_full() in order to support symbolic colors. that was expected but not found
|
Gtk | |
Parses a color in the format expected in a RC file.
Parses a color in the format expected in a RC file. If style is not NULL, it will be consulted to resolve references to symbolic colors. that was expected but not found
|
Gtk | |
|
Gtk | |
|
Gtk | |
Gtk.rc_parse_string
(String rc_string)
:
none
|
Gtk | |
A GtkRcPropertyParser for use with gtk_settings_install_property_parser() or gtk_widget_class_install_style_property_parser() which parses borders in the form
A GtkRcPropertyParser for use with gtk_settings_install_property_parser() or gtk_widget_class_install_style_property_parser() which parses borders in the form
|
Gtk | |
A GtkRcPropertyParser for use with gtk_settings_install_property_parser() or gtk_widget_class_install_style_property_parser() which parses a color given either by its name or in the form
A GtkRcPropertyParser for use with gtk_settings_install_property_parser() or gtk_widget_class_install_style_property_parser() which parses a color given either by its name or in the form
|
Gtk | |
A GtkRcPropertyParser for use with gtk_settings_install_property_parser() or gtk_widget_class_install_style_property_parser() which parses a single enumeration value.
A GtkRcPropertyParser for use with gtk_settings_install_property_parser() or gtk_widget_class_install_style_property_parser() which parses a single enumeration value. The enumeration value can be specified by its name, its nickname or its numeric value. For consistency with flags parsing, the value may be surrounded by parentheses. has been set to the resulting GEnumValue.
|
Gtk | |
A GtkRcPropertyParser for use with gtk_settings_install_property_parser() or gtk_widget_class_install_style_property_parser() which parses flags.
A GtkRcPropertyParser for use with gtk_settings_install_property_parser() or gtk_widget_class_install_style_property_parser() which parses flags. Flags can be specified by their name, their nickname or numerically. Multiple flags can be specified in the form
|
Gtk | |
A GtkRcPropertyParser for use with gtk_settings_install_property_parser() or gtk_widget_class_install_style_property_parser() which parses a requisition in the form
A GtkRcPropertyParser for use with gtk_settings_install_property_parser() or gtk_widget_class_install_style_property_parser() which parses a requisition in the form
|
Gtk | |
Gtk.rc_reparse_all
()
:
Boolean
If the modification time on any previously read file for the default GtkSettings has changed, discard all style information and then reread all previously read RC files.
If the modification time on any previously read file for the default GtkSettings has changed, discard all style information and then reread all previously read RC files.
|
Gtk | |
If the modification time on any previously read file for the given GtkSettings has changed, discard all style information and then reread all previously read RC files.
If the modification time on any previously read file for the given GtkSettings has changed, discard all style information and then reread all previously read RC files.
|
Gtk | |
Gtk.rc_reset_styles
(Settings settings)
:
none
This function recomputes the styles for all widgets that use a particular GtkSettings object.
This function recomputes the styles for all widgets that use a particular GtkSettings object. (There is one GtkSettings object per GdkScreen, see gtk_settings_get_for_screen()); It is useful when some global parameter has changed that affects the appearance of all widgets, because when a widget gets a new style, it will both redraw and recompute any cached information about its appearance. As an example, it is used when the default font size set by the operating system changes. Note that this function doesn't affect widgets that have a style set explicitely on them with gtk_widget_set_style().
|
Gtk | |
Gtk.rc_scanner_new
()
:
GLib.Scanner
|
Gtk | |
Gtk.rc_set_default_files
(Array filenames)
:
none
Sets the list of files that GTK+ will read at the end of gtk_init().
Sets the list of files that GTK+ will read at the end of gtk_init().
|
Gtk | |
Converts a color from RGB space to HSV.
|
Gtk | |
Appends a specified target to the list of supported targets for a given widget and selection.
Appends a specified target to the list of supported targets for a given widget and selection.
|
Gtk | |
Gtk.selection_add_targets
(Widget widget, Atom selection, TargetEntry targets, Number ntargets)
:
none
Prepends a table of targets to the list of supported targets for a given widget and selection.
Prepends a table of targets to the list of supported targets for a given widget and selection.
|
Gtk | |
The default handler for the GtkWidget::selection-clear-event signal.
The default handler for the GtkWidget::selection-clear-event signal. your selection-clear-event handler. Calling this function from any other context is illegal.
|
Gtk | |
Remove all targets registered for the given selection for the widget.
Remove all targets registered for the given selection for the widget.
|
Gtk | |
Requests the contents of a selection.
Requests the contents of a selection. When received, a "selection-received" signal will be generated. request. (e.g., there was already a request in process for this widget).
|
Gtk | |
Claims ownership of a given selection for a particular widget, or, if widget is NULL, release ownership of the selection.
Claims ownership of a given selection for a particular widget, or, if widget is NULL, release ownership of the selection.
|
Gtk | |
Gtk.selection_owner_set_for_display
(Display display, Widget widget, Atom selection, Number time_)
:
Boolean
Claim ownership of a given selection for a particular widget, or, if widget is NULL, release ownership of the selection.
Claim ownership of a given selection for a particular widget, or, if widget is NULL, release ownership of the selection.
|
Gtk | |
Gtk.selection_remove_all
(Widget widget)
:
none
Removes all handlers and unsets ownership of all selections for a widget.
Removes all handlers and unsets ownership of all selections for a widget. Called when widget is being destroyed. This function will not generally be called by applications.
|
Gtk | |
Gtk.set_locale
()
:
String
Initializes internationalization support for GTK+.
Initializes internationalization support for GTK+. gtk_init() automatically does this, so there is typically no point in calling this function. If you are calling this function because you changed the locale after GTK+ is was initialized, then calling this function may help a bit. (Note, however, that changing the locale after GTK+ is initialized may produce inconsistent results and is not really supported.) In detail - sets the current locale according to the program environment. This is the same as calling the C library function
|
Gtk | |
This is a convenience function for launching the default application to show the uri.
This is a convenience function for launching the default application to show the uri. The uri must be of a form understood by GIO. Typical examples are
|
Gtk | |
Gtk.signal_compat_matched
(Object object, Function func, void* data, SignalMatchType match, Number action)
:
none
|
Gtk | |
Gtk.signal_connect_full
(Object object, String name, Function func, Function unsupported, void* data, Function destroy_func, Number object_signal, Number after)
:
Number
|
Gtk | |
Gtk.signal_connect_object_while_alive
(Object object, String name, Function func, Object alive_object)
:
none
|
Gtk | |
Gtk.signal_connect_while_alive
(Object object, String name, Function func, void* func_data, Object alive_object)
:
none
|
Gtk | |
|
Gtk | |
|
Gtk | |
|
Gtk | |
Gtk.signal_newv
(String name, SignalRunType signal_flags, Number object_type, Number function_offset, Function marshaller, Number return_val, Number n_args, Object out_values)
:
Number
|
Gtk | |
Registers each of the stock items in items.
Registers each of the stock items in items. If an item already exists with the same stock ID as one of the items, the old item gets replaced. The stock items are copied, so GTK+ does not hold any pointer into items and items can be freed. Use gtk_stock_add_static() if items is persistent and GTK+ need not copy the array.
|
Gtk | |
Same as gtk_stock_add(), but doesn't copy items, so
Same as gtk_stock_add(), but doesn't copy items, so
|
Gtk | |
Gtk.stock_list_ids
()
:
Array
Retrieves a list of all known stock IDs added to a GtkIconFactory or registered with gtk_stock_add().
Retrieves a list of all known stock IDs added to a GtkIconFactory or registered with gtk_stock_add(). The list must be freed with g_slist_free(), and each string in the list must be freed with g_free().
|
Gtk | |
Fills item with the registered values for stock_id, returning TRUE if stock_id was known.
Fills item with the registered values for stock_id, returning TRUE if stock_id was known.
|
Gtk | |
Sets a function to be used for translating the label of a stock item.
Sets a function to be used for translating the label of a stock item. If no function is registered for a translation domain, g_dgettext() is used. The function is used for all stock items whose to use strings different from the actual gettext translation domain of your application for this, as long as your GtkTranslateFunc uses the correct domain when calling dgettext(). This can be useful, e.g. when dealing with message contexts: |[ GtkStockItem items[] = { { MY_ITEM1, NC_("odd items", "Item 1"), 0, 0, "odd-item-domain" }, { MY_ITEM2, NC_("even items", "Item 2"), 0, 0, "even-item-domain" }, }; gchar * my_translate_func (const gchar *msgid, gpointer data) { gchar *msgctxt = data; return (gchar*)g_dpgettext2 (GETTEXT_PACKAGE, msgctxt, msgid); } /* ... */ gtk_stock_add (items, G_N_ELEMENTS (items)); gtk_stock_set_translate_func ("odd-item-domain", my_translate_func, "odd items"); gtk_stock_set_translate_func ("even-item-domain", my_translate_func, "even items"); ]|
|
Gtk | |
This function frees a target table as returned by gtk_target_table_new_from_list()
This function frees a target table as returned by gtk_target_table_new_from_list()
|
Gtk | |
This function creates an GtkTargetEntry array that contains the same targets as the passed list.
This function creates an GtkTargetEntry array that contains the same targets as the passed list. The returned table is newly allocated and should be freed using gtk_target_table_free() when no longer needed.
|
Gtk | |
Determines if any of the targets in targets can be used to provide a GdkPixbuf.
|
Gtk | |
Determines if any of the targets in targets can be used to provide rich text.
Determines if any of the targets in targets can be used to provide rich text. otherwise FALSE.
|
Gtk | |
Gtk | ||
Gtk | ||
|
Gtk | |
|
Gtk | |
|
Gtk | |
|
Gtk | |
Gtk | ||
Gtk.test_register_all_types
()
:
none
|
Gtk | |
|
Gtk | |
|
Gtk | |
|
Gtk | |
|
Gtk | |
|
Gtk | |
|
Gtk | |
|
Gtk | |
|
Gtk | |
Gtk | ||
Gtk | ||
Gtk.timeout_remove
(Number timeout_handler_id)
:
none
|
Gtk | |
Gtk.tree_get_row_drag_data
(SelectionData selection_data, TreeModel tree_model, TreePath path)
:
Boolean
Obtains a tree_model and path from selection data of target type GTK_TREE_MODEL_ROW.
Obtains a tree_model and path from selection data of target type GTK_TREE_MODEL_ROW. Normally called from a drag_data_received handler. This function can only be used if selection_data originates from the same process that's calling this function, because a pointer to the tree model is being passed around. If you aren't in the same process, then you'll get memory corruption. In the GtkTreeDragDest drag_data_received handler, you can assume that selection data of type GTK_TREE_MODEL_ROW is in from the current process. The returned path must be freed with gtk_tree_path_free(). is otherwise valid
|
Gtk | |
Lets a set of row reference created by gtk_tree_row_reference_new_proxy() know that the model emitted the "row_deleted" signal.
Lets a set of row reference created by gtk_tree_row_reference_new_proxy() know that the model emitted the "row_deleted" signal.
|
Gtk | |
Lets a set of row reference created by gtk_tree_row_reference_new_proxy() know that the model emitted the "row_inserted" signal.
Lets a set of row reference created by gtk_tree_row_reference_new_proxy() know that the model emitted the "row_inserted" signal.
|
Gtk | |
Lets a set of row reference created by gtk_tree_row_reference_new_proxy() know that the model emitted the "rows_reordered" signal.
Lets a set of row reference created by gtk_tree_row_reference_new_proxy() know that the model emitted the "rows_reordered" signal.
|
Gtk | |
Gtk.tree_set_row_drag_data
(SelectionData selection_data, TreeModel tree_model, TreePath path)
:
Boolean
Sets selection data of target type GTK_TREE_MODEL_ROW.
Sets selection data of target type GTK_TREE_MODEL_ROW. Normally used in a drag_data_get handler.
|
Gtk | |
Gtk.true
()
:
Boolean
|
Gtk | |
Gtk | ||
|
Gtk | |
|
Gtk | |
|
Gtk | |
|
Gtk | |
Gtk.type_init
(TypeDebugFlags debug_flags)
:
none
|
Gtk | |
Gtk | ||
|
Gtk |
None |