summaryrefslogtreecommitdiff
path: root/gtk/gtktoolbar.h
Commit message (Collapse)AuthorAgeFilesLines
* Add annotations to gtk headersMatthias Clasen2013-05-051-0/+17
| | | | Add annotations to all exported functions in GTK+ headers.
* Move single-include guards inside include guardsMatthias Clasen2012-12-281-4/+4
| | | | | | gcc has optimizations for include guards that only work if they are outermost in the the header. https://bugzilla.gnome.org/show_bug.cgi?id=689810
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* Add padding to class structsMatthias Clasen2010-10-191-0/+1
|
* separatortoolitem: Port to draw vfuncBenjamin Otte2010-09-261-2/+1
|
* Use GtkFooPrivate instead GtkFooPrivJavier Jardón2010-08-271-4/+4
|
* GtkToolbar: move public members to private structureJavier Jardón2010-08-141-17/+2
|
* Remove deprecated GtkToolbar codeJavier Jardón2010-05-241-22/+0
| | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=616817
* Remove deprecated GtkTooltipsChristian Dywan2010-05-031-7/+0
|
* Remove all traces of GDK_PIXBUF/GTK_DISABLE_SINGLE_INCLUDESMichael Natterer2010-05-031-1/+1
| | | | ...and disallow inclusion of individual files unconditionally.
* Remove GtkPixmap completelyJavier Jardón2010-05-031-7/+1
|
* Remove GtkSignal completelyJavier Jardón2010-05-031-1/+0
|
* Remove deprecated GtkToolbar functionsChristian Dywan2010-05-031-100/+0
|
* move deprecated functions together, move setters and getters together,Michael Natterer2008-11-111-14/+19
| | | | | | | | | | 2008-11-11 Michael Natterer <mitch@imendio.com> * gtk/gtktoolbar.h: move deprecated functions together, move setters and getters together, some indentation cleanup. svn path=/trunk/; revision=21778
* implement the GtkOrientable interface and deprecateMichael Natterer2008-11-111-1/+3
| | | | | | | | | | | | 2008-11-11 Michael Natterer <mitch@imendio.com> * gtk/gtktoolbar.[ch]: implement the GtkOrientable interface and deprecate gtk_toolbar_get,set_orientation(). * gtk/gtk.symbols: changed accordingly. svn path=/trunk/; revision=21777
* no need to include <gtk/gtkenums.h> in headers which somehow includeMichael Natterer2008-10-301-1/+0
| | | | | | | | | | 2008-10-30 Michael Natterer <mitch@imendio.com> * gtk/*.h: no need to include <gtk/gtkenums.h> in headers which somehow include gtkobject.h or another header which includes it. svn path=/trunk/; revision=21734
* no need to include <gdk/gdk.h> in any widget header, it's included viaMichael Natterer2008-10-301-1/+1
| | | | | | | | | | 2008-10-30 Michael Natterer <mitch@imendio.com> * gtk/*.h: no need to include <gdk/gdk.h> in any widget header, it's included via gtkwidget.h anyway. svn path=/trunk/; revision=21732
* add "Deprecated: 2.4" to all the deprecated append(), prepend() andMichael Natterer2008-09-221-7/+7
| | | | | | | | | | | | 2008-09-22 Michael Natterer <mitch@imendio.com> * gtk/gtktoolbar.[ch]: add "Deprecated: 2.4" to all the deprecated append(), prepend() and insert() functions and recommend to use gtk_toolbar_insert() instead. Use GCallback instead of GtkSignalFunc even in deprecated API. svn path=/trunk/; revision=21485
* Bug 455268 - Add gtk-enable-tooltips GtkSettingKristian Rietveld2008-07-021-0/+2
| | | | | | | | | | | | | | | | | | | | 2008-07-02 Kristian Rietveld <kris@imendio.com> Bug 455268 - Add gtk-enable-tooltips GtkSetting * gtk/gtk.symbols: * gtk/gtktoolbar.[ch] (gtk_toolbar_[gs]et_tooltips): deprecated. * gtk/gtksettings.c: introduce gtk-enable-tooltips XSetting. * gtk/gtktooltip.c (_gtk_tooltip_handle_event): take the newly introduced XSetting into account. * demos/gtk-demo/appwindow.c: don't use the now deprecated gtk_toolbar_set_tooltips(). svn path=/trunk/; revision=20730
* 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
* Switch to "guint GSEAL (foo) : width;" when packing fields in guints.Tim Janik2008-06-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gtk/gtkbox.h: * gtk/gtkbutton.h: * gtk/gtkcellrenderer.h: * gtk/gtkcellrenderertext.h: * gtk/gtkcheckmenuitem.h: * gtk/gtkcontainer.h: * gtk/gtkentry.h: * gtk/gtkhandlebox.h: * gtk/gtkimcontextsimple.h: * gtk/gtklabel.h: * gtk/gtkliststore.h: * gtk/gtkmenu.h: * gtk/gtkmenuitem.h: * gtk/gtkmenushell.h: * gtk/gtknotebook.h: * gtk/gtkpaned.h: * gtk/gtkplug.h: * gtk/gtkprintjob.h: * gtk/gtkprogressbar.h: * gtk/gtkrange.h: * gtk/gtkscale.h: * gtk/gtkscrolledwindow.h: * gtk/gtksizegroup.h: * gtk/gtksocket.h: * gtk/gtkspinbutton.h: * gtk/gtkstatusbar.h: * gtk/gtktable.h: * gtk/gtktearoffmenuitem.h: * gtk/gtktextbuffer.h: * gtk/gtktextview.h: * gtk/gtktogglebutton.h: * gtk/gtktoolbar.h: * gtk/gtktreestore.h: * gtk/gtktreeviewcolumn.h: * gtk/gtkwindow.h: Do not specify width inside GSEAL() when packing fields in guints. svn path=/trunk/; revision=20621
* gtktoolbar.h: include bit-size of fields inside GSEAL parens.Tim Janik2008-06-201-2/+2
| | | | svn path=/trunk/; revision=20546
* Seal GtkToolbarTim Janik2008-06-201-11/+11
| | | | svn path=/trunk/; revision=20540
* gtk/gtkcellrendereraccel.h gtk/gtkfilechooser.h gtk/gtkfilechooserdialog.hMichael Natterer2008-06-131-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-06-13 Michael Natterer <mitch@imendio.com> * gtk/gtkcellrendereraccel.h * gtk/gtkfilechooser.h * gtk/gtkfilechooserdialog.h * gtk/gtkfilechooserwidget.h * gtk/gtkmenutoolbutton.h * gtk/gtkpagesetup.h * gtk/gtkpapersize.h * gtk/gtkprintcontext.h * gtk/gtkprintoperation.h * gtk/gtkprintoperationpreview.h * gtk/gtkprintsettings.h * gtk/gtkradiotoolbutton.h * gtk/gtkrecentchooser.h * gtk/gtkrecentchooserdialog.h * gtk/gtkrecentchoosermenu.h * gtk/gtkrecentchooserwidget.h * gtk/gtkseparatortoolitem.h * gtk/gtkshow.h * gtk/gtktoggletoolbutton.h * gtk/gtktoolbar.h * gtk/gtktoolbutton.h * gtk/gtktooltip.h: #include <gtk/gtkfoo.h> instead of "gtk/gtkfoo.h" or even just "gtkfoo.h" in public headers. svn path=/trunk/; revision=20375
* whitespace cleanup: remove trailing whitespace and excess newlines andMichael Natterer2008-05-281-6/+6
| | | | | | | | | | | 2008-05-28 Michael Natterer <mitch@imendio.com> * gtk/gtk*.h: whitespace cleanup: remove trailing whitespace and excess newlines and sprinkled some newlines where needed. Zero code or formatting changes included. svn path=/trunk/; revision=20225
* define __GTK_H_INSIDE__ around including all other headers.Michael Natterer2008-05-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-05-28 Michael Natterer <mitch@imendio.com> * gtk/gtk.h: define __GTK_H_INSIDE__ around including all other headers. * gtk/gtktypebuiltins.h.template * gtk/gtkversion.h.in * gtk/gtk*.h: add single-include guards that #error out if GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is included individually. * gtk/gtkprintbackend.h * gtk/gtkprinter-private.h * gtk/gtktextlayout.h * gtk/gtktexttagprivate.h * gtk/gtktexttypes.h * gtk/gtktreedatalist.h: include <gtk/gtk.h> instead of individual headers in these private or semi-private headers. * gtk/gtkimmodule.h: also here because it's not in gtk.h. * gtk/gtkpagesetupunixdialog.h * gtk/gtkprinter.h * gtk/gtkprintjob.h * gtk/gtkprintunixdialog.h: likewise in the gtkunixprint headers. * gtk/gtkclist.h * gtk/gtkcombo.h * gtk/gtkctree.h * gtk/gtkfilesel.h * gtk/gtkitemfactory.h * gtk/gtklist.h * gtk/gtklistitem.h * gtk/gtkoldeditable.h * gtk/gtkoptionmenu.h * gtk/gtkpixmap.h * gtk/gtkpreview.h * gtk/gtksignal.h * gtk/gtktipsquery.h: whenever possible, include only <gtk/gtk.h> instead of individual headers in these deprecated headers. They don't get included at all when GTK_DISABLE_DEPRECATED is defined, so if an app needs them anyway, it must undef GTK_DISABLE_DEPRECATED and include them individually, which should continue to work. * gtk/gtkclist.c: include "gtkctree.h" because of the change above. svn path=/trunk/; revision=20221
* gtk/gtkbutton.h gtk/gtkcellrenderer.h gtk/gtkimcontext.h gtk/gtkstyle.hMichael Natterer2008-01-251-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-25 Michael Natterer <mitch@imendio.com> * gtk/gtkbutton.h * gtk/gtkcellrenderer.h * gtk/gtkimcontext.h * gtk/gtkstyle.h * gtk/gtktoolbar.h * gtk/gtktooltip.h * gtk/gtktreeprivate.h * gtk/gtktreeviewcolumn.h * gtk/gtkwidget.h: add const to constant structs which are passed into GTK+. Also add some forgotten const for const strings. * gtk/gtkbutton.c * gtk/gtkcellrenderer.c * gtk/gtkimcontext.c * gtk/gtkstyle.c * gtk/gtktoolbar.c * gtk/gtktooltip.c * gtk/gtktreeview.c * gtk/gtktreeviewcolumn.c * gtk/gtkwidget.c: changed accordingly. svn path=/trunk/; revision=19399
* Change GtkToolItem to retrieve its properties from GtkToolShell interface,Mathias Hasselmann2007-12-141-1/+0
| | | | | | | | | | | | | | | | instead of relying on being child of a GtkToolbar. (#5034079) * gtk/gtk.symbols, docs/reference/gtk/gtk-docs.sgml, docs/reference/gtk/gtk-sections.txt: Add GtkToolShell symbols. * docs/reference/gtk/tmpl/gtktoolitem.sgml: Move section docs inline. * gtk/gtktoolbar.c: Implement GtkToolShellIface. * gtk/gtktoolbar.h: Remove _gtk_toolbar_rebuild_menu. * gtk/gtktoolitem.c: Use GtkToolShell, instead of GtkToolbar. Take section docs from template file and update them for GtkToolShell. * gtk/Makefile.am: Add gtk/gtktoolshell.c and gtk/gtktoolshell.h. * gtk/gtktoolshell.c, gtk/gtktoolshell.h: New GtkToolShellIface. svn path=/trunk/; revision=19177
* Replace non-deprecated API using old tooltips API, deprecate old tooltipsKristian Rietveld2007-07-091-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-07-09 Kristian Rietveld <kris@imendio.com> Replace non-deprecated API using old tooltips API, deprecate old tooltips API for real. (#451575). * gtk/gtk.symbols: updated. * gtk/gtkwidget.c (gtk_widget_real_show_help): don't call _gtk_tooltips_toggle_keyboard_mode() anymore. * gtk/gtkmenutoolbutton.[ch] (gtk_menu_tool_button_set_arrow_tooltip): deprecated, (gtk_menu_tool_button_set_arrow_tooltip_{text,markup}): replacements. * gtk/gtktoolitem.[ch] (gtk_tool_item_real_set_tooltip): use new API, (gtk_tool_item_set_tooltip): deprecated, (gtk_tool_item_set_tooltip_{text,markup): replacements. (GtkToolItemClass:set_tooltip): deprecated. * gtk/gtktooltips.[ch]: strip out all unused parts, made gtk_tooltips_set_tip() call gtk_widget_set_tooltip_text(), deprecate all of gtk_tooltips_*. * gtk/gtktoolbar.[ch] (gtk_toolbar_get_tooltips): always return TRUE, (GtkToolbar:tooltips): deprecated, renamed. * gtk/gtkaction.c (gtk_action_sync_tooltip): use new API to set the tooltip text. * tests/autotestfilechooser.c: #undef GTK_DISABLE_DEPRECATED for now, will be removed GtkFileChooserDefault has been converted. svn path=/trunk/; revision=18418
* Forgotten fileMatthias Clasen2007-06-021-2/+1
| | | | svn path=/trunk/; revision=18008
* changed two private guint that used to hold signal handler IDs to twoMichael Natterer2005-11-241-4/+4
| | | | | | | | | | | | 2005-11-24 Michael Natterer <mitch@imendio.com> * gtk/gtktoolbar.h (struct _GtkToolbar): changed two private guint that used to hold signal handler IDs to two guint of padding. * gtk/gtktoolbar.c (struct _GtkToolbarPrivate): added them as gulong here. (gtk_toolbar_screen_changed): changed accordingly.
* Include gtkmodules.h. (#155885, Kazuki IWAMOTO)Matthias Clasen2004-10-201-0/+1
| | | | | | | | 2004-10-20 Matthias Clasen <mclasen@redhat.com> * gtk/gtkrc.c: Include gtkmodules.h. (#155885, Kazuki IWAMOTO) * gtk/gtktoolbar.h: Add _gtk_toolbar_rebuild_menu(). (#155885)
* Call gtk_tool_item_rebuild_menu().Søren Sandmann2004-09-141-1/+0
| | | | | | | | | | | | | | | | | | | | 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.
* Rename function parameters from index to index_ to prevent clash with BSDMatthias Clasen2004-06-021-1/+1
| | | | | | | | | | | | Tue Jun 1 23:14:46 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtktoolbar.h: * gtk/gtktoolbar.c: * gtk/gtkentrycompletion.h: * gtk/gtkentrycompletion.c: * gtk/gtkcombobox.h: * gtk/gtkcombobox.c: Rename function parameters from index to index_ to prevent clash with BSD index(). (#143001)
* Add boolean destroying (gtk_menu_destroy): Set priv->destroyingSoeren Sandmann2004-03-091-37/+39
| | | | | | | | | | | | | | Tue Mar 9 02:11:50 2004 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkmenu.c Fix bug 136446. (struct _GtkMenuPrivate): Add boolean destroying (gtk_menu_destroy): Set priv->destroying (gtk_menu_remove): don't update the table information when the menu is being destroyed. * gtk/gtkmenu.c (gtk_menu_set_monitor): Formatting fix * gtk/gtktoolbar.[ch]: Some formatting fixes
* Add _gtk_toolbar_paint_space_line(), _gtk_toolbar_get_default_space_sizeSoeren Sandmann2004-01-181-5/+5
| | | | | | | | | | Sun Jan 18 15:25:39 2004 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoolbar.[ch]: Add _gtk_toolbar_paint_space_line(), _gtk_toolbar_get_default_space_size (); * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_expose, get_space_size): Use them here.
* Don't leak the overflow menu.Soeren Sandmann2004-01-171-5/+11
| | | | | | | | | | Sat Jan 17 12:37:46 2004 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoolbar.c (gtk_toolbar_finalize): Don't leak the overflow menu. * gtk/gtktoolbar.h (struct _GtkToolbar): Make some fields public. [#127726]
* 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.
* Add this function; remove gtk_toolbar_highlight_drop_location() andSoeren Sandmann2003-10-291-5/+3
| | | | | | | | | | Wed Oct 29 02:54:35 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoolbar.[ch] (gtk_toolbar_set_drop_highlight_item): Add this function; remove gtk_toolbar_highlight_drop_location() and gtk_toolbar_unhighlight_drop_location(). Also fix bug where the number of overflowed items were miscounted.
* Make this function take an index and a GtkToolItem.Soeren Sandmann2003-10-251-13/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add support for OS X like sliding of toolbar items during drag and drop,Soeren Sandmann2003-10-201-33/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Oct 20 20:27:22 2003 Soeren Sandmann <sandmann@daimi.au.dk> Add support for OS X like sliding of toolbar items during drag and drop, (#110919, Dave Bordoley) Make dnd highlighting the responsibility of the application. (Fixes #116298, Owen Taylor) * gtk/gtktoolbar.h: Add prototypes for new API. * gtk/gtktoolbar.c (physical_to_logical, logical_to_physical): new functions converting between "position including placeholders" and "position excluding placeholders". (gtk_toolbar_class_init): remove drag_leave and drag_motion handlers (struct _ToolbarContent): new struct containing information related to toolbar items. (gtk_toolbar_highlight_drop_location): new public function (gtk_toolbar_unhighlight_drop_location): new public function * tests/testtoolbar.c (toolbar_drag_motion, toolbar_drag_leave): new functions (main): connect to dnd signals. Make the "New" item expand to make drag and drop more exciting.
* Doc formatting tweaks.Matthias Clasen2003-09-301-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* swap icon_widget and label arguments to match BonoboUIToolbarButton.Soeren Sandmann2003-07-301-7/+8
| | | | | | | | | | Wed Jul 30 17:03:58 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoolbutton.[ch]: (gtk_tool_button_new): swap icon_widget and label arguments to match BonoboUIToolbarButton. * gtk/gtktoolbar.h: un-deprecate gtk_toolbar_{set|unset}_style().
* Move documentation inline from template files.Soeren Sandmann2003-07-291-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Jul 29 13:55:44 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoolbar.c (gtk_toolbar_set_style, gtk_toolbar_prepend_element, gtk_toolbar_append_element, gtk_toolbar_insert_space, gtk_toolbar_prepend_space, gtk_toolbar_append_space, gtk_toolbar_insert_item, gtk_toolbar_prepend_item, gtk_toolbar_append_item, gtk_toolbar_set_tooltips, gtk_toolbar_set_orientation, gtk_toolbar_new, gtk_toolbar_prepend_item): Move documentation inline from template files. * gtk/gtktoolbar.c (gtk_toolbar_insert_element, gtk_toolbar_insert_widget, gtk_toolbar_prepend_widget, gtk_toolbar_append_widget, gtk_toolbar_remove_space, gtk_toolbar_insert_stock, gtk_toolbar_unset_icon_size, gtk_toolbar_get_icon_size, gtk_toolbar_set_icon_size, gtk_toolbar_get_tooltips, gtk_toolbar_unset_style, gtk_toolbar_get_style, gtk_toolbar_get_orientation) Copy documentation from stable that was added after the EggToolbar branched. * gtk/gtktoolbar.h: deprecate gtk_toolbar_unset_icon_size()
* new test for removing itemsSoeren Sandmann2003-07-041-9/+8
| | | | | | | | | | | | | | | | | | 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.
* Insert cast to fix warning. Assign something to old_value to quiet gccSoeren Sandmann2003-07-031-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Jul 3 03:13:20 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkpaned.c (gtk_paned_set_child_property): Insert cast to fix warning. Assign something to old_value to quiet gcc * gtk/gtkcalendar.c (start_spinning): gtk_timeout_add->g_timeout_add * gtk/gtkicontheme.c (theme_lookup_icon): Make it compile (remove double semicolon) * gtk/gtktoolbutton.c (gtk_tool_button_class_init): Long comment about properties. (gtk_tool_button_class_init): Improve text for "use_underline" property (gtk_tool_button_create_menu_proxy): Fix up to use_mnemonic based on whether the passed-in label has use_mnemonic set (gtk_tool_button_create_menu_proxy): Split image cloning out in new function. Make that function also handle image with pixbuf storage. (gtk_tool_button_construct_contents): Use gtk_widget_destroy() instead of gtk_container_remove(). (gtk_tool_button_construct_contents): Fix eliding bug * gtk/gtktoolbar.c (gtk_toolbar_finalize): New function. Unref tooltips, pointed out by Morten Welinder (gtk_toolbar_button_press): Make popup_context_menu signal provide coordinates and button number * tests/testtoolbar.c (main): Add new pixbuf toolbutton * tests/apple-red.png: new file
* Add new toolbar headersSoeren Sandmann2003-07-021-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Jul 2 15:42:26 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtk.h: Add new toolbar headers * tests/testtoolbar.c: new file * tests/Makefile.am (noinst_PROGRAMS): Add testtoolbar.c * gtk/gtkexpander.c (gtk_expander_class_init): Make it compile Tue Jul 1 22:49:25 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoolbar.c: (gtk_toolbar_remove_tool_item): Fix bug where list is changed inside a for loop (pointed out by Morten Welinder). (gtk_toolbar_focus_home_or_end): Minor formatting change Comments from Owen: * gtk/gtktoolbutton.c: remove copy of elide_underscores(). Use gtk_toolbar_elide_underscores instead. * gtk/gtktoolbar.c: rename signal from focus_ends to focus_home_or_end. (_gtk_toolbar_elide_underscores): export this as an internal function. (gtk_toolbar_move_focus): add comment explaining difference to gtk_toolbar_focus(); (gtk_toolbar_list_children_in_focus_order): Make TAB_FORWARD and TAB_BACKWARD focus the right widgets in RTL mode * gtk/gtktoolbutton.c (gtk_tool_button_new): Change to take "label" and "icon" parameters * gtk/gtktoolbutton.[ch]: remove icon_set property.
* gtkradiotoolbutton.c gtkradiotoolbutton.h gtktoggletoolbutton.cSoeren Sandmann2003-06-291-78/+101
| | | | | | | | | | | | | | | | | | | 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.
* Deprecation cleanupManish Singh2002-10-091-7/+9
| | | | | | | | Tue Oct 8 17:34:26 2002 Manish Singh <yosh@gimp.org> * gtk/gtkmain.c gtk/gtkscrolledwindow.[ch] gtk/gtksettings.c gtk/gtkstatusbar.[ch] gtk/gtkstyle.c gtk/gtktoolbar.[ch] gtk/gtkviewport.[ch] gtk/gtkwindow.[ch]: Deprecation cleanup