summaryrefslogtreecommitdiff
path: root/gtk/gtktoolitem.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fixes #136082 and #135265, patch by Morten Welinder.Federico Mena Quintero2004-03-061-0/+1
| | | | | | | | | | 2004-03-05 Federico Mena Quintero <federico@ximian.com> Fixes #136082 and #135265, patch by Morten Welinder. * configure.in: Use AC_SYS_LARGEFILE. * */*.c: #include <config.h>
* impl. (gtk_tool_item_class_init): hook it up.Michael Meeks2004-02-201-0/+17
| | | | | | | | | | | 2004-02-20 Michael Meeks <michael@ximian.com> * gtk/gtktoolitem.c (gtk_tool_item_property_notify): impl. (gtk_tool_item_class_init): hook it up. (gtk_tool_item_set_proxy_menu_item): synchronize sensitivity. * gtk/gtktoolbutton.c (gtk_tool_button_property_notify): chain to parent, fix strcmp bug.
* don't leak the menu item ID.Soeren Sandmann2004-01-171-0/+3
| | | | | | | Sat Jan 17 12:55:13 2004 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoolitem.c (gtk_tool_item_finalize): don't leak the menu item ID.
* The first part of the fix for #114351 (see also gdk-pixbuf/ChangeLog andMatthias Clasen2004-01-161-6/+6
| | | | | | | | | | | | | | | | | | | | Fri Jan 16 23:59:01 2004 Matthias Clasen <maclas@gmx.de> The first part of the fix for #114351 (see also gdk-pixbuf/ChangeLog and po/ChangeLog): * gtk/gtkintl.h: * gdk-pixbuf/gdk-pixbuf-i18n.h: * gdk/gdkintl.h: Define P_() for property blurbs and nicks. * gdk/gdkdisplaymanager.c: * gdk-pixbuf/gdk-pixbuf.c: * modules/input/gtkimcontextxim.c: * gtk/*.c: Mark property blurbs and nicks with P_(). * po/Makefile.in.in: Add --keyword=P_ to the xgettext invocation, since property blurbs and nicks are now marked with P_().
* Call gtk_tool_item_set_visible_vertical for PROP_VISIBLE_VERTICAL.Jody Goldberg2004-01-061-1/+1
| | | | | | | 2004-01-06 Jody Goldberg <jody@gnome.org> * gtk/gtktoolitem.c (gtk_tool_item_set_property) : Call gtk_tool_item_set_visible_vertical for PROP_VISIBLE_VERTICAL.
* Update my e-mail address.Anders Carlsson2003-12-291-1/+1
| | | | | | | | | | | | | | | | | | 2003-12-29 Anders Carlsson <andersca@gnome.org> * gtk/gtkradiotoolbutton.c: * gtk/gtkradiotoolbutton.h: * gtk/gtkseparatortoolitem.c: * gtk/gtkseparatortoolitem.h: * gtk/gtktoggletoolbutton.c: * gtk/gtktoggletoolbutton.h: * gtk/gtktoolbar.c: * gtk/gtktoolbar.h: * gtk/gtktoolbutton.c: * gtk/gtktoolbutton.h: * gtk/gtktoolitem.c: * gtk/gtktoolitem.h: Update my e-mail address.
* Rework sliding algorithm. - No more weird jumping when items are draggedSoeren Sandmann2003-11-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Nov 24 01:47:10 2003 Soeren Sandmann <sandmann@daimi.au.dk> Rework sliding algorithm. - No more weird jumping when items are dragged off and added to the toolbar, - More natural item movement * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Many changes. This function is now responsible for calculating intermediate positions during item sliding. It is also responsible for starting sliding if items disappear. Also turn off expanding when there is an overflow menu. (gtk_toolbar_begin_sliding, stop_sliding): New functions. (slide_idle_handler): New function. All the sliding is now done by gtk_toolbar_size_allocate(), so the idle handler now just checks if there is more sliding to be done. (compute_intermediate_allocation, position): new functions calculating intermediate steps in the slide animations. The new animation algorithm uses a constant speed instead of a constant must-be-finished-within time. (struct _ToolbarContent): use GtkAllocation goal_allocation; and GtkAllocation start_allocation; instead of gint start/goal_width; * gtk/gtktoolitem.c (gtk_tool_item_set_tooltip): fix typo in documentation
* Make this function take an index and a GtkToolItem.Soeren Sandmann2003-10-251-47/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | Thu Oct 23 21:55:10 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoolbar.c (gtk_toolbar_highlight_drop_location): Make this function take an index and a GtkToolItem. * tests/testtoolbar.c (main): Make "Show Arrow" default to true. Make one of the separators !draw and expand. Update for new highlight_drop_location() API. * gtk/gtktoolitem.[ch]: Remove "pack_end" property * gtk/gtktoolbar.h: Formatting fixes. * gtk/gtktoolbar.c: Remove "pack_end" child property. Allow separator tool items to expand. (logical_to_physical, physical_to_logical): Fix off-by-one errors (Fix #125472, Marco Pesenti Gritti) * gtk/gtkseparatortoolitem.[ch]: Add new "draw" property. (gtk_separator_tool_item_expose) only draw if "draw" is TRUE. Also return FALSE, not TRUE. (gtk_separator_too_item_{set|get}_property, (gtk_separator_tool_item_{set|get}_draw): new functions
* Fix signal doc comments to pacify gtk-doc.Matthias Clasen2003-10-011-3/+8
| | | | | * gtk/gtktoolitem.c (gtk_tool_item_class_init): Fix signal doc comments to pacify gtk-doc.
* Doc formatting tweaks.Matthias Clasen2003-09-301-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-10-01 Matthias Clasen <maclas@gmx.de> * gtk/gtkmain.c: Doc formatting tweaks. * gtk/gtktoolitem.c (gtk_tool_item_set_is_important): Fix a typo. * gtk/gtkcheckmenuitem.h (gtk_check_menu_item_set_draw_as_radio): Use the same parameter names as in .c file, to pacify gtk-doc. * gtk/gtktoggletoolbutton.[hc]: * gtk/gtktoolbutton.[hc]: * gtk/gtktoolitem.[hc]: * gtk/gtktoolbar.[hc]: * gtk/gtkcolorbutton.[hc]: * gtk/gtkfontbutton.[hc]: * gtk/gtkalignment.[hc]: Define GET_PRIVATE macros in the source, not in the header. * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_[sg]et_draw_as_radio): Document these as 2.4 API additions. * gtk/tmpl/gtkaction.sgml: Fix cross reference to GtkMenuMerge. * gtk/gtk-sections.txt: Additions. * gtk/tmpl/gtkitemfactory.sgml: Add hint to use #GtkUIManager instead.
* Fix some typos in docs.Matthias Clasen2003-08-311-4/+4
| | | | * gtk/gtktoolitem.c: Fix some typos in docs.
* add new "is_important" propertySoeren Sandmann2003-08-041-13/+392
| | | | | | | | | | | | | | | | Fri Aug 1 15:26:46 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoolbar.c, gtk/toolitem.c: add new "is_important" property * gtk/gtkradiotoolbutton.c (gtk_radio_tool_button_new_from_widget): Don't take a stock id * gtk/gtkradiotoolbutton.c (gtk_radio_tool_button_new_with_stock_from_widget): make this function take a stock_id. * gtk/toolbar: documentation
* remove unused overflow_item field.Soeren Sandmann2003-07-311-1/+0
| | | | | | | Thu Jul 31 15:29:28 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoolitem.c (struct _GtkToolItemPrivate): remove unused overflow_item field.
* make _gtk_tool_item_toolbar_reconfigured() an internal functionSoeren Sandmann2003-07-301-14/+9
| | | | | | | | | | Wed Jul 30 21:11:13 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoolitem.h: make _gtk_tool_item_toolbar_reconfigured() an internal function * gtk/gtktoolitem.h: remove unused declaration of _gtk_tool_item_get_drag_window().
* remove leftover request of {xy}thicknessSoeren Sandmann2003-07-191-4/+2
| | | | | | | Sat Jul 19 22:39:24 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoolitem.c (gtk_tool_item_size_request): remove leftover request of {xy}thickness
* By popular request give toolbuttons a border.Soeren Sandmann2003-07-181-7/+4
| | | | | | | | | | | | | | | | | | | | Fri Jul 18 18:43:01 2003 Soeren Sandmann <sandmann@daimi.au.dk> By popular request give toolbuttons a border. * gtk/gtktoolitem.c (gtk_tool_item_size_allocate): (gtk_tool_item_size_request): don't request and allocate a border around the child * gtk/gtktoolbutton.c (gtk_tool_button_size_allocate): (gtk_tool_button_size_request): remove these functions * gtk/gtktoolbar.c (gtk_toolbar_size_request): (gtk_toolbar_size_allocate): request and allocate a border if we have a shadow.
* remove strange #define fix cut'n'paste error use instance private data useSoeren Sandmann2003-07-081-7/+0
| | | | | | | | | | | | | Tue Jul 8 21:35:22 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoggletoolbutton.h: remove strange #define * gtk/gtktoolbutton.h: fix cut'n'paste error * gtk/gtktoolbutton.c (gtk_tool_button_init): use instance private data * gtk/gtktoolitem.c (gtk_tool_item_class_init): use instance private data instead of g_new0() * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): use instance private data
* remove correction on x when detail is "menuitem". With the new menu lookSoeren Sandmann2003-07-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Jul 8 19:57:14 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkstyle.c (gtk_default_draw_arrow): remove correction on x when detail is "menuitem". With the new menu look is isn't needed anymore. * gtk/gtktoolitem.c (gtk_tool_item_toolbar_reconfigured): queue a resize here, so that tool items will get a chance to relayout themselves based on the toolbar configuration. change DEFAULT_SPACE_SIZE to 4 instead of 5 * gtk/gtktoolbar.c Get rid of "!GTK_BIN (item)->child means separator". Separators are widgets in their own right change DEFAULT_SPACE_SIZE to 4 instead of 5 (get_space_size): remove this function (toolbar_item_is_homogeneous): new function * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_size_request): new function. Tue Jul 8 14:10:35 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoggletoolbutton.h: use private data, add new internal function _gtk_toggle_tool_button_get_button() * gtk/gtktoolbutton.h: move to private data * gtk/gtkradiotoolbutton.c, gtk/gtktoolbutton.c: updates for new private data.
* fix a type check, (#116947, Krasimir Angelov)Soeren Sandmann2003-07-081-48/+116
| | | | | | | | | | | | | | | | | | Tue Jul 8 12:50:20 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoolbutton.c (gtk_tool_button_get_icon_widget): fix a type check, (#116947, Krasimir Angelov) * gtk/gtktoolbar.c: Use new GtkToolItem accessors. * gtk/gtktoolitem.[ch]: Use a private struct to hold the instance data. Not instance private data yet, because of bug 116921. * gtk/gtktoolitem.h: new accessors: gtk_tool_item_get_homogeneous () gtk_tool_item_get_expand () gtk_tool_item_get_pack_end () gtk_tool_item_get_use_drag_window ()
* new test for removing itemsSoeren Sandmann2003-07-041-6/+2
| | | | | | | | | | | | | | | | | | Fri Jul 4 19:06:31 2003 Soeren Sandmann <sandmann@daimi.au.dk> * tests/stresstest-toolbar.c: new test for removing items * tests/testtoolbar.c: add a popup menu * gtk/gtkcontainer.c (gtk_container_remove): add hack to avoid assert widget->parent == container when the container is a toolbar. * gtk/gtktoolbar.c (gtk_toolbar_remove_tool_item): Make much simpler. Also make correct. * gtk/gtktoolbar.c (gtk_toolbar_button_press): make popup_context_menu a boolean handled signal.
* gtkradiotoolbutton.c gtkradiotoolbutton.h gtktoggletoolbutton.cSoeren Sandmann2003-06-291-0/+697
Mon Jun 30 01:20:19 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtkradiotoolbutton.c * gtkradiotoolbutton.h * gtktoggletoolbutton.c * gtktoggletoolbutton.h * gtktoolbutton.c * gtktoolbutton.h * gtktoolitem.c * gtktoolitem.h * gtktoolbar.c * gtktoolbar.h * gtkseparatortoolitem.c * gtkseparatortoolitem.h New toolbar.