summaryrefslogtreecommitdiff
path: root/gtk/gtktoolbar.c
Commit message (Collapse)AuthorAgeFilesLines
* Avoid a warning when finalizing toolbarsMatthias Clasen2010-12-011-2/+6
| | | | | Recent changes cause disposing menus to emit ::deactivate. So better disconnect the deactivate handler first.
* Remove size_request from GtkToolbarMatthias Clasen2010-10-271-3/+33
| | | | | This is just a bandaid fix, the toolbar should really return proper min/natural sizes, so that we can handle the overflow properly.
* Use accessor functions to access GtkButtonJavier Jardón2010-10-261-1/+1
|
* Remove gtk_widget_hide_all()Matthias Clasen2010-10-191-30/+0
| | | | | | it's useless and a trap for programmers https://bugzilla.gnome.org/show_bug.cgi?id=438318
* docs: Move documentation to inline comments: GtkToolbarJavier Jardón2010-10-031-0/+23
|
* toolbar: Fix compilation warnings - missing castBenjamin Otte2010-09-281-1/+1
|
* Remove GtkObject completelyMatthias Clasen2010-09-261-1/+1
|
* Move GtkSizeRequest into GtkWidgetBenjamin Otte2010-09-261-13/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | It doesn't make sense to keep them separate as GtkSizeRequest requires a GtkWidget and GtkWidget implements GtkSizeRequest, so you can never have one without the other. It also makes the code a lot easier because no casts are required when calling functions. Also, the names would translate to gtk_widget_get_width() and people agreed that this would be a too generic name, so a "preferred" was added to the names. So this patch moves the functions: gtk_size_request_get_request_mode() => gtk_widget_get_request_mode() gtk_size_request_get_width() => gtk_widget_get_preferred_width() gtk_size_request_get_height() => gtk_widget_get_preferred_height() gtk_size_request_get_size() => gtk_widget_get_preferred_size() gtk_size_request_get_width_for_height() => gtk_widget_get_preferred_width_for_height() gtk_size_request_get_height_for_width() => gtk_widget_get_preferred_height_for_width() ... and moves the corresponding vfuncs to the GtkWidgetClass. The patch also renames the implementations of the vfuncs in widgets to include the word "preferrred".
* API: Rename gtk_cairo_paint_*() to gtk_paint_*()Benjamin Otte2010-09-261-5/+5
| | | | | | Large patch, but just renaming. Indentation should still mostly be correct because I took care of keeping the indentation for this function name.
* separatortoolitem: Port to draw vfuncBenjamin Otte2010-09-261-22/+24
|
* toolbar: Port to draw vfuncBenjamin Otte2010-09-261-29/+24
|
* toolbar: Don't propagate events to placeholdersBenjamin Otte2010-09-261-2/+4
| | | | In particular don't when that's done using uninitialized memory
* Tons of transfer annotationsMatthias Clasen2010-09-211-4/+4
|
* Use gtk_size_request_get_size() instead deprecated gtk_widget_size_request()Javier Jardón2010-09-151-11/+14
| | | | | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=629598 Signed-off-by: Javier Jardón <jjardon@gnome.org> Signed-off-by: Tristan Van Berkom <tristanvb@openismus.com>
* Use gtk_size_request_get_size() instead deprecated ↵Javier Jardón2010-09-131-5/+7
| | | | | | gtk_widget_get_child_requisition() Fixes https://bugzilla.gnome.org/show_bug.cgi?id=629177
* GDK: Prefix key names with KEY_Colin Walters2010-09-081-11/+11
| | | | | | | | | | | | | The keysyms create a lot of potential namespace conflicts for C, and are especially problematic for introspection, where we take constants into the namespace, so GDK_Display conflicts with GdkDisplay. For C application compatiblity, add gdkkeysyms-compat.h which uses the old names. Just one user in GTK+ continues to use gdkkeysyms-compat.h, which is the gtkimcontextsimple.c, since porting that requires porting more custom Perl code.
* Use GtkFooPrivate instead GtkFooPrivJavier Jardón2010-08-271-62/+62
|
* gtk/gtktoolbar.c: use accessor functions to access GtkWidgetJavier Jardón2010-08-221-71/+104
|
* GtkToolbar: move public members to private structureJavier Jardón2010-08-141-200/+246
|
* Allow windows to be dragged by clicking on empty areasMatthias Clasen2010-07-161-3/+27
| | | | | | | | | | | Allow windows to be dragged by clicking on empty areas in menubars and toolbars. This is under theme control, via the GtkWidget::window-dragging style property. The idea is that it makes sense to turn this on if a theme makes the window frame and the menubar/toolbar appear visually contiguous. The main patch was written by Cody Russell, with a contribution by Ayan George. See bug 611313.
* Use accessor functions to acces GtkContainerJavier Jardón2010-07-131-26/+28
|
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-4/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Remove deprecated GtkToolbar codeJavier Jardón2010-05-241-608/+84
| | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=616817
* Remove deprecated GtkTooltipsChristian Dywan2010-05-031-2/+1
|
* Remove old GtkToolbar compatibility APIChristian Dywan2010-05-031-251/+0
|
* Remove deprecated GtkToolbar functionsChristian Dywan2010-05-031-567/+3
|
* Fix compilation warning: set a default case in switchsJavier Jardón2010-04-151-1/+9
|
* Don't use GTK_WIDGET_STATE in internal code anymoreJavier Jardón2010-03-091-5/+5
| | | | | | Use gtk_widget_get/set_state() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_REALIZED)Javier Jardón2010-03-061-1/+1
| | | | | | Use new API instead: gtk_widget_set_realized () https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_NO_WINDOW)Javier Jardón2010-03-061-1/+1
| | | | | | Use new API instead: gtk_widget_set_has_window () https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Deprecate widget flag: GTK_WIDGET_REALIZEDJavier Jardón2010-03-031-2/+2
| | | | | | Use gtk_widget_get_realized() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Deprecate widget flag: GTK_WIDGET_MAPPEDJavier Jardón2010-03-031-3/+3
| | | | | | Use gtk_widget_get_mapped() instead. https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_CAN_FOCUS)Javier Jardón2010-03-021-1/+1
| | | | Use new API instead: gtk_widget_set_can_focus ()
* Deprecate widget flag: GTK_WIDGET_VISIBLEJavier Jardón2010-03-011-4/+4
| | | | | | Use gtk_widget_get_visible() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Deprecate widget flag: GTK_WIDGET_DRAWABLEJavier Jardón2010-03-011-1/+1
| | | | | | Use gtk_widget_is_drawable() instead. https://bugzilla.gnome.org/show_bug.cgi?id=69872
* [annotations] Add allow-noneJohan Dahlin2010-02-191-3/+3
| | | | | | | | 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
* Change GtkIconSize to int in params/return valuesDan Winship2009-12-191-2/+4
| | | | | | | | | GtkIconSize is an extensible enumeration (via gtk_icon_size_register()), so methods that claim to take/return a GtkIconSize need to actually use "int" to work correctly with bindings that are strict about enum values. https://bugzilla.gnome.org/show_bug.cgi?id=604895
* [introspection] Merge in Gtk-custom.c annotationsColin Walters2009-12-161-13/+13
| | | | | | | | 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.
* GtkToolPalette: Use gtk-toolbar-style and gtk-toolbar-icon-size settings.Murray Cumming2009-07-161-14/+0
| | | | | | | | | | | | | | | * gtk/gtksettings.c: (settings_install_property_parser): Handle enums too. * gtk/gtktoolbar.c (gtk_toolbar_class_init): Move the gtk-toolbar-style and gtk-toolbar-icon-size settings into GtkSettings because we now use it in GtkToolPalette too. * gtk/gtktoolpalette.[h|c]: Add gtk_tool_palette_unset_style() and gtk_tool_palette_unset_icon_size(), and use the toolbar-style and icon-size from GtkSettings if these are not set via the set functions. * demos/gtk-demo/toolpalette.c (on_combo_style_changed), (do_toolpalette): Add and handle a -1 value to mean the desktop "Default" toolbar style.
* Make sure we queue at least one resize. This fixes a problem withMatthias Clasen2009-01-311-0/+2
| | | | | | | | | * gtk/gtktoolbar.c (slide_idle_handler): Make sure we queue at least one resize. This fixes a problem with toolitems remaining invisible when they shouldn't that was reported by Christian Weiske. svn path=/trunk/; revision=22260
* Remove a redundant include from gtktoolbar.cChristian Dywan2009-01-181-1/+0
| | | | | | | | | | | 2009-01-18 Christian Dywan <christian@twotoasts.de> Remove a redundant include from gtktoolbar.c * gtk/gtktoolbar.c: Remove second inclusion of gtktoolbar.h. Patch by Enrico Tröger. svn path=/trunk/; revision=22130
* implement the GtkOrientable interface and deprecateMichael Natterer2008-11-111-42/+51
| | | | | | | | | | | | 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
* Revert the GtkSettings::gtk-toolbar-icon-size part of the previous change,Matthias Clasen2008-10-121-6/+6
| | | | | | | | | | | | 2008-10-11 Matthias Clasen <mclasen@redhat.com> * gtk/gtktoolbar.c: Revert the GtkSettings::gtk-toolbar-icon-size part of the previous change, since it doesn't work correctly without extra complication, and using custom icon sizes doesn't make too much sense in a desktop-wide setting. svn path=/trunk/; revision=21633
* Bug 555186 – Setting gtk-toolbar-icon-size with custom icon_sizeMatthias Clasen2008-10-121-14/+14
| | | | | | | | | | | | | 2008-10-11 Matthias Clasen <mclasen@redhat.com> Bug 555186 – Setting gtk-toolbar-icon-size with custom icon_size * gtk/gtktoolbar.c: Turn GtkToolbar::icon-size and GtkSettings::gtk-toolbar-icon-size into int properties, to allow the use of app-registered icon sizes. svn path=/trunk/; revision=21632
* add "Deprecated: 2.4" to all the deprecated append(), prepend() andMichael Natterer2008-09-221-27/+55
| | | | | | | | | | | | 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
* gtk/gtkaccellabel.c gtk/gtkaction.c gtk/gtkclist.c gtk/gtkcolorbutton.cSven Neumann2008-08-121-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-12 Sven Neumann <sven@gimp.org> * gtk/gtkaccellabel.c * gtk/gtkaction.c * gtk/gtkclist.c * gtk/gtkcolorbutton.c * gtk/gtkctree.c * gtk/gtkdialog.c * gtk/gtkdnd-quartz.c * gtk/gtkdnd.c * gtk/gtkentry.c * gtk/gtkfilechooserdefault.c * gtk/gtkfilesel.c * gtk/gtkgamma.c * gtk/gtkiconview.c * gtk/gtkkeyhash.c * gtk/gtklabel.c * gtk/gtkmenu.c * gtk/gtkmenubar.c * gtk/gtkpaned.c * gtk/gtkrecentchooserdialog.c * gtk/gtkrecentchooserutils.c * gtk/gtkselection.c * gtk/gtksizegroup.c * gtk/gtktextbtree.c * gtk/gtktextbuffer.c * gtk/gtktextview.c * gtk/gtktoolbar.c * gtk/gtktreemodel.c * gtk/gtkuimanager.c * gtk/gtkwindow-decorate.c * gtk/gtkwindow.c: use canonical signal names in some more places that I missed earlier. Also changed this in the documentation and comments. svn path=/trunk/; revision=21094
* gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkentry.cMichael Natterer2008-08-121-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-12 Michael Natterer <mitch@imendio.com> * gtk/gtkaccellabel.c * gtk/gtkcalendar.c * gtk/gtkclist.c * gtk/gtkentry.c * gtk/gtkeventbox.c * gtk/gtkfilechooserbutton.c * gtk/gtkfilechooserdefault.c * gtk/gtkhandlebox.c * gtk/gtkhsv.c * gtk/gtkiconview.c * gtk/gtkimage.c * gtk/gtklayout.c * gtk/gtklistitem.c * gtk/gtkmenuitem.c * gtk/gtkmessagedialog.c * gtk/gtknotebook.c * gtk/gtkpaned.c * gtk/gtkpathbar.c * gtk/gtkplug.c * gtk/gtkprintunixdialog.c * gtk/gtkrange.c * gtk/gtkrecentchooserdefault.c * gtk/gtkruler.c * gtk/gtksocket.c * gtk/gtktext.c * gtk/gtktextview.c * gtk/gtktoolbar.c * gtk/gtktreeitem.c * gtk/gtktreeview.c * gtk/gtkviewport.c * gtk/gtkwin32embedwidget.c: chain up unconditionally in realize(), unrealize(), map(), unmap(), style_set(), key_press_event() and size_request() svn path=/trunk/; revision=21088
* gtk/gtktext.c gtk/gtktextbuffer.c gtk/gtktextlayout.cSven Neumann2008-08-081-8/+9
| | | | | | | | | | | | | | | | | | | | 2008-08-08 Sven Neumann <sven@gimp.org> * gtk/gtktext.c * gtk/gtktextbuffer.c * gtk/gtktextlayout.c * gtk/gtktexttagtable.c * gtk/gtktextview.c * gtk/gtktipsquery.c * gtk/gtktoolbar.c * gtk/gtktoolitem.c * gtk/gtktreeitem.c * gtk/gtktreemodelfilter.c * gtk/gtktreemodelsort.c * gtk/gtktreeviewcolumn.c: use canonical signal names. svn path=/trunk/; revision=21045
* use the simpler g_signal_override_class_handler() instead ofMichael Natterer2008-07-211-5/+3
| | | | | | | | | | | | | | | | | | 2008-07-21 Michael Natterer <mitch@imendio.com> * gtk/gtktoolbar.c (gtk_toolbar_class_init): use the simpler g_signal_override_class_handler() instead of g_signal_override_class_closure(). * gtk/gtktextview.c (gtk_text_view_class_init): ditto. (gtk_text_view_compat_move_focus): chain up using g_signal_chain_from_overridden_handler() instead of the generic g_signal_chain_from_overridden() which needs manual fiddling with millions of GValues. svn path=/trunk/; revision=20880
* remove _gtk_binding_signal_new().Michael Natterer2008-07-211-9/+9
| | | | | | | | | | | | | | | | | | 2008-07-21 Michael Natterer <mitch@imendio.com> * gtk/gtkbindings.[ch]: remove _gtk_binding_signal_new(). * gtk/gtkfilechooserdefault.c * gtk/gtkmenu.c * gtk/gtkmenushell.c * gtk/gtkscalebutton.c * gtk/gtktextview.c * gtk/gtktoolbar.c * gtk/gtkwidget.c: use g_signal_new_class_handler() instead. Add some missing I_() to the signal names. svn path=/trunk/; revision=20874