summaryrefslogtreecommitdiff
path: root/gtk/gtktoolbutton.c
Commit message (Collapse)AuthorAgeFilesLines
* docs: fix a number of typos and obsolete referencesCosimo Cecchi2012-07-021-1/+1
|
* Fix malformed doc commentsMatthias Clasen2012-04-121-4/+4
| | | | | Most of these are forgotten :'s and similar details which gtk-doc now warns about.
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* Add new GtkActionable interfaceRyan Lortie2012-01-091-2/+70
| | | | | | | | | | | | This is the interface for GtkWidgets that can be associated with an action on a GtkAppicationWindow or associated GtkApplication. It essentially features 'action-name' and 'action-target' properties with some associated convenience API. This interface is implemented by GtkButton and GtkToolButton. https://bugzilla.gnome.org/show_bug.cgi?id=667394
* toolbutton: don't force the icon widget to be a GtkMiscCosimo Cecchi2011-09-271-3/+3
| | | | | There's really no reason the icon widget must be a GtkMisc. You might want to use e.g. a GtkSpinner.
* More include cleanupsMatthias Clasen2011-08-281-2/+1
|
* gtk: Use const instead G_CONST_RETURNJavier Jardón2011-06-101-3/+3
|
* Move documentation to inline comments: GtkToolButtonJavier Jardón2011-04-151-0/+31
|
* Always chain up in ::style-updatedMatthias Clasen2011-02-071-0/+2
| | | | | This was not handled consistently, but the default handler does useful things, so we should always chain up.
* Make GtkToolButton use ::style-updatedCarlos Garnacho2011-01-041-5/+3
|
* gtk: remove "gboolean homogeneous" from gtk_box_new()Michael Natterer2010-11-021-4/+4
| | | | Because it's FALSE in virtually all use cases.
* Use gtk_box_new() instead gtk_[v|h]box_new()Javier Jardón2010-10-301-4/+4
|
* Tons of transfer annotationsMatthias Clasen2010-09-211-12/+14
|
* gtk/gtktoolbutton.c: use accessor functions to access GtkWidgetJavier Jardón2010-08-221-13/+28
|
* Stop assuming that priv->label_widget will be a GtkLabel.Tomeu Vizoso2010-08-051-19/+22
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623603
* GtkToggleToolButton: unseal private pointerJavier Jardón2010-07-141-1/+1
|
* GtkToolButton: unseal private pointerJavier Jardón2010-07-141-3/+4
|
* Use GtkBin accessorsJavier Jardón2010-07-131-3/+5
|
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-5/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Make toolbutton not call functions on non-GtkMiscBenjamin Otte2010-05-031-2/+2
|
* Allow NULL as 'icon_widget' in gtk_tool_button_new()Javier Jardón2010-04-271-1/+1
| | | | | This completes the patch of commit b8ec73a52fe3dc3012db78f45bfcafa2cb3e14ae
* Only a GtkMisc widget should be passed to gtk_tool_button_new()Javier Jardón2010-04-261-1/+3
| | | | | Reported by Hernando Torque here: https://bugzilla.gnome.org/show_bug.cgi?id=616851
* Add some padding in tool buttonsMatthias Clasen2010-02-231-1/+1
| | | | | | The default value of the icon-spacing style property was 0, which is just not good. Themes are of course free to change this anyway. Bug 610381.
* Correctly clone the toolbutton's icon-name image widgetChristian Persch2010-02-091-0/+6
| | | | Bug #608162.
* [introspection] Merge in Gtk-custom.c annotationsColin Walters2009-12-161-14/+14
| | | | | | | | The Gtk-custom.c file in gir-repository contained a number of introspection annotations. Merge those into the GTK source files. Some documentation was moved from the tmpl/ files to accomodate the addition of annotations.
* Merge branch 'master' into toolpaletteMatthias Clasen2009-11-261-1/+1
|\
| * Do not use static GTypeInfo and GInterfaceInfoNicola Fontana2009-11-061-1/+1
| | | | | | | | | | | | | | | | | | Either g_type_register_static_simple (used by G_DEFINE_TYPE_EXTENDED) and G_IMPLEMENT_INTERFACE use automatic variables for GTypeInfo and GInterfaceInfo structs, while tutorials and source code often use static variables. This commit consistently adopts the former method. https://bugzilla.gnome.org/show_bug.cgi?id=600158
* | Merge branch 'master' into toolpaletteJohannes Schmid2009-10-281-0/+10
|\ \ | |/
| * Only set the accesible label if it is non-emptyChristian Dywan2009-10-271-4/+7
| | | | | | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=599446
| * Explicitly set the accessible name of GtkToolButton.Eitan Isaacson2009-10-101-0/+7
| | | | | | | | | | | | GAIL is not able to retrieve the correct button name alone, so it must be set in gtktoolbutton.c https://bugzilla.gnome.org/show_bug.cgi?id=597596
* | ToolShell: Add ellipsize, text-orientation, text-alignment and size-group.Murray Cumming2009-07-131-8/+65
|/ | | | | | | | | | | | | * gtk/gtktoolshell.c: Added vfuncs to get/set ellipsize, text-orientation, text-alignment and size-group plus getter/setters to invoke these vfuncs. * gtk/gtktoolitem.[h|c]: Added getters and setters to get/set these from the parent GtkToolShell. This is in the style of the existing "properties". * gtk/gtktoolbutton.c: Updated to use the extra properties. * docs/reference/gtk/gtk-sections.txt * gtk/gtk.symbols: Updated to mention the new functions. These new "properties" are used by GtkToolPalette.
* Rename gtk_activatable_reset to gtk_activatable_sync_action_properties,Matthias Clasen2009-02-221-10/+10
| | | | | | | | | | * 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
* Make the new GtkAction code work with PolicyKit-gnome's use of actions.Matthias Clasen2009-02-071-25/+3
| | | | | | | | | | | | | | | | | | | * gtk/gtkaction.c (gtk_action_[un]block_activate_from): Block the action. * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_activatable_reset): * gtk/gtktogglebutton. (gtk_toggle_button_activatable_reset): * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_activatable_reset): Work with non-toggle actions without complaining. * gtk/gtktoolbutton.c (gtk_tool_button_activatable_update): Updating the icon-name should not remove the label. * gtk/gtkimagemenuitem.c (activatable_update_icon_name): Also update the image when the icon name is set to NULL. svn path=/trunk/; revision=22290
* More action-related fixesMatthias Clasen2009-01-261-0/+3
| | | | svn path=/trunk/; revision=22218
* Fallback from stock ids to icon names like the old GtkAction code didMatthias Clasen2009-01-241-7/+10
| | | | svn path=/trunk/; revision=22210
* i Bug 560228 – Add "action-controller" property to GtkWidgetClassMatthias Clasen2009-01-231-12/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Properly create a menu proxy from a GIcon. Patch by Christian PerschMatthias Clasen2009-01-111-0/+6
| | | | | | | | | | * gtk/gtktoolbutton.c: Properly create a menu proxy from a GIcon. Patch by Christian Persch * tests/testtoolbar.c: Add an example with a GIcon svn path=/trunk/; revision=22084
* 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
* Improve appearance of "both vertical" mode toolbuttons. Patch by PeterMatthias Clasen2008-06-131-1/+1
| | | | | | | | | * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): Improve appearance of "both vertical" mode toolbuttons. Patch by Peter Johanson svn path=/trunk/; revision=20365
* gtk/gtkcontainer.c gtk/gtkexpander.c gtk/gtkframe.c gtk/gtklabel.cMichael Natterer2008-02-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 2008-02-06 Michael Natterer <mitch@imendio.com> * gtk/gtkcontainer.c * gtk/gtkexpander.c * gtk/gtkframe.c * gtk/gtklabel.c * gtk/gtkmain.c * gtk/gtkmenu.c * gtk/gtkmenuitem.c * gtk/gtkmenushell.c * gtk/gtknotebook.c * gtk/gtkseparatortoolitem.c * gtk/gtksocket.c * gtk/gtktextlayout.c * gtk/gtktoggletoolbutton.c * gtk/gtktoolbutton.c * gtk/gtktoolitem.c * gtk/gtktree.c * gtk/gtktreeitem.c: replace "foo && GTK_IS_FOO (foo)" by simply "GTK_IS_FOO (foo)". svn path=/trunk/; revision=19481
* Use G_OBJECT_WARN_INVALID_PROPERTY_ID consistently. Fixes #5075Johan Dahlin2008-01-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-06 Johan Dahlin <johan@gnome.org> * gtk/gtkcellrenderercombo.c: (gtk_cell_renderer_combo_get_property), (gtk_cell_renderer_combo_set_property): * gtk/gtkcombobox.c: (gtk_combo_box_set_property): * gtk/gtkcomboboxentry.c: (gtk_combo_box_entry_set_property): * gtk/gtknotebook.c: (gtk_notebook_set_property): * gtk/gtkspinbutton.c: (gtk_spin_button_set_property): * gtk/gtktextbuffer.c: (gtk_text_buffer_set_property), (gtk_text_buffer_get_property): * gtk/gtktextview.c: (gtk_text_view_set_property): * gtk/gtktogglebutton.c: (gtk_toggle_button_set_property): * gtk/gtktoolbutton.c: (gtk_tool_button_set_property), (gtk_tool_button_get_property): * gtk/gtktoolitem.c: (gtk_tool_item_set_property), (gtk_tool_item_get_property): * gtk/gtktreeview.c: (gtk_tree_view_set_property): * gtk/gtkwidget.c: (gtk_widget_set_property): * gtk/gtkwindow.c: (gtk_window_set_property): Use G_OBJECT_WARN_INVALID_PROPERTY_ID consistently. Fixes #5075 svn path=/trunk/; revision=19311
* Fix a problem in the last changeMatthias Clasen2007-01-281-1/+2
| | | | svn path=/trunk/; revision=17228
* Rearrange things so that setting multiple properties causes not more thanMatthias Clasen2007-01-281-37/+28
| | | | | | | | | | | | | | | | | 2007-01-27 Matthias Clasen <mclasen@redhat.com> * gtk/gtktoolbar.c: * gtk/gtktoolitem.c: * gtk/gtktoolbutton.c: Rearrange things so that setting multiple properties causes not more than a single reconstruction of the contents. * gtk/gtkaction.c (connect_proxy): Set all tool button properties in one go. svn path=/trunk/; revision=17227
* Apply a cleanup patch by Kjartan Maraas (#341812)Matthias Clasen2006-10-081-1/+0
| | | | | | 2006-10-08 Matthias Clasen <mclasen@redhat.com> * Apply a cleanup patch by Kjartan Maraas (#341812)
* Fix some typos with inline property docs. (#347065, John Finlay)Matthias Clasen2006-07-101-1/+1
| | | | | | | | | | | | 2006-07-10 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaction.c: * gtk/gtkiconview.c: * gtk/gtkprintbackend.c: * gtk/gtkprintoperation-unix.c: * gtk/gtkscrolledwindow.c: * gtk/gtktoolbar.c: Fix some typos with inline property docs. (#347065, John Finlay)
* Fix handling of stock items without icons in action-based ui. (#342458,Matthias Clasen2006-06-201-1/+2
| | | | | | | | | | | | | | 2006-06-20 Matthias Clasen <mclasen@redhat.com> Fix handling of stock items without icons in action-based ui. (#342458, Callum McKenzie) * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): Set the stock id even if there is no icon for it. * gtk/gtkaction.c (connect_proxy): * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): Only construct a stock icon if the stock item has an icon.
* Give GtkToolButton the same treatment.Matthias Clasen2006-06-081-1/+17
| | | | | | | 2006-06-08 Matthias Clasen <mclasen@redhat.com> * gtk/gtktoolbutton.c (gtk_tool_button_style_set): Give GtkToolButton the same treatment.
* Add an icon-spacing style property for the same purpose.Matthias Clasen2006-06-011-2/+37
| | | | | | | | | | | 2006-06-01 Matthias Clasen <mclasen@redhat.com> * gtk/gtktoolbutton.c (gtk_tool_button_class_init): Add an icon-spacing style property for the same purpose. * gtk/gtkbutton.c (gtk_button_class_init): Add an image-spacing style property that allows to adjust the spacing between image and label in button. (#320431, James Moger)
* Boilerplate reductionMatthias Clasen2006-05-021-18/+7
|