summaryrefslogtreecommitdiff
path: root/gtk/gtkscrolledwindow.h
Commit message (Collapse)AuthorAgeFilesLines
* Convert headers to #pragma onceMatthias Clasen2023-03-311-3/+1
| | | | The conversion was done by guard2one.
* gtk: Dissolve gtk-autocleanup.hMatthias Clasen2022-09-231-0/+2
| | | | | Move the autocleanup declarations into their respective headers.
* scrolledwindow: Convert docsMatthias Clasen2021-03-111-11/+12
| | | | Convert link format, add property annotations. General cleanup.
* gtkscrolledwindow: Drop gtk_scrolled_window_set_capture_button_press()Carlos Garnacho2020-09-251-6/+0
| | | | | | This API is kinda stuck in the GdkEvent days, we now negotiate ownership of the input sequence via GtkGestures. Remove it as it reflects a way to work that was not exactly accurate and it will turn plainly wrong soon.
* Replace "gint" with "int"Benjamin Otte2020-07-251-8/+8
|
* scrolledwindow: Don't take adjustments in new()Matthias Clasen2020-06-241-2/+1
| | | | | | | In 99.9% of all cases, these are just NULL, NULL. So just do away with these arguments, people can use the setters for the rare cases where they want the scrolled window to use a different adjustment.
* scrolledwindow: Derive from GtkWidgetMatthias Clasen2020-05-041-1/+1
| | | | | | | | | | | | We want to remove GtkBin and GtkContainer as they don't provide much useful functionality anymore. This requires us to move get_request_mode and compute_expand down. We have to implement GtkBuildable, in order to keep the <child> element in ui files working for aspect frames. See #2681
* scrolledwindow: Add a child propertyMatthias Clasen2020-05-041-11/+17
|
* scrolledwindow: Drop shadow-typeMatthias Clasen2020-04-171-3/+3
| | | | | We were only using this as a boolean, so change it to a boolean property named has-frame.
* scrolled window: Make finalMatthias Clasen2019-05-281-48/+1
|
* scrolledwindow: Remove priv pointerTimm Bäder2018-06-181-4/+1
|
* The big versioning cleanupMatthias Clasen2018-02-061-15/+15
| | | | | | | Remove all the old 2.x and 3.x version annotations. GTK+ 4 is a new start, and from the perspective of a GTK+ 4 developer all these APIs have been around since the beginning.
* scrolledwindow: Remove scrollbar-spacing and scrollbars-within-bevelTimm Bäder2016-10-161-3/+0
|
* scrolledwindow: Remove _add_with_viewportTimm Bäder2016-10-161-3/+0
| | | | Replaced by a normal gtk_container_add
* GtkScrolledWindow: Bug 766569 - Make propagation of natural child sizes optionalTristan Van Berkom2016-08-311-0/+12
| | | | | | | | | | | Making propagation of child natural sizes mandatory (or default, even) was evidently a mistake as this causes dynamic content in a scrolled window to resize it's parent when the scrolled window is competing for space with an adjacent widget. This patch instead adds API to control whether natural width and height of the child should be propagated through the scrolled windows size requests.
* scrolledwindow: add ::max-content-width and -height propertiesGeorges Basile Stavracas Neto2016-06-051-0/+11
| | | | | | | | | | | | | | | | | The GtkScrolledWindow has support to set the minimum content size (both width and height) which controls the minimum space allocated, but does not exposes any way to control the maximum size the content can grow. After the introduction of GtkPopover, which always uses the minimum size of it's children widgets, the lack of max-content-width and -height properties became a concrete use case. This patch introduces the GtkScrolledWindow::max-content-width and -height properties. The properties will alter the minimum size of the scrolled window, making it grow up to the set value. They also respect the previously set ::min-content-width and -height. https://bugzilla.gnome.org/show_bug.cgi?id=742281
* GtkScrolledWindow: Add overlay scrollbarsMatthias Clasen2014-10-201-6/+12
| | | | | | | | | | | | | This commit adds a mode to GtkScrolledWindow in which it puts narrow, auto-hiding scrollbars over the content, instead of allocating room for the scrollbars outside of the content. We use traditional scrollbars if we find a mouse or if overlay scrolling has explicitly turned off. For test purposes, GTK_TEST_TOUCHSCREEN can be used to get overlay scrolling even in the presence of a mouse. The environment variable GTK_OVERLAY_SCROLLING can also be used to force overlay scrolling on or off.
* GtkScrolledWindow: Allow scrolling without barsMatthias Clasen2014-10-091-1/+5
| | | | | | | | | Add a new policy, GTK_POLICY_EXTERNAL, which hides the scrollbar, but does not force the scrolled windows size to be determined by its child. This can be used to keep two scrolled windows in sync, while sharing a single scrollbar. https://bugzilla.gnome.org/show_bug.cgi?id=730730
* Remove an unused internal exportMatthias Clasen2014-10-091-2/+0
| | | | | _gtk_scrolled_window_get_scrollbar_spacing is only used in gtkscrolledwindow.c, so keep it there.
* scrolledwindow: update GtkPolicyType docsStefan Sauer2014-06-141-5/+8
| | | | | The policy is not determining the visibility of the scrollbars anymore, but the how the size is to be computed to achive the selected visibility.
* docs: remove mention of old GtkList and GtkCListDieter Verfaillie2014-06-121-1/+1
| | | | | | Reported by andlabs in irc://irc.gnome.org/gtk+ https://bugzilla.gnome.org/show_bug.cgi?id=731382
* docs: enum cleanupMatthias Clasen2014-05-201-0/+41
| | | | scrolledwindow part 2
* docs: add Gtk*Class docsWilliam Jon McCann2014-01-201-0/+13
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=81006
* Add annotations to gtk headersMatthias Clasen2013-05-051-0/+19
| | | | Add annotations to all exported functions in GTK+ headers.
* scrolledwindow: deprecate gtk_scrolled_window_add_with_viewport()Cosimo Cecchi2013-02-011-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=693015
* Move single-include guards inside include guardsMatthias Clasen2012-12-281-3/+3
| | | | | | 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
* scrolledwindow: Kinetic scrolling supportCarlos Garcia Campos2012-03-011-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | Kinetic scrolling is only done on touch devices, since it is sort of meaningless on pointer devices, besides it implies a different input event handling on child widgets that is unnecessary there. If the scrolling doesn't start after a long press, the scrolling is cancelled and events are handled by child widgets normally. When clicked again close to the previous button press location (assuming it had ~0 movement), the scrolled window will allow the child to handle the events immediately. This is so the user doesn't have to wait to the press-and-hold timeout in order to operate on the scrolledwindow child. The innermost scrolled window always gets to capture the events, all scrolled windows above it just let the event go through. Ideally reaching a limit on the innermost scrolled window would propagate the dragging up the hierarchy in order to keep following the touch coords, although that'd involve rather evil hacks just to cater for broken UIs.
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* Trivial: include cleanupsMatthias Clasen2011-08-281-3/+1
|
* Clean up more includesMatthias Clasen2011-06-071-2/+0
| | | | | Mainly removing unused h/v includes, but also adding some that will be necessary as replacements.
* Remove GtkScrollablePolicy againMatthias Clasen2010-10-221-6/+0
| | | | This was a miscommunication, the properties need to live elsewhere.
* Move min-display-width/height to GtkScrolledWindowMatthias Clasen2010-10-221-0/+13
| | | | | | | | | It is just too annoying to have to implement these properties in every scrollable. Instead, we now have ::min-content-height/width in GtkScrolledWindow. We also add GtkScrollablePolicy to determine how to size the scrollable content.
* GtkScrolledWindow: move public members to private structureJavier Jardón2010-08-311-16/+4
|
* Remove all traces of GDK_PIXBUF/GTK_DISABLE_SINGLE_INCLUDESMichael Natterer2010-05-031-1/+1
| | | | ...and disallow inclusion of individual files unconditionally.
* no need to include <gdk/gdk.h> in any widget header, it's included viaMichael Natterer2008-10-301-1/+0
| | | | | | | | | | 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
* 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-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Seal GtkScrolledWindow.Tim Janik2008-06-201-10/+10
| | | | | | * gtk/gtkscrolledwindow.h: Seal all object member fields. svn path=/trunk/; revision=20526
* whitespace cleanup: remove trailing whitespace and excess newlines andMichael Natterer2008-05-281-2/+2
| | | | | | | | | | | 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
* Only handle key bindings for scrolling if the scrollbars are visible.Matthias Clasen2007-01-021-3/+3
| | | | | | | | | | | | | 2007-01-01 Matthias Clasen <mclasen@redhat.com> * gtk/gtkscrolledwindow.h: * gtk/gtkscrolledwindow.c: Only handle key bindings for scrolling if the scrollbars are visible. (#340135, Christian Persch) svn path=/trunk/; revision=17012
* Add a window-placement-set property and a gtk-scrolled-window-placementMatthias Clasen2006-03-201-0/+2
| | | | | | | | | | 2006-03-20 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkscrolledwindow.h: * gtk/gtkscrolledwindow.c: Add a window-placement-set property and a gtk-scrolled-window-placement setting. (#157025, Christian Neumair)
* Trivial cleanups. (#169647, #303455, Fabricio Barros Cabral, BenoitMatthias Clasen2005-06-211-6/+3
| | | | | | | 2005-06-21 Matthias Clasen <mclasen@redhat.com> * gtk/*.h: Trivial cleanups. (#169647, #303455, Fabricio Barros Cabral, Benoit Carpentier)
* 2005-06-10 Matthias Clasen <mclasen@redhat.com>Matthias Clasen2005-06-101-1/+1
| | | | | | | | | | * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_expand): * gtk/gtktoolbar.c (gtk_toolbar_get_show_arrow): * gtk/gtktextview.c (gtk_text_view_get_iter_at_position): * gtk/gtkstock.c (gtk_stock_set_translate_func): * gtk/gtkspinbutton.c (gtk_spin_button_get_adjustment): * gtk/gtkscrolledwindow.h: * gtk/gtkmenushell.c (gtk_menu_shell_get_take_focus):
* Change the return type to GtkWidget*, proposed by Owen Taylor.Matthias Clasen2005-05-081-2/+2
| | | | | | | | | 2005-05-07 Matthias Clasen <mclasen@redhat.com> * gtk/gtkscrolledwindow.h: * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_hscrollbar): (gtk_scrolled_window_get_cscrollbar): Change the return type to GtkWidget*, proposed by Owen Taylor.
* Add getters for the scrollbars. (#167181, Billy Biggs)Matthias Clasen2005-05-031-0/+4
| | | | | | | | | 2005-05-03 Matthias Clasen <mclasen@redhat.com> * gtk/gtkscrolledwindow.h: * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_vscrollbar): * gtk/gtk.symbols: Add getters for the scrollbars. (#167181, Billy Biggs)
* Privately export _gtk_scrolled_window_get_scrollbar_spacing().Owen Taylor2002-10-101-0/+1
| | | | | | | | | | | Thu Oct 10 14:35:31 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkscrolledwindow.[ch]: Privately export _gtk_scrolled_window_get_scrollbar_spacing(). * gtk/gtkcombo.c: Properly account from scrollbar spacing when computing the size of the popup window. (#84955, Marco Pesenti Gritti)
* Deprecation cleanupManish Singh2002-10-091-6/+6
| | | | | | | | 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
* Massive padding addition to class structures.Owen Taylor2002-02-231-0/+6
| | | | | | | | Sat Feb 23 11:54:12 2002 Owen Taylor <otaylor@redhat.com> * gtk/*.h gdk/*.h: Massive padding addition to class structures. * gtk/gtktextmark.h: Fix a FIXME about G_CONST_RETURN.