summaryrefslogtreecommitdiff
path: root/gtk/gtkaction.c
Commit message (Collapse)AuthorAgeFilesLines
* Use canonical property namesMatthias Clasen2007-01-281-1/+1
| | | | svn path=/trunk/; revision=17230
* Rearrange things so that setting multiple properties causes not more thanMatthias Clasen2007-01-281-17/+20
| | | | | | | | | | | | | | | | | 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
* Improve the docs of the "label" property. (#341730, Kristof Vansant)Matthias Clasen2006-12-311-0/+8
| | | | | | | | | | | 2006-12-30 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaction.c: Improve the docs of the "label" property. (#341730, Kristof Vansant) svn path=/trunk/; revision=16988
* Apply a cleanup patch by Kjartan Maraas (#341812)Matthias Clasen2006-10-081-6/+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)
* Improve consistency of signal and property namesMatthias Clasen2006-07-061-6/+6
|
* broken pipeMatthias Clasen2006-06-221-0/+1
|
* Fix handling of stock items without icons in action-based ui. (#342458,Matthias Clasen2006-06-201-1/+3
| | | | | | | | | | | | | | 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.
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Boilerplate reductionMatthias Clasen2006-05-021-32/+2
|
* Make actions work with named icons. (#323484, Jorn Baayen)Matthias Clasen2006-03-131-17/+108
| | | | | | | | | | | | | 2006-03-13 Matthias Clasen <mclasen@redhat.com> Make actions work with named icons. (#323484, Jorn Baayen) * gtk/gtkactiongroup.c: If the stock-id field of a GtkActionEntry does not contain a registered stock id, interpret it as an icon name. * gtk/gtkaction.c: Add an icon-name property to actions and use it for icons if a stock-id is not specified.
* Make it buildMatthias Clasen2006-01-091-1/+1
|
* New function to get the action for a proxy. (#326288)Matthias Clasen2006-01-091-2/+24
| | | | | | | | | 2006-01-09 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkaction.h: * gtk/gtkaction.c (gtk_widget_get_action): New function to get the action for a proxy. (#326288)
* Go back to the old key for attaching the action to the proxy. (#326288,Matthias Clasen2006-01-091-1/+1
| | | | | | | 2006-01-09 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaction.c: Go back to the old key for attaching the action to the proxy. (#326288, Diego González)
* Fix actiongroup-action interaction that relied on actions connecting toMatthias Clasen2006-01-071-31/+50
| | | | | | | | | | | | | | 2006-01-07 Matthias Clasen <mclasen@redhat.com> Fix actiongroup-action interaction that relied on actions connecting to notify on themselves: * gtk/gtkaction.[hc]: Factor out the code updating the visibility/sensitivity of proxies into _gtk_action_sync_visible() and _gtk_action_sync_sensible(). * gtk/gtkactiongroup.c: Call the new functions when the group visibility/sensitivity changes.
* Some moreMatthias Clasen2006-01-051-20/+1
|
* Use a weak reference rather than the destroy signal to track proxies goingMatthias Clasen2006-01-051-18/+16
| | | | | | | 2006-01-05 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaction.c (connect_proxy): Use a weak reference rather than the destroy signal to track proxies going away.
* Removed.Matthias Clasen2006-01-051-22/+0
| | | | | | 2006-01-05 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaction.c: (gtk_action_sync_property): Removed.
* Avoid connecting to notify on our own properties.Matthias Clasen2006-01-031-215/+310
| | | | | | | 2006-01-03 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaction.c: Avoid connecting to notify on our own properties.
* Connect to notify instead of multiple detailed signals.Matthias Clasen2005-12-311-37/+49
| | | | | | | | 2005-12-31 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaction.c: * gtk/gtkentry.c: Connect to notify instead of multiple detailed signals.
* Buttons use the label property for stock ids. (#322565, Milosz Derezynski)Matthias Clasen2005-11-281-2/+2
| | | | | | | | 2005-11-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaction.c (gtk_action_sync_button_stock_id) (connect_proxy): Buttons use the label property for stock ids. (#322565, Milosz Derezynski)
* deprecated floating/sink API and implemented it in terms of the GObjectTim Janik2005-11-231-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Nov 23 18:55:47 2005 Tim Janik <timj@imendio.com> * gtk/gtkobject.[hc]: deprecated floating/sink API and implemented it in terms of the GObject floating/sink API. * gtk/gtkaboutdialog.c: * gtk/gtkaction.c: * gtk/gtkcellview.c: * gtk/gtkclist.c: * gtk/gtkcolorsel.c: * gtk/gtkcombobox.c: * gtk/gtkfilechooserdefault.c: * gtk/gtkiconview.c: * gtk/gtkinvisible.c: * gtk/gtkitemfactory.c: * gtk/gtklayout.c: * gtk/gtkmenu.c: * gtk/gtkmenutoolbutton.c: * gtk/gtknotebook.c: * gtk/gtkprogress.c: * gtk/gtkrange.c: * gtk/gtkspinbutton.c: * gtk/gtkstatusicon.c: * gtk/gtktext.c: * gtk/gtktextview.c: * gtk/gtktoolbar.c: * gtk/gtktoolbutton.c: * gtk/gtktoolitem.c: * gtk/gtktreeitem.c: * gtk/gtktreeview.c: * gtk/gtktreeviewcolumn.c: * gtk/gtkuimanager.c: * gtk/gtkviewport.c: * gtk/gtkwidget.c: * gtk/gtkwindow.c: ported to use GObject's g_object_ref_sink(). * gtk/gtkcolorsel.c: * gtk/gtkfilechooserdefault.c: * gtk/gtkaboutdialog.c: fixed compiler warnings.
* Disconnect the sync callback for the visibility property. (#321761, PhilipMatthias Clasen2005-11-181-0/+3
| | | | | | | | 2005-11-18 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaction.c (disconnect_proxy): Disconnect the sync callback for the visibility property. (#321761, Philip Langdale)
* Set the label of a button if it has no child. (#315253, John Finlay)Matthias Clasen2005-09-051-1/+2
| | | | | | | 2005-09-05 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaction.c (connect_proxy): Set the label of a button if it has no child. (#315253, John Finlay)
* Fix doc typo. (#314921, Guillaume Cottenceau)Matthias Clasen2005-09-011-2/+2
| | | | | | | 2005-09-01 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaction.c (gtk_action_get_accel_closure): Fix doc typo. (#314921, Guillaume Cottenceau)
* Intern some more strings.Matthias Clasen2005-09-011-4/+4
| | | | | | | | | 2005-09-01 Matthias Clasen <mclasen@redhat.com> * gdk/*.c: Intern some more strings. * gtk/gtkintl.h: * gtk/*.c: Define an I_() macro and use it instead of the bulky g_intern_static_string().
* Also intern static strings passed to g_object_set_data()Matthias Clasen2005-08-311-2/+2
|
* Intern type names in code generated by glib-mkenums, too.Matthias Clasen2005-08-311-1/+1
| | | | | | | | | | | | | 2005-08-31 Matthias Clasen <mclasen@redhat.com> * gdk/Makefile.am: * gtk/Makefile.am: Intern type names in code generated by glib-mkenums, too. * gtk/*.c: * gdk/x11/*.c: * gdk/*.c: Intern type names before registering the type to avoid unnecessary copies.
* gtk/gtk.symbols new function to get an action's accel_closure (FixesMichael Natterer2005-06-101-0/+19
| | | | | | | | 2005-06-10 Michael Natterer <mitch@imendio.com> * gtk/gtk.symbols * gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function to get an action's accel_closure (Fixes #141750 and #148106).
* Use g_object_notify() instead of triggering a ::notify by re-setting theMatthias Clasen2005-04-291-6/+8
| | | | | | | | | | 2005-04-29 Matthias Clasen <mclasen@redhat.com> * gtk/gtkuimanager.c (update_node): Use g_object_notify() instead of triggering a ::notify by re-setting the property. (#300982, Sven Neumann) * gtk/gtkaction.c (connect_proxy): Use gtk_action_sync_tooltip().
* Use canonical names for g_object_notify() as well.Matthias Clasen2005-03-261-3/+3
| | | | | | | | 2005-03-26 Matthias Clasen <mclasen@redhat.com> * gtk/*.c: * gdk/gdkdisplaymanager.c: Use canonical names for g_object_notify() as well.
* Define macros GTK_PARAM_READABLE, GTK_PARAM_WRITABLE, GTK_PARAM_READWRITEMatthias Clasen2005-03-221-16/+15
| | | | | | | | | | | | 2005-03-21 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprivate.h: Define macros GTK_PARAM_READABLE, GTK_PARAM_WRITABLE, GTK_PARAM_READWRITE which are like their G_ counterparts, but also mark the name, nick and blurb as static. * gtk/*.c: Mark param spec strings as static, using the new macros.
* : Mark param spec strings as static.Matthias Clasen2005-03-211-14/+16
|
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-201-1/+4
| | | | | | | | | | | | | | | | | | 2005-03-20 Matthias Clasen <mclasen@redhat.com> Make PLT-reduction work with gcc4, and don't include everything in gdkalias.h: * gtk/grk.symbols: Group symbols by header and source file. * gtk/makegtkalias.pl: Protect definitions by the same preprocessor symbols used to guard the headers. Move the alias declarations to a separate file which is produced when calling makegtkalias.pl -def * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate this file. * gtk/*.c: Include gtkalias.h after the other headers, include gtkaliasdef.c at the bottom. * gtk/*.h: Small cleanups.
* More canonical property names.Matthias Clasen2005-03-091-8/+8
|
* gdk/gdkkeyuni.c gdk/gdkpixbuf-drawable.c gdk/gdkrgb.c gdk/x11/gdkdnd-x11.cMatthias Clasen2005-03-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-03-01 Matthias Clasen <mclasen@redhat.com> * gdk/gdkkeyuni.c * gdk/gdkpixbuf-drawable.c * gdk/gdkrgb.c * gdk/x11/gdkdnd-x11.c * gdk/x11/gdkevents-x11.c * gdk/x11/gdkproperty-x11.c * gdk/x11/gdkvisual-x11.c * gdk-pixbuf/gdk-pixbuf.c * gtk/gtkaction.c * gtk/gtkbindings.c * gtk/gtkcolorbutton.c * gtk/gtkcombo.c * gtk/gtkcontainer.c * gtk/gtkfilechooserdefault.c * gtk/gtkfilesel.c * gtk/gtkgamma.c * gtk/gtkiconview.c * gtk/gtkinputdialog.c * gtk/gtkitemfactory.c * gtk/gtkmenu.c * gtk/gtktextview.c * gtk/gtktooltips.c * gtk/gtktreedatalist.c * gtk/gtkuimanager.c * gtk/tree_minus.xpm * gtk/tree_plus.xpm * gtk/xdgmime/xdgmime.c * gtk/xdgmime/xdgmime.h: Move constant data to .rodata.
* Improve the handling of buttons as action proxys. (#165534, MiloszMatthias Clasen2005-02-281-9/+34
| | | | | | | 2005-02-27 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaction.c (connect_proxy): Improve the handling of buttons as action proxys. (#165534, Milosz Derezynski)
* Don't claim to have handled the accelerator if the action is insensitive.Matthias Clasen2004-11-281-4/+6
| | | | | | | | 2004-11-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaction.c (closure_accel_activate): Don't claim to have handled the accelerator if the action is insensitive. (#151541, Jody Goldberg)
* gdk/linux-fb/gdkgc-fb.c gdk/win32/gdkgc-win32.cManish Singh2004-11-191-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Nov 19 14:54:09 2004 Manish Singh <yosh@gimp.org> * gdk/linux-fb/gdkgc-fb.c * gdk/win32/gdkgc-win32.c * gdk/win32/gdkwindow-win32.c * gtk/gtkaboutdialog.c * gtk/gtkaction.c * gtk/gtkactiongroup.c * gtk/gtkcellrendererprogress.c * gtk/gtkcellview.c * gtk/gtkcolorbutton.c * gtk/gtkcombobox.c * gtk/gtkcomboboxentry.c * gtk/gtkentrycompletion.c * gtk/gtkfilechooserbutton.c * gtk/gtkmenutoolbutton.c * gtk/gtkrc.c * gtk/gtksettings.c * gtk/gtkstyle.c * gtk/gtktoggletoolbutton.c * gtk/gtktoolbutton.c * gtk/gtktoolitem.c * gtk/gtktreemodelfilter.c * gtk/gtktreeselection.c * gtk/gtktreeviewcolumn.c * gtk/gtkuimanager.c: get rid of unnecessary casts. * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_set_property): cast away the const for g_value_set_enum. This is after the g_warning, so this is a hack to begin with. * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_set_property): add a cast to GTK_FILE_CHOOSER for impl here.
* Make return types G_CONST_RETURN instead of const.Matthias Clasen2004-11-091-1/+25
| | | | | | | | | | | | | | 2004-11-09 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaction.[hc]: * gtk/gtkactiongroup.[hc]: Make return types G_CONST_RETURN instead of const. * gtk/gtk.symbols: * gtk/gtkaction.h: * gtk/gtkaction.c (gtk_action_get_accel_path): Add a function to obtain the accel path of an action. (#148106, Michael Natterer)
* Use gtk_widget_{hide,show} instead of g_object_set (..."visible"...).Matthias Clasen2004-11-081-3/+4
| | | | | | | 2004-11-08 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaction.c (_gtk_action_sync_menu_visible): Use gtk_widget_{hide,show} instead of g_object_set (..."visible"...).
* Call gtk_tool_item_rebuild_menu().Søren Sandmann2004-09-141-7/+9
| | | | | | | | | | | | | | | | | | | | Tue Sep 14 23:20:56 2004 Søren Sandmann <sandmann@redhat.com> * gtk/gtkaction.c (connect_proxy): Call gtk_tool_item_rebuild_menu(). * gtk/gtktoolitem.c (gtk_tool_item_class_init): Update documentation for GtkToolItem::create_menu_proxy. * gtk/gtktoolitem.c (gtk_tool_item_rebuild_menu): New API to make the toolbar update itself when the proxy menu item for a tool item changes. * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): Call gtk_tool_item_rebuild_menu here() * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): Remove redundant check for need_label.
* Handle action_group being NULL. (#150869, Tommi Komulainen)Matthias Clasen2004-08-241-6/+4
| | | | | | | 2004-08-24 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaction.c (connect_proxy, disconnect_proxy): Handle action_group being NULL. (#150869, Tommi Komulainen)
* Two signals (gtk_action_sync_property and gtk_action_sync_sensitive) werePhilip Langdale2004-08-221-4/+4
| | | | | | | | | 2004-08-22 Philip Langdale <plangdale@vmware.com> * gtk/gtkaction.c (gtk_action_disconnect_proxy): Two signals (gtk_action_sync_property and gtk_action_sync_sensitive) were not being correctly disconnected, leading to actions continuing to affect disconnected proxies. (#150607)
* Fix the docs build.Matthias Clasen2004-08-131-1/+1
|
* Link to information about allowed action names. (#149620, David Malcolm)Matthias Clasen2004-08-121-0/+2
| | | | | | | Thu Aug 12 00:02:29 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkaction.c (gtk_action_new): Link to information about allowed action names. (#149620, David Malcolm)
* Add setters for the ::sensitive and ::visible properties of GtkAction.Matthias Clasen2004-08-121-0/+56
| | | | | | | | | | Wed Aug 11 23:14:25 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtk.symbols: * gtk/gtkaction.h: * gtk/gtkaction.c (gtk_action_set_sensitive): (gtk_action_set_visible): Add setters for the ::sensitive and ::visible properties of GtkAction. (#149622, David Malcolm)
* Add hidden aliases for exported symbols which are used internally in orderMatthias Clasen2004-08-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Aug 9 12:48:04 2004 Matthias Clasen <maclas@gmx.de> Add hidden aliases for exported symbols which are used internally in order to get rid of many PLT entries. (#145519, Arjan van de Ven) * gtk/Makefile.am: Add rules to generate gtk.def and from gtk.symbols, and make make check check the abi with abicheck.sh. (gtk_private_h_sources): Add gtkinternals.h (gtk_built_private_headers): Add gtkalias.h (gtk_extra_sources): Add gtk.symbols (EXTRA_DIST): Add makegtkalias.pl and abicheck.sh * gtk/gtk.symbols: New file. Definition of the GTK+ ABI. The file can be processed by cpp to filter out certain subsets of symbols. * gtk/abicheck.sh: New file. Script to check the actually symbols exported from libgtk-x11.2.0.so against the symbols found in gtk.symbols. * gtk/makegtkalias.pl: New file. Perl script to generate the header containing the alias definitions for internally used exported symbols from a list of symbols. * gtk/gtkinternals.h: New file. An uninstalled header listing symbols which must be exported for some reason and do not appear in any other header. * gtk/*.c: Include gtkalias.h
* Fix #133446, noticed by Christian Persch:Matthias Clasen2004-08-041-17/+57
| | | | | | | | | | | Wed Aug 4 01:04:48 2004 Matthias Clasen <maclas@gmx.de> Fix #133446, noticed by Christian Persch: * gtk/gtkaction.c (gtk_action_class_init): Add a new boolean property ::visible-overflown. * gtk/gtkaction.c (gtk_action_create_menu_proxy): Don't create a menu proxy if visible_overflown is FALSE.
* Use the canonical form of signal names after "notify::". Otherwise, noMatthias Clasen2004-07-311-7/+7
| | | | | | | | | | | Sat Jul 31 01:13:01 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkwindow.c: * gtk/gtkentry.c: * gtk/gtkaction.c: Use the canonical form of signal names after "notify::". Otherwise, no notification arrives. GObject should have a warning for that, really. (#148879, Lorenzo Gil Sánchez)