GObject.Object
Gtk.AccelMap
Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-3.0.gir |
C documentation: | GtkAccelMap |
Class : | AccelMap |
Extends: | GObject.Object |
None |
Method / Constructor | Defined By | |
---|---|---|
new Gtk.AccelMap
()
Create a new Gtk.AccelMap
Create a new Gtk.AccelMap
|
||
Registers a new accelerator with the global accelerator map.
Registers a new accelerator with the global accelerator map.
This function should only be called once per accel_path with the canonical accel_key and accel_mods for this path. To change the accelerator during runtime programatically, use gtk_accel_map_change_entry(). Note that accel_path string will be stored in a GQuark. Therefore, if you pass a static string, you can save some memory by interning it first with g_intern_static_string().
|
Gtk.AccelMap | |
Gtk.AccelMap.add_filter
(String filter_pattern)
:
none
Adds a filter to the global list of accel path filters.
Adds a filter to the global list of accel path filters.
Accel map entries whose accel path matches one of the filters are skipped by gtk_accel_map_foreach(). This function is intended for GTK+ modules that create their own menus, but don't want them to be saved into the applications accelerator map dump.
|
Gtk.AccelMap | |
Gtk.AccelMap.change_entry
(String accel_path, guint32 accel_key, ModifierType accel_mods, gboolean replace)
:
gboolean
Changes the accel_key and accel_mods currently associated with accel_path.
Changes the accel_key and accel_mods currently associated with accel_path.
Due to conflicts with other accelerators, a change may not always be possible, conflicts. A change will only occur if all conflicts could be resolved (which might not be the case if conflicting accelerators are locked). Successful changes are indicated by a TRUE return value. Note that accel_path string will be stored in a GQuark. Therefore, if you pass a static string, you can save some memory by interning it first with g_intern_static_string().
|
Gtk.AccelMap | |
Loops over the entries in the accelerator map whose accel path
doesn't match any of the filters added with gtk_accel_map_add_filter(), and execute foreach_func on each.
Loops over the entries in the accelerator map whose accel path
doesn't match any of the filters added with gtk_accel_map_add_filter(), and execute foreach_func on each. The signature of foreach_func is that of GtkAccelMapForeach, the changed parameter indicates whether this accelerator was changed during runtime (thus, would need saving during an accelerator map dump).
|
Gtk.AccelMap | |
Loops over all entries in the accelerator map, and execute
GtkAccelMapForeach, the changed parameter indicates whether this accelerator was changed during runtime (thus, would need saving during an accelerator map dump).
Loops over all entries in the accelerator map, and execute
GtkAccelMapForeach, the changed parameter indicates whether this accelerator was changed during runtime (thus, would need saving during an accelerator map dump).
|
Gtk.AccelMap | |
Gtk.AccelMap.get
()
:
Gtk.AccelMap
Gets the singleton global GtkAccelMap object.
Gets the singleton global GtkAccelMap object. This object
is useful only for notification of changes to the accelerator map via the ::changed signal; it isn't a parameter to the other accelerator map functions.
|
Gtk.AccelMap | |
Gtk.AccelMap.load
(String file_name)
:
none
Parses a file previously saved with gtk_accel_map_save() for
accelerator specifications, and propagates them accordingly.
Parses a file previously saved with gtk_accel_map_save() for
accelerator specifications, and propagates them accordingly.
|
Gtk.AccelMap | |
Gtk.AccelMap.load_fd
(gint32 fd)
:
none
Filedescriptor variant of gtk_accel_map_load().
Filedescriptor variant of gtk_accel_map_load().
Note that the file descriptor will not be closed by this function.
|
Gtk.AccelMap | |
Gtk.AccelMap.load_scanner
(Scanner scanner)
:
none
GScanner variant of gtk_accel_map_load().
GScanner variant of gtk_accel_map_load().
|
Gtk.AccelMap | |
Gtk.AccelMap.lock_path
(String accel_path)
:
none
Locks the given accelerator path.
Locks the given accelerator path. If the accelerator map doesn't yet contain
an entry for accel_path, a new one is created. Locking an accelerator path prevents its accelerator from being changed during runtime. A locked accelerator path can be unlocked by gtk_accel_map_unlock_path(). Refer to gtk_accel_map_change_entry() for information about runtime accelerator changes. If called more than once, accel_path remains locked until gtk_accel_map_unlock_path() has been called an equivalent number of times. Note that locking of individual accelerator paths is independent from locking the GtkAccelGroup containing them. For runtime accelerator changes to be possible both the accelerator path and its GtkAccelGroup have to be unlocked.
|
Gtk.AccelMap | |
Looks up the accelerator entry for accel_path and fills in key.
Looks up the accelerator entry for accel_path and fills in key.
|
Gtk.AccelMap | |
Gtk.AccelMap.save
(String file_name)
:
none
Saves current accelerator specifications (accelerator path, key
and modifiers) to file_name.
Saves current accelerator specifications (accelerator path, key
and modifiers) to file_name. The file is written in a format suitable to be read back in by gtk_accel_map_load().
|
Gtk.AccelMap | |
Gtk.AccelMap.save_fd
(gint32 fd)
:
none
Filedescriptor variant of gtk_accel_map_save().
Filedescriptor variant of gtk_accel_map_save().
Note that the file descriptor will not be closed by this function.
|
Gtk.AccelMap | |
Gtk.AccelMap.unlock_path
(String accel_path)
:
none
Undoes the last call to gtk_accel_map_lock_path() on this accel_path.
Undoes the last call to gtk_accel_map_lock_path() on this accel_path.
Refer to gtk_accel_map_lock_path() for information about accelerator path locking.
|
Gtk.AccelMap |
None |