summaryrefslogtreecommitdiff
path: root/gtk/gtkadjustment.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix a thinko in adjustment animationMatthias Clasen2014-09-071-1/+1
| | | | | | | The target value is only relevant if we're actually animating. Don't look at it otherwise. https://bugzilla.gnome.org/show_bug.cgi?id=736178
* Fix various compiler warningsMatthias Clasen2014-09-051-0/+1
| | | | Mostly missing declarations and missing statics.
* textview: Avoid relocating adjustments on ::size-allocate while these are ↵Carlos Garnacho2014-08-031-0/+6
| | | | | | | | | | | animating An animation may be scheduled while the textview content changed in size, so the resize queued would just unset the animation and set the adjusments with a current value, defeating gtk_text_view_scroll_to_iter(). In this case, just avoid the adjustment change, as there is a target value on the way. https://bugzilla.gnome.org/show_bug.cgi?id=733406
* Fix a typoMatthias Clasen2014-07-131-1/+1
| | | | A getter shouldn't return void.
* Add a getter for the adjustment animation durationMatthias Clasen2014-07-131-0/+6
|
* adjustment: Add private gtk_adjustment_get_target_value() methodCarlos Garnacho2014-07-081-0/+11
| | | | | This call returns either the target value if there is an ongoing animation, or the current value if there is no animation.
* GktAdjustment: Add explicit api for animated settingMatthias Clasen2014-07-021-47/+63
| | | | | Making all set_value calls animated has side-effects, so we need to be more selective.
* GtkAdjustment: Animated updatesMatthias Clasen2014-06-301-6/+143
| | | | | | | | | | | | | | | Add a private API that lets widget opt-in to animated updates of the adjustment value. When enabled, all calls to gtk_adjustment_set_value will smoothly transition from the old value to the new value, using a fixed easing function and a configurable duration. The animation is tied to the frame clock of the widget. By implementing this in GtkAdjustment, we can enable animation for both scrollbars and keybindings, which are often implemented in the child widget of the scrolled window. https://bugzilla.gnome.org/show_bug.cgi?id=732376
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-6/+6
| | | | Instead of Return value:
* docs: use proper apostropheWilliam Jon McCann2014-02-071-1/+1
| | | | https://wiki.gnome.org/Design/OS/Typography
* docs: use ` instead of <literal>William Jon McCann2014-02-041-2/+2
|
* gtk: Use new macros for defining private dataEmmanuele Bassi2013-07-091-6/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702996
* gtk/gtkadjustment.c: Improve docsJavier Jardón2012-08-071-17/+17
| | | | Refer to #GtkAdjustment properties instead fields
* docs: fix a number of typos and obsolete referencesCosimo Cecchi2012-07-021-5/+5
|
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* GtkAdjustment: add an auxiliary functionMatthias Clasen2011-07-051-0/+44
| | | | This is going to be used in AtkValue implementations.
* adjustment: Privateize sealed membersBenjamin Otte2011-01-051-40/+60
|
* gtkadjustment: Move documentation to inline commentsJavier Jardón2010-10-231-0/+88
|
* gtk_adjustment_new() should return a GtkAdjustment*Javier Jardón2010-09-291-1/+1
| | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=630731
* Move classes that currently derive from GtkObject to GInitiallyUnownedJavier Jardón2010-09-261-2/+2
|
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-4/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Revert "Forward-port a GtkAdjustment compatibility fix"Javier Jardón2010-05-241-1/+5
| | | | | | | | | | | | | | | | In the early 2.14.x releases, GtkAdjustment was changed to enforce that values are restricted to the range [lower, upper - page_size]. This has always been the documented behaviour, and the recommended practice is to set page_size to 0 when using adjustments for simple scalar values, like in a slider or spin button. Due to the large number of applications that are affected by this change, the behaviour has been reverted to the old behaviour in 2.14.3, with an explicit warning that this change will be reintroduced in 2.90. This reverts commit e6373738fc9c53c95e467a3681fcd3426fd94d13. https://bugzilla.gnome.org/show_bug.cgi?id=619474
* Forward-port a GtkAdjustment compatibility fixMatthias Clasen2009-05-031-5/+1
| | | | | We reverted GtkAdjustment to its traditional behaviour wrt. to clamping in 2.14.3, but the fix was lost between 2.14 and 2.16.
* Bug 546754 – 2.13.6 update create rendering issue in the evolutionMichael Natterer2008-08-111-2/+10
| | | | | | | | | | | | | | | | | | 2008-08-11 Michael Natterer <mitch@imendio.com> Bug 546754 – 2.13.6 update create rendering issue in the evolution composer * gtk/gtkadjustment.c: instead of CLAMP(), use value = MIN (value, upper - page_size); value = MAX (value, lower); so we don't end up below lower if upper - page_size is smaller than lower. svn path=/trunk/; revision=21080
* gtk/gtkadjustment.c gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkiconview.cSven Neumann2008-08-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | 2008-08-08 Sven Neumann <sven@gimp.org> * gtk/gtkadjustment.c * gtk/gtkclist.c * gtk/gtkcolorsel.c * gtk/gtkiconview.c * gtk/gtklayout.c * gtk/gtkprogress.c * gtk/gtkrange.c * gtk/gtkspinbutton.c * gtk/gtktext.c * gtk/gtktextview.c * gtk/gtktreeview.c * gtk/gtkviewport.c: use the canonical signal name "value-changed" instead of "value_changed". svn path=/trunk/; revision=21041
* Bug 544858 – Seal GtkAdjustmentMichael Natterer2008-08-051-2/+286
| | | | | | | | | | | | | | | | | 2008-08-05 Michael Natterer <mitch@imendio.com> Bug 544858 – Seal GtkAdjustment * gtk/gtk.symbols * gtk/gtkadjustment.[ch] (struct GtkAdjustment): seal all struct members. Add accessors for all properties and additionally a new function gtk_adjustment_configure() which sets all properties at once. Patch by Christian Dywan and myself. svn path=/trunk/; revision=21013
* clamp the value to [lower...upper-page_size] instead of onlyMichael Natterer2008-08-051-1/+1
| | | | | | | | | | | | | | | | | 2008-08-05 Michael Natterer <mitch@imendio.com> * gtk/gtkadjustment.c (gtk_adjustment_set_value): clamp the value to [lower...upper-page_size] instead of only [lower...upper]. * README: add note about this change. While this fix is correct and should have been there forever, it has the potential to break some corner cases, however these cases would set page_size to a value != 0 which suggests they want it honored. svn path=/trunk/; revision=21012
* 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
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-221-1/+1
| | | | | | | | | | | | 2008-06-21 Johan Dahlin <jdahlin@async.com.br> * *.[ch]: Include "config.h" instead of <config.h> Command used: find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g' Rubberstamped by Mitch and Tim svn path=/trunk/; revision=20669
* coding style cleanup.Michael Natterer2008-03-141-48/+65
| | | | | | | | | | | | | | | 2008-03-14 Michael Natterer <mitch@imendio.com> * gtk/gtkadjustment.c: coding style cleanup. (gtk_adjustment_set_property): no need to call g_object_notify() on the set properties. Implement GObject::dispatch_properties_changed() and make sure we emit "changed" when anything but the "value" property changes. svn path=/trunk/; revision=19875
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Boilerplate reductionMatthias Clasen2006-05-021-31/+1
|
* Intern some more strings.Matthias Clasen2005-09-011-3/+3
| | | | | | | | | 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().
* 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.
* Use canonical names for g_object_notify() as well.Matthias Clasen2005-03-261-1/+1
| | | | | | | | 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-9/+8
| | | | | | | | | | | | 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-6/+8
|
* 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.
* Document properties as new since 2.4. (#156101, Billy Biggs)Matthias Clasen2004-12-271-0/+48
| | | | | | | 2004-12-27 Matthias Clasen <mclasen@redhat.com> * gtk/gtkadjustment.c (gtk_adjustment_class_init): Document properties as new since 2.4. (#156101, Billy Biggs)
* 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>
* pass value in last in g_object_new, since it depends on lower and upperManish Singh2004-02-031-1/+1
| | | | | | | Tue Feb 3 13:39:27 2004 Manish Singh <yosh@gimp.org> * gtk/gtkadjustment.c (gtk_adjustment_new): pass value in last in g_object_new, since it depends on lower and upper being set.
* Add properties to GtkAdjustment. (#64601, Murray Cumming)Matthias Clasen2004-01-291-12/+179
| | | | | | | Fri Jan 30 00:45:46 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkadjustment.c: Add properties to GtkAdjustment. (#64601, Murray Cumming)
* Deprecation cleanupManish Singh2002-10-091-31/+31
| | | | | | | Wed Oct 9 15:23:48 2002 Manish Singh <yosh@gimp.org> * gtk/gtkadjustment.[ch] gtk/gtkalignment.[ch] gtk/gtkentry.[ch] gtk/gtkhsv.[ch] gtk/gtktooltips.[ch]: Deprecation cleanup
* Make gtkmarshal.list/gtkmarshal.h only for compatibility with GTK+-1.2;Owen Taylor2001-11-171-2/+3
| | | | | | | | | | Sat Nov 17 18:26:45 2001 Owen Taylor <otaylor@redhat.com> * gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h only for compatibility with GTK+-1.2; and deprecate it; put all marshalers we actually use into gtkmarshalers.list and use the _gtk_marshal_ prefix for these marshalers.
* Patch from Matthias Clasen to remove remove all instances ofOwen Taylor2001-07-181-4/+0
| | | | | | | | | Wed Jul 18 19:28:46 2001 Owen Taylor <otaylor@redhat.com> * gtk/*.c: Patch from Matthias Clasen to remove remove all instances of g_return_if_fail (foo != NULL); that are immediately before a g_return_if_fail (GTK_IS_FOO (foo)); since the second check catches the NULL anyways.
* Fix stupid error introduced last night that was making things decidedlyOwen Taylor2001-06-241-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | Sun Jun 24 11:29:35 2001 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error introduced last night that was making things decidedly not work. * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters so that we have getter/setter pairing everywhere it makes sense. (#55767) * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.: Rename gtk_radio_button_group to gtk_radio_button_get_group, add a deprecated compat macro. (#55516) * gtk/gtklabel.[ch]: Add functions gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(), gtk_label_set_label(), which mirror the property API for GtkLabel. Make gtk_label_get_attributes() only reflect the attributes set by gtk_label_set_attributes. * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename from gtk_notebook_set_page().
* Handle quoting of / with \; properly handle __ in paths, quote " and \n inOwen Taylor2001-03-191-9/+9
| | | | | | | | | | | | | | Mon Mar 19 15:53:36 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly handle __ in paths, quote " and \n in gtk_item_factory_dump_items(). * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch] gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch] gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c: Change float to double everywhere with the exception of 0<->1.0 alignment and GtkCurve.
* Applied patch from Nils Barth (bug # 51041) to replace "gint" withHavoc Pennington2001-03-161-1/+1
| | | | | | | | 2001-03-16 Havoc Pennington <hp@redhat.com> * Applied patch from Nils Barth (bug # 51041) to replace "gint" with "gboolean" and 0/1 with TRUE/FALSE in various places.