summaryrefslogtreecommitdiff
path: root/gtk/gtkbindings.c
Commit message (Collapse)AuthorAgeFilesLines
* types: Clean up gtkwidget.h includesBenjamin Otte2012-03-031-0/+1
| | | | | | | In particular gtksettings.h and gtkstylecontext.h needed to be included in lots of places now. Also, I order the includes alphabetically in a bunch of headers.
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* Use G_VALUE_INITJavier Jardón2011-10-151-2/+2
| | | | Instead of an explicit { 0, } when declaring the variable.
* Documentation fixesMatthias Clasen2011-09-251-1/+1
| | | | | Mostly making sure that return values and varargs don't loose their docs.
* Remove unused includesMatthias Clasen2011-06-161-1/+0
| | | | Nothing is using gtkrc.h functionality any more.
* Small optimizationMatthias Clasen2011-01-301-18/+23
| | | | | We can use the fact that all involved strings are interned; also deprecate gtk_binding_set_add_path() in the headers, too.
* doc fixesMatthias Clasen2011-01-301-11/+12
|
* Move GtkBindings docs inlineMatthias Clasen2011-01-301-73/+171
|
* Add a gtkbindingsprivate.h headerMatthias Clasen2011-01-301-3/+3
|
* Improve binding-set parserMatthias Clasen2011-01-301-9/+10
| | | | | | | | Make gtk_binding_entry_add_signal_from_string() return the expected token in case of parsing error, so that we can return a GError instead of spewing. Also, add a separate scope for binding-set, since allowing {} in identifiers in SCOPE_VALUE breaks the fact that the ; after the last assignment in a rule is optional.
* Remove unneeded code from GtkBindingSetCarlos Garnacho2011-01-301-114/+0
|
* Hook up key bindings in CSS with key propagation.Carlos Garnacho2011-01-301-20/+79
| | | | | | | | This is done in the same place than it was done before the switch to GtkStyleContext, the GtkBindingEntry has been slightly simplified since it's now the GtkStyleContext which hands us the list of binding sets applying to a widget, so no need to use the older matching mechanisms.
* Add gtk_binding_entry_add_signal_from_string()Carlos Garnacho2011-01-301-0/+321
| | | | | | This function rescues part of the old parser (which is now standalone) to load a bind/unbind definition string into a GtkBindingSet.
* [GI] Mark unintrospectable constructs as (skip)Pavel Holejsovsky2011-01-201-4/+5
| | | | | Also adds 'Rename to:' annotation to some constructs replacing the skipped ones.
* [GI] Add missing (transfer) annotationsPavel Holejsovsky2011-01-201-1/+1
|
* Remove gtktypeutils altogetherMatthias Clasen2011-01-041-319/+336
| | | | | | Based on patches by Javier Jardón. https://bugzilla.gnome.org/show_bug.cgi?id=629955
* Drop explicit includes of gdkkeysyms.hMatthias Clasen2011-01-041-1/+0
| | | | | These are no longer needed. At the same time, port gtkimcontextsimpleseqs.h to use the new GDK_KEY_ symbols.
* Reduce includes of gtktypeutils.h to a minimumMatthias Clasen2011-01-041-1/+1
|
* Remove dead Gtk[Rc]Style codeCarlos Garnacho2010-12-181-399/+8
| | | | | | | | | | | | Most code in gtkrc.c has been turned into a no-op, but that one reverting in public API (gtk_rc_scanner_new() and such). GtStyle is also more shallow, now fully relies in the backing GtkStyleContext and all connection to gtkrc.c has been removed. GtkBinding has been also affected, there is no replacement yet for custom keybindings in style files, so that piece of code that hooked into gtkrc has been replaced by a FIXME so in the future it may be added back.
* Remove GtkObject completelyMatthias Clasen2010-09-261-17/+14
|
* Add some element-type annotations to gtk apisMatthias Clasen2010-09-171-1/+2
|
* Fix some compilation warningsJavier Jardón2010-09-131-11/+16
| | | | | | | GScanner token field is declared as GTokenType instead a guint See Glib bug: https://bugzilla.gnome.org/show_bug.cgi?id=627890 Fixes https://bugzilla.gnome.org/show_bug.cgi?id=627962
* GDK: Prefix key names with KEY_Colin Walters2010-09-081-2/+2
| | | | | | | | | | | | | The keysyms create a lot of potential namespace conflicts for C, and are especially problematic for introspection, where we take constants into the namespace, so GDK_Display conflicts with GdkDisplay. For C application compatiblity, add gdkkeysyms-compat.h which uses the old names. Just one user in GTK+ continues to use gdkkeysyms-compat.h, which is the gtkimcontextsimple.c, since porting that requires porting more custom Perl code.
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-4/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Remove deprecated gtk_binding_entry functionsChristian Dywan2010-05-031-47/+0
|
* [docs] Add some 'Since: 2.4' tagsTorsten Schoenfeld2009-12-181-0/+2
| | | | | | | | | This patch adds Since: 2.4 tags to gtk_bindings_activate_event, gtk_window_propagate_key_event and gtk_window_activate_key. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=604859 Signed-off-by: Javier Jardón <jjardon@gnome.org>
* Undeprecate gtk_binding_entry_add_signallMatthias Clasen2009-02-111-2/+0
| | | | svn path=/trunk/; revision=22314
* Doc fixesMatthias Clasen2008-12-291-30/+29
| | | | svn path=/trunk/; revision=21967
* Improve deprecation annotationsMatthias Clasen2008-11-291-3/+21
| | | | svn path=/trunk/; revision=21814
* More doc fixesMatthias Clasen2008-09-041-2/+2
| | | | svn path=/trunk/; revision=21281
* More doc fixesMatthias Clasen2008-09-041-3/+3
| | | | svn path=/trunk/; revision=21280
* More doc fixesMatthias Clasen2008-09-041-1/+1
| | | | svn path=/trunk/; revision=21279
* move the code of the deprecated gtk_binding_entry_clear() to a new privateMichael Natterer2008-08-041-13/+21
| | | | | | | | | | | | | | | | 2008-08-04 Michael Natterer <mitch@imendio.com> * gtk/gtkbindings.c: move the code of the deprecated gtk_binding_entry_clear() to a new private function gtk_binding_entry_clear_internal() and call it from gtk_binding_entry_clear(). (_gtk_binding_entry_add_signall) (gtk_binding_parse_bind): use the new internal function in order to avoid our own deprecated public API. svn path=/trunk/; revision=20963
* use gtk_box_pack_start() instead of the deprecatedMichael Natterer2008-07-211-6/+7
| | | | | | | | | | | | | | 2008-07-21 Michael Natterer <mitch@imendio.com> * gtk/gtkbox.c (gtk_box_add): use gtk_box_pack_start() instead of the deprecated gtk_box_pack_start_defaults(). * gtk/gtkbindings.c (gtk_binding_entry_add_signal) (gtk_binding_parse_signal): use _gtk_binding_entry_add_signall() instead of the deprecated gtk_binding_entry_add_signall(). svn path=/trunk/; revision=20885
* remove _gtk_binding_signal_new().Michael Natterer2008-07-211-29/+0
| | | | | | | | | | | | | | | | | | 2008-07-21 Michael Natterer <mitch@imendio.com> * gtk/gtkbindings.[ch]: remove _gtk_binding_signal_new(). * gtk/gtkfilechooserdefault.c * gtk/gtkmenu.c * gtk/gtkmenushell.c * gtk/gtkscalebutton.c * gtk/gtktextview.c * gtk/gtktoolbar.c * gtk/gtkwidget.c: use g_signal_new_class_handler() instead. Add some missing I_() to the signal names. svn path=/trunk/; revision=20874
* 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
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-221-1/+1
| | | | | | | | | | | | 2008-06-21 Johan Dahlin <jdahlin@async.com.br> * *.[ch]: Include "config.h" instead of <config.h> Command used: find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g' Rubberstamped by Mitch and Tim svn path=/trunk/; revision=20669
* s/GtkType/GType/Michael Natterer2008-06-171-1/+1
| | | | | | | | | | | | 2008-06-17 Michael Natterer <mitch@imendio.com> * gtk/gtkbindings.c (gtk_binding_entry_add_signal): * gtk/gtktoolbutton.c (gtk_tool_button_get_type): * examples/gtkdial/gtkdial.h (gtk_dial_get_type): s/GtkType/GType/ svn path=/trunk/; revision=20436
* use gtk_binding_entry_clear() instead of gtk_binding_entry_add() (theMichael Natterer2008-06-161-1/+1
| | | | | | | | | | | 2008-06-16 Michael Natterer <mitch@imendio.com> * gtk/gtkbindings.c (_gtk_binding_entry_add_signall): use gtk_binding_entry_clear() instead of gtk_binding_entry_add() (the former is deprecated and #defined to gtk_binding_entry_clear) svn path=/trunk/; revision=20408
* Small doc fixesMatthias Clasen2007-07-121-1/+1
| | | | svn path=/trunk/; revision=18451
* Remove an obsolete commentMatthias Clasen2007-03-121-3/+0
| | | | svn path=/trunk/; revision=17491
* document gtk_binding_entry_skip().Tim Janik2006-10-111-0/+4
| | | | | | | Wed Oct 11 14:31:30 2006 Tim Janik <timj@imendio.com> * docs/reference/gtk/gtk-sections.txt: * gtk/gtkbindings.c: document gtk_binding_entry_skip().
* applied patch from Michael Natterer to move to inline docs. appliedTim Janik2006-10-101-2/+121
| | | | | | | | Tue Oct 10 16:38:23 2006 Tim Janik <timj@imendio.com> * gtk/tmpl/gtkbindings.sgml: * gtk/gtkbindings.c: applied patch from Michael Natterer to move to inline docs. applied wording fixes suggested by Martyn Russell.
* added new scanner token "unbind" which gets rid of a key binding (in fact,Michael Natterer2006-10-051-15/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-10-05 Michael Natterer <mitch@imendio.com> * gtk/gtkrc.[ch]: added new scanner token "unbind" which gets rid of a key binding (in fact, it only lets it appear unbound). * gtk/gtkbindings.[ch] (struct GtkBindingEntry): added "guint marks_unbound : 1" (gtk_binding_entry_skip): new API which marks the entry as unbound. Changed code so it returns FALSE when "marks_unbound == TRUE" is encountered while activating bindings, effectively letting the binding appear unbound (regardless of still existing bindings in lower binding priority levels). Fixes bug #358329. (gtk_binding_entry_add) (gtk_binding_entry_clear) (gtk_binding_entry_add_signall) (gtk_binding_parse_binding): deprected these functions. (_gtk_binding_parse_binding) (_gtk_binding_entry_add_signall): new internal API. * gtk/gtk.symbols: changed accordingly.
* Support subclasses in RC files. (#142417, Todd Berman, patch based on aMatthias Clasen2006-03-231-19/+47
| | | | | | | | | | | | | | | | | 2006-03-23 Matthias Clasen <mclasen@redhat.com> Support subclasses in RC files. (#142417, Todd Berman, patch based on a patch by Benjamin Berg) * gtk/gtkrc.h: * gtk/gtkrc.c: Support <classname> elements in widget_class paths in rc files which match any classes derived from named class. (_gtk_rc_init): Use the new syntax in the default rc string. * gtk/gtkbindings.c: Support the new syntax for bindings too. * tests/testrc.c: Tests for widget_class path matching
* Revert the last change.Matthias Clasen2006-01-051-1/+1
| | | | | | 2006-01-05 Matthias Clasen <mclasen@redhat.com> * gtk/gtkbindings.c (binding_signal_new): Revert the last change.
* allocate correct amount for signal and arguments.Rodrigo Moya2006-01-051-2/+2
| | | | | | | 2006-01-05 Rodrigo Moya <rodrigo@novell.com> * gtk/gtkbindings.c (binding_signal_new): allocate correct amount for signal and arguments.
* Revert questionable changes.Matthias Clasen2006-01-051-4/+5
| | | | | | | | | | 2006-01-04 Matthias Clasen <mclasen@redhat.com> * gtk/gtkbindings.h (struct _GtkBindingSignal): Revert questionable changes. * gtk/gtkbindings.c: Use the slice allocator and allocate signal and arguments in one block.
* guard against multiplying by -1 (when n_args is 0).Rodrigo Moya2006-01-041-1/+1
| | | | | | | 2006-01-04 Rodrigo Moya <rodrigo@novell.com> * gtk/gtkbindings.c (binding_signal_new): guard against multiplying by -1 (when n_args is 0).