summaryrefslogtreecommitdiff
path: root/gtk/gtkaccelgroup.h
Commit message (Collapse)AuthorAgeFilesLines
* Replace "gchar" with "char"Benjamin Otte2020-07-251-6/+6
|
* Drop gtk_accelerator_set_default_mod_maskMatthias Clasen2020-04-061-4/+2
| | | | | | | Our new approach to modifiers works with a fixed set, there is really no need to customize the modifier masks if the backends are all supposed to deliver the same modifiers.
* accels: Remove GtkAccelGroupBenjamin Otte2020-03-251-158/+0
|
* accel: Add display arg to gtk_accelerator_parse_with_keycode()Benjamin Otte2020-03-251-0/+1
| | | | It was using the default display unconditionally.
* accelerators: Make gtk_accelerator_parse() return TRUE/FALSEBenjamin Otte2020-03-251-2/+2
| | | | A parse function should return success or not. So do that.
* accelgroup: Remove unneeded APIsBenjamin Otte2020-03-251-9/+0
| | | | After the removal of GtkAccelMap, these things are no longer necessary.
* gtk: Remove GtkAccelMapEmmanuele Bassi2020-03-251-4/+0
| | | | | Now that accel paths are gone, the object managing them isn't needed anymore either.
* Revert "Merge branch 'disable-window-test' into 'master'"Matthias Clasen2020-03-191-3/+173
| | | | | This reverts commit 3ac4c76b18cc89a841ce09f0943539f16988fd21, reversing changes made to 6ec96d2e989d029a303b8b20ec72b86f974c0e87.
* accels: Remove GtkAccelGroupBenjamin Otte2020-03-181-158/+0
|
* accel: Add display arg to gtk_accelerator_parse_with_keycode()Benjamin Otte2020-03-181-0/+1
| | | | It was using the default display unconditionally.
* accelerators: Make gtk_accelerator_parse() return TRUE/FALSEBenjamin Otte2020-03-181-2/+2
| | | | A parse function should return success or not. So do that.
* accelgroup: Remove unneeded APIsBenjamin Otte2020-03-181-9/+0
| | | | After the removal of GtkAccelMap, these things are no longer necessary.
* gtk: Remove GtkAccelMapEmmanuele Bassi2020-03-181-4/+0
| | | | | Now that accel paths are gone, the object managing them isn't needed anymore either.
* The big versioning cleanupMatthias Clasen2018-02-061-5/+3
| | | | | | | Remove all the old 2.x and 3.x version annotations. GTK+ 4 is a new start, and from the perspective of a GTK+ 4 developer all these APIs have been around since the beginning.
* Remove introspection scanner guards around autocleanupsEmmanuele Bassi2015-11-111-2/+0
| | | | They are not needed.
* Start recursively moving autocleanups macros to their headersEmmanuele Bassi2015-11-101-0/+4
| | | | | | | | | | | | | | | | | | * Cover letter Having a single header file for all autocleanups definitions was a reasonable stop-gap measure, but now GTK+ is starting to use G_DECLARE_* macros. This means that every class using a G_DECLARE_* macro will need to include "gtk.h" to avoid compiler warnings, which is not acceptable. By moving the G_DEFINE_AUTO* use to the header that defines the type we allow using the G_DECLARE_* macros without sacrificing the ability to include only the needed files when deriving from a class. * Commit This commit changes all includes relative to GtkWindow to define their own autocleanup macros.
* Make GtkAccelGroupEntry public againJasper St. Pierre2014-04-051-0/+7
| | | | | Even though it was marked as internal, it seems gnome-terminal was poking into the structure. It's unfortunately part of our ABI.
* Clean up private headersMatthias Clasen2014-04-051-15/+0
| | | | | This commit adds a few missing private headers, and cleans up some irregularities in the existing ones
* docs: fully break lines in examplesWilliam Jon McCann2014-02-121-2/+2
| | | | | | | | | Try to do a better job of keeping example content from being too wide. It is often rendered as <pre> text so the only time we can wrap it is in the source. It is best to full break lines at all punctuation and to try to keep the width under 70 chars or so.
* docs: add docs for GtkAccelFlagsWilliam Jon McCann2014-01-211-0/+8
|
* docs: add missing docs for GtkAccelKeyWilliam Jon McCann2014-01-211-0/+6
|
* docs: add Gtk*Class docsWilliam Jon McCann2014-01-201-1/+11
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=81006
* Add annotations to gtk headersMatthias Clasen2013-05-051-0/+22
| | | | Add annotations to all exported functions in GTK+ headers.
* Move single-include guards inside include guardsMatthias Clasen2012-12-281-4/+4
| | | | | | gcc has optimizations for include guards that only work if they are outermost in the the header. https://bugzilla.gnome.org/show_bug.cgi?id=689810
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* gtk: Use versioned deprecationsMatthias Clasen2012-02-271-0/+3
| | | | | | | This patch changes all uses of GDK_DEPRECATED(_FOR) in gtk headers by the versioned variants, GDK_DEPRECATED_IN_3_x(_FOR). At the same time, we add GDK_AVAILABLE_IN_3_x annotations for all API additions in 3.2 and 3.4.
* gtk: Add accel with keycode parsing functionsBastien Nocera2011-11-041-0/+12
| | | | | | | | | Which handle accelerators with keycodes as well as keyvals, so we can use it in applications that use GtkCellRendererAccel's "Other" mode of operations (namely gnome-control-center and gnome-settings-daemon). https://bugzilla.gnome.org/show_bug.cgi?id=662755
* [GI] Mark callbacks' context parameter with (closure) annotation.Pavel Holejsovsky2011-01-181-1/+1
|
* Make gtk_accelerator_get_default_mod_mask() return a GdkModifierTypeAlberto Garcia2010-10-151-1/+2
| | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=313350
* Add and use internal accessor for accelerables in GtkAccelGroupChristian Dywan2010-05-031-0/+1
|
* Move GSEAL'd members of GtkAccelGroup into private structCody Russell2010-05-031-11/+7
|
* Remove all traces of GDK_PIXBUF/GTK_DISABLE_SINGLE_INCLUDESMichael Natterer2010-05-031-1/+1
| | | | ...and disallow inclusion of individual files unconditionally.
* Remove deprecated GtkAccelGroup functionsJavier Jardón2010-05-031-18/+0
|
* Move documentation from templates to inline comments: GtkAccelGroupJavier Jardón2009-10-151-0/+26
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=597865
* Revert name changeCody Russell2008-07-011-1/+1
| | | | svn path=/trunk/; revision=20724
* Practically everything changed.Cody Russell2008-06-301-1/+1
| | | | | | | | | | | | | 2008-06-30 Cody Russell <bratsche@gnome.org> * Practically everything changed. Change all references of GIMP Toolkit (and variations of it) to GTK+ Toolkit, showing no mercy at all to our beloved ancestry. (#540529) svn path=/trunk/; revision=20709
* fix some formatting and whitespace in the code merged from the GSEALMichael Natterer2008-06-201-2/+3
| | | | | | | | | | 2008-06-20 Michael Natterer <mitch@imendio.com> * gtk/gtkaccelgroup.[ch]: fix some formatting and whitespace in the code merged from the GSEAL branch. svn path=/trunk/; revision=20638
* Seal GtkAccelGroup - fixed some issues with the initial attempt thanks to ↵Tim Janik2008-06-201-6/+1
| | | | | | comments from Tim svn path=/trunk/; revision=20535
* Sealed GtkAccelGroup and addedTim Janik2008-06-201-5/+13
| | | | | | | | * gtk/gtkaccelgroup.[ch]: Added GObject properties for lock_count, modifier_mask, acceleratables, n_accels and priv_accels. Added seal macro for public struct members which should be private. svn path=/trunk/; revision=20482
* whitespace cleanup: remove trailing whitespace and excess newlines andMichael Natterer2008-05-281-1/+1
| | | | | | | | | | | 2008-05-28 Michael Natterer <mitch@imendio.com> * gtk/gtk*.h: whitespace cleanup: remove trailing whitespace and excess newlines and sprinkled some newlines where needed. Zero code or formatting changes included. svn path=/trunk/; revision=20225
* define __GTK_H_INSIDE__ around including all other headers.Michael Natterer2008-05-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-05-28 Michael Natterer <mitch@imendio.com> * gtk/gtk.h: define __GTK_H_INSIDE__ around including all other headers. * gtk/gtktypebuiltins.h.template * gtk/gtkversion.h.in * gtk/gtk*.h: add single-include guards that #error out if GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is included individually. * gtk/gtkprintbackend.h * gtk/gtkprinter-private.h * gtk/gtktextlayout.h * gtk/gtktexttagprivate.h * gtk/gtktexttypes.h * gtk/gtktreedatalist.h: include <gtk/gtk.h> instead of individual headers in these private or semi-private headers. * gtk/gtkimmodule.h: also here because it's not in gtk.h. * gtk/gtkpagesetupunixdialog.h * gtk/gtkprinter.h * gtk/gtkprintjob.h * gtk/gtkprintunixdialog.h: likewise in the gtkunixprint headers. * gtk/gtkclist.h * gtk/gtkcombo.h * gtk/gtkctree.h * gtk/gtkfilesel.h * gtk/gtkitemfactory.h * gtk/gtklist.h * gtk/gtklistitem.h * gtk/gtkoldeditable.h * gtk/gtkoptionmenu.h * gtk/gtkpixmap.h * gtk/gtkpreview.h * gtk/gtksignal.h * gtk/gtktipsquery.h: whenever possible, include only <gtk/gtk.h> instead of individual headers in these deprecated headers. They don't get included at all when GTK_DISABLE_DEPRECATED is defined, so if an app needs them anyway, it must undef GTK_DISABLE_DEPRECATED and include them individually, which should continue to work. * gtk/gtkclist.c: include "gtkctree.h" because of the change above. svn path=/trunk/; revision=20221
* Mark as const.Matthias Clasen2004-11-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-11-23 Matthias Clasen <mclasen@redhat.com> * gtk/gtkuimanager.h (gtk_ui_manager_get_type): * gtk/gtktreeview.h (gtk_tree_view_get_type): * gtk/gtktreeviewcolumn.h (gtk_tree_view_column_get_type): * gtk/gtktreestore.h (gtk_tree_store_get_type): * gtk/gtktreeselection.h (gtk_tree_selection_get_type): * gtk/gtktreemodelfilter.h (gtk_tree_model_filter_get_type): * gtk/gtktreemodel.h (gtk_tree_iter_get_type): (gtk_tree_path_get_type): (gtk_tree_row_reference_get_type): * gtk/gtktoolitem.h (gtk_tool_item_get_type): * gtk/gtktoolbutton.h (gtk_tool_button_get_type): * gtk/gtktoggleaction.h (gtk_toggle_action_get_type): * gtk/gtkthemes.h (gtk_theme_engine_get_type): * gtk/gtktextiter.h (gtk_text_iter_get_type): * gtk/gtksettings.h (gtk_settings_get_type): * gtk/gtkselection.h (gtk_selection_data_get_type): * gtk/gtkradioaction.h (gtk_radio_action_get_type): * gtk/gtkmenutoolbutton.h (gtk_menu_tool_button_get_type): * gtk/gtkliststore.h (gtk_list_store_get_type): * gtk/gtkiconview.h (gtk_icon_view_get_type): * gtk/gtkicontheme.h (gtk_icon_info_get_type): * gtk/gtkiconfactory.h (gtk_icon_factory_get_type): (gtk_icon_set_get_type): (gtk_icon_source_get_type): * gtk/gtkfilesystemwin32.h (gtk_file_system_win32_get_type): * gtk/gtkfilesystemunix.h (gtk_file_system_unix_get_type): * gtk/gtkfilesystem.h (gtk_file_folder_get_type): (gtk_file_info_get_type, gtk_file_path_get_type): (gtk_file_system_get_type): * gtk/gtkfilefilter.h (gtk_file_filter_get_type): * gtk/gtkfilechooserwidget.h (gtk_file_chooser_widget_get_type): * gtk/gtkfilechooser.h (gtk_file_chooser_get_type): * gtk/gtkfilechooserdialog.h (gtk_file_chooser_dialog_get_type): * gtk/gtkexpander.h (gtk_expander_get_type): * gtk/gtkentrycompletion.h (gtk_entry_completion_get_type): * gtk/gtkcombobox.h (gtk_combo_box_get_type): * gtk/gtkcomboboxentry.h (gtk_combo_box_entry_get_type): * gtk/gtkclipboard.h (gtk_clipboard_get_type): * gtk/gtkcellview.h (gtk_cell_view_get_type): * gtk/gtkcellrenderertoggle.h (gtk_cell_renderer_toggle_get_type): * gtk/gtkcellrenderertext.h (gtk_cell_renderer_text_get_type): * gtk/gtkcellrendererprogress.h (gtk_cell_renderer_progress_get_type): * gtk/gtkcellrendererpixbuf.h (gtk_cell_renderer_pixbuf_get_type): * gtk/gtkcellrenderercombo.h (gtk_cell_renderer_combo_get_type): * gtk/gtkcelllayout.h (gtk_cell_layout_get_type): * gtk/gtkactiongroup.h (gtk_action_group_get_type): * gtk/gtkaction.h (gtk_action_get_type): * gtk/gtkaccessible.h (gtk_accessible_get_type): * gtk/gtkaccelmap.h (gtk_accel_map_get_type): * gtk/gtkaccelgroup.h (gtk_accel_group_get_type): * gtk/gtkmessagedialog.h (gtk_message_dialog_get_type): Mark as const. * gtk/gtkicontheme.h: Don't mark gtk_icon_theme_error_quark() as const, to be consistent with all the other error_quark functions. (technically they are const, but since these are called only in error paths, giving the compiler better optimization opportunities doesn't matter much) * gtk/gtk.symbols: * gdk/gdk.symbols: Add attribute annotations. * gtk/makegtkalias.pl: * gdk/makegdkalias.pl: Keep attribute annotations, but strip PRIVATE. * gtk/Makefile.am (gtk.def): * gdk/Makefile.am (gdk.def): Strip attribute annotations, but keep PRIVATE.
* Declare gtk_accelerator_get_label.Matthias Clasen2004-10-091-2/+2
| | | | | | 2004-10-09 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaccelgroup.h: Declare gtk_accelerator_get_label.
* Provide access to the string representation of accelerators used inMatthias Clasen2004-10-051-0/+2
| | | | | | | | | | | | | | | | | 2004-10-05 Matthias Clasen <mclasen@redhat.com> Provide access to the string representation of accelerators used in GtkAccelLabel. (#154068, John Spray) * gtk/gtkaccelgroup.h: * gtk/gtkaccelgroup.c (gtk_accelerator_get_label): New function to return the accelerator label used in GtkAccelLabel. (gtk_accelerator_name): Update docs to point to gtk_accelerator_get_label(). * gtk/gtkaccellabel.h: * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): New auxiliary function which creates the string representing the accelerator.
* allow accel activation depending on sensitivity and the attach widget.Tim Janik2003-11-271-0/+5
| | | | | | | | | | | | | | | | Thu Nov 27 16:19:03 2003 Tim Janik <timj@gtk.org> * gtk/gtkmenu.c: allow accel activation depending on sensitivity and the attach widget. * gtk/gtkmenuitem.c: allow accel activation depending on visibility, sensitivity and the parent menu. * gtk/gtkwidget.[hc]: introduced ::can-activate-accel signal which checks whether accelerators may activate a widget. the default handler demands the widget be sensitive and visible+viewable. * gtk/gtkaccelgroup.[hc]: export gtk_accel_group_activate().
* Add a missing ; to make things compile.Matthias Clasen2002-09-241-1/+1
| | | | * gtk/gtkaccelgroup.h: Add a missing ; to make things compile.
* Add a GtkAccelGroupFindFunc to clean up the prototype. (#76670, VitalyOwen Taylor2002-09-241-5/+8
| | | | | | | | | | | Tue Sep 24 17:49:52 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkaccelgroup.[ch] (gtk_accel_group_find): Add a GtkAccelGroupFindFunc to clean up the prototype. (#76670, Vitaly Tishkov) * gdk/x11/gdkvisual-x11.c gdk/x11/gdkx.h: Rename gdkx_visual_get_for_screen() to gdk_x11_screen_lookup_visual(). (#85702)
* Massive padding addition to class structures.Owen Taylor2002-02-231-0/+8
| | | | | | | | Sat Feb 23 11:54:12 2002 Owen Taylor <otaylor@redhat.com> * gtk/*.h gdk/*.h: Massive padding addition to class structures. * gtk/gtktextmark.h: Fix a FIXME about G_CONST_RETURN.
* Ref-sink the tooltips object. Ref-sink the tooltips object. Fix someOwen Taylor2001-11-211-2/+2
| | | | | | | | | | | | | | | | | Wed Nov 21 11:41:29 2001 Owen Taylor <otaylor@redhat.com> * tests/testgtk.c (create_tooltips): Ref-sink the tooltips object. * gtk/gtktoolbar.c (gtk_toolbar_init): Ref-sink the tooltips object. * gtk/gtkfilesel.c (open_new_dir): Fix some constness warnings. * gtk/gtkaccelgroup.c: Rename gtk_accel_groups_from_acceleratable() back to gtk_accel_groups_from_object(), change @acceleratable parameter to gtk_accel_groups_activate() accordingly. * gtk/gtkaccelmap.c (gtk_accel_map_lookup_entry): Remove left-over comment about quark return. * gtk/gtkaccelmap.h: Fix spelling of gtk_accel_map_foreach_unfiltered(). * gtk/gtk-boxed.defs (GtkIconSource): added as a boxed type. (Patch from Matt Wilson) * gtk/gtkobject.c (gtk_object_finalize): Warn if a floating object is finalized.
* applied patch from owen to get rid of accel map notifiers. changed thingsTim Janik2001-11-201-14/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Nov 20 21:25:08 2001 Tim Janik <timj@gtk.org> * applied patch from owen to get rid of accel map notifiers. changed things to fix reentrancy and API as discussed on gtk-devel. * gtk/gtkaccelgroup.[hc]: (gtk_accel_group_finalize): unregister this accel group from all accel map paths. (accel_closure_invalidate): handle invalidation of closures by disconnecting their accelerators. (quick_accel_add): move closure connection and changed notification into this function to reduce code duplication. don't emit change notification on closurers without accelerators. (quick_accel_remove): rewrite, do the exact opposite of quick_accel_add for a GtkAccelGroupEntry. (gtk_accel_group_connect): get rid of the accel_path_quark argument. (gtk_accel_group_connect_by_path): new function to add accelerators with an accel path. (gtk_accel_group_disconnect_closure): new function, disconnect a closure from of an accel group. (gtk_accel_group_disconnect): loop over all closure for a accel_ley, accel_mods pair and remove them. (_gtk_accel_group_reconnect): new function that basically does gtk_accel_group_disconnect_closure() and gtk_accel_group_connect_by_path() once an accel path changed. (gtk_accel_groups_disconnect_closure): remove this, there's gtk_accel_group_disconnect_closure(). * gtk/gtkaccelmap.[hc]: keep list of accel groups per entry now, nuke notifiers. (_gtk_accel_path_is_valid): make this non-static for gtkwidget.c and gtkaccelgroup.c assertions. (gtk_accel_map_add_notifer): removed this function. (gtk_accel_map_remove_notifer): same. (_gtk_accel_map_add_group): (_gtk_accel_map_remove_group): (un-)register accel groups, with accel paths for correct propagation. (gtk_accel_map_add_entry): return void. (gtk_accel_map_lookup): return gboolean instead of GQuark. * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): always set accel_path on widgets. * gtk/gtkwidget.[hc]: (accel_path_changed): got rid of this, changes are handled by accel maps internally now. (_gtk_widget_set_accel_path): get things to work without notifiers. (gtk_widget_list_accel_closures): list accel closures of a widget. * gtk/gtkwindow.[hc]: rename ::accels_changed, to ::keys_changed.