summaryrefslogtreecommitdiff
path: root/gtk/gtkactivatable.c
Commit message (Collapse)AuthorAgeFilesLines
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-4/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* [annotations] Add allow-noneJohan Dahlin2010-02-191-1/+1
| | | | | | | | This commit was created using a script that searched for all docstrings containing a parameter and the string 'or %NULL'. Gdk backends and demos excluded as they are not part of a public API https://bugzilla.gnome.org/show_bug.cgi?id=610474
* Bug 602099 - Actions can be activatable tooMatthew Barnes2009-12-151-3/+9
| | | | | | | | Add a couple type checks in gtk_activatable_do_set_related_action() to allow both GtkWidgets and GtkActions to implement GtkActivatable. Bug 602099 describes a use case for this. Also add a GObject prerequisite to the GtkActivatable interface.
* Move documentation from templates to inline comments: GtkActivatableJavier Jardón2009-10-151-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=597865
* fix compile warningsBenjamin Otte2009-06-171-2/+2
| | | | | Fallout from running make CFLAGS="-Werror"; mostly missing casts and constness issues.
* Rename gtk_activatable_reset to gtk_activatable_sync_action_properties,Matthias Clasen2009-02-221-51/+56
| | | | | | | | | | * gtk/gtk.symbols: * gtk/gtkactivatable.[hc]: Rename gtk_activatable_reset to gtk_activatable_sync_action_properties, since the previous name was deemed too generic. Update all implementations. svn path=/trunk/; revision=22389
* Block the previous action when calling reset() to prevent accidentalMatthias Clasen2009-01-271-2/+12
| | | | | | | | | | | | | | * gtk/gtkactivatable.c (gtk_activatable_do_set_related_action): Block the previous action when calling reset() to prevent accidental activation of the previous action. * gtk/gtkaction.c (gtk_action_activate): Don't compare booleans. * gtk/gtktoggleaction.c (gtk_toggle_action_set_active): Remove extraneous braces. svn path=/trunk/; revision=22225
* Doc fixesMatthias Clasen2009-01-231-3/+5
| | | | svn path=/trunk/; revision=22201
* Fix the section docsMatthias Clasen2009-01-231-2/+2
| | | | svn path=/trunk/; revision=22199
* i Bug 560228 – Add "action-controller" property to GtkWidgetClassMatthias Clasen2009-01-231-0/+540
Rework the way actions and proxies interact, to make the interaction less ad hoc, more extensible, and better suited for support in GUI builders like glade. To be used as a proxy, a widget must now implement the GtkActivatable interface, and GtkActivatable implementations are responsible for syncing their appearance with the action and for activating the action. All the widgets that are commonly used as proxies implement GtkActivatable now. Patch by Tristan van Berkom. * gtk/gtkactivatable.[hc]: The GtkActivatable interface. * gtk/gtkbutton.c: * gtk/gtktogglebutton.c: * gtk/gtktoolitem.c: * gtk/gtktoolbutton.c: * gtk/gtktoggletoolbutton.c: * gtk/gtkmenuitem.c: * gtk/gtkcheckmenuitem.c: * gtk/gtkimagemenuitem.c: * gtk/gtkradiomenuitem.c: * gtk/gtkrecentchooserprivate.h: * gtk/gtkrecentchooser.c: * gtk/gtkrecentchooserdefault.c: * gtk/gtkrecentchoosermenu.c: Implement GtkActivatable. * gtk/gtkaction.[hc]: Move appearance synchronization to GtkActivatable implementations. * gtk/gtkradioaction.c: * gtk/gtkrecentaction.c: * gtk/gtktoggleaction.c: * gtk/gtkactiongroup.c: Adapt. * gtk/gtk.h: Include gtkactivatable.h * gtk/gtk.symbols: Add new functions svn path=/trunk/; revision=22195