summaryrefslogtreecommitdiff
path: root/gtk/gtkscale.c
Commit message (Collapse)AuthorAgeFilesLines
* Make orientable base classes instantiableMatthias Clasen2010-05-251-10/+8
| | | | | | This commit adds constructors for GtkPaned, GtkBox, GtkButtonBox, GtkRuler, GtkScale, GtkScrollbar and GtkSeparator and makes these types instantiable.
* Fix a problem with marks on vertical scalesMatthias Clasen2010-05-041-2/+5
|
* Deprecate widget flag: GTK_WIDGET_MAPPEDJavier Jardón2010-03-031-1/+1
| | | | | | 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-2/+5
| | | | | | Use gtk_widget_get_visible() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Deprecate widget flag: GTK_WIDGET_IS_SENSITIVEJavier Jardón2010-03-011-1/+1
| | | | | | Use gtk_widget_is_sensitive() 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
* Fix compilation warning: cast to GCompareFuncJavier Jardón2010-02-111-1/+2
|
* Avoid overlap of scale marksMatthias Clasen2010-02-091-9/+79
| | | | This was reported to be a problem in bug 608807.
* marks_start_element(): initialize "value" to get rid of a compiler warningMichael Natterer2009-08-271-1/+1
|
* Remove some unused variables (GnomeBug:591218)Javier Jardón2009-08-101-1/+0
|
* Support scale marks in builder markupMatthias Clasen2009-05-031-2/+254
|
* Fix a resizing problem with marks on scalesMatthias Clasen2009-04-161-0/+4
| | | | | | Queue a resize when marks are added to or removed from GtkScale widgets. This fixes a visual glitch with the 100% mark in gnome-volume-control.
* Bug 565656 – Add marks to scalesMatthias Clasen2009-01-201-6/+334
| | | | | | | | | | | | | | | | | | | Bug 565656 – Add marks to scales * gtk/gtkrange.[hc]: Add internal api to define 'stop values' that have a little resistance when dragging the slider over it. * gtk/gtk.symbols: * gtk/gtkscale.[hc] (gtk_scale_add_mark): New function to add a 'mark' to a scale, which will draws a tick, plus optionally some text, and makes the value a stop value. (gtk_scale_clear_values): Removes all marks. * tests/testscale.c: Test for marks on scales * tests/Makefile.am: Integrate it svn path=/trunk/; revision=22149
* Keep all these abstract for nowMatthias Clasen2008-12-311-1/+3
| | | | svn path=/trunk/; revision=22026
* Doc fixesMatthias Clasen2008-12-291-1/+1
| | | | svn path=/trunk/; revision=21975
* Merge docs inlineMatthias Clasen2008-12-291-3/+76
| | | | svn path=/trunk/; revision=21959
* Bug 553765 – Add orientation API to GtkRangeMichael Natterer2008-11-111-37/+269
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-11-11 Michael Natterer <mitch@imendio.com> Bug 553765 – Add orientation API to GtkRange * gtk/gtkrange.[ch]: implement the GtkOrientable interface. Add evil code that makes sure that the stepper_detail and slider_detail set in GtkRangeClass continue to work with the hacked subclasses below. * gtk/gtkscale.[ch]: swallow all code from GtkHScale and GtkVScale and add gtk_scale_new() and gtk_scale_new_with_range() which take a GtkOrientation argument. Set slider_detail to "Xscale" so above evil code works. * gtk/gtkscrollbar.[ch]: add gtk_scrollbar_new() which takes a GtkOrientation argument. Set stepper_detail to "Xscrollbar" so above evil code works. * gtk/gtkhscale.c * gtk/gtkvscale.c * gtk/gtkhscrollbar.c * gtk/gtkvscrollbar.c: remove all code except the constructor and call gtk_orientable_set_orientation() in init(). * gtk/gtk.symbols: changed accordingly. svn path=/trunk/; revision=21779
* consistently chain up using GTK_FOO_CLASS(parent_class)->bar(instance)Michael Natterer2008-08-121-1/+1
| | | | | | | | | | | 2008-08-12 Michael Natterer <mitch@imendio.com> * gtk/*.c: consistently chain up using GTK_FOO_CLASS(parent_class)->bar(instance) instead of (*GTK_FOO_CLASS(parent_class))->bar(instance). svn path=/trunk/; revision=21085
* gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtksocket.c gtk/gtkspinbutton.cSven Neumann2008-08-081-2/+2
| | | | | | | | | | | | | | 2008-08-08 Sven Neumann <sven@gimp.org> * gtk/gtkscale.c * gtk/gtkscrolledwindow.c * gtk/gtksocket.c * gtk/gtkspinbutton.c * gtk/gtkstatusbar.c * gtk/gtkstatusicon.c: use canonical signal names. svn path=/trunk/; revision=21046
* 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
* gtk/gtkcellview.c gtk/gtklabel.c gtk/gtklayout.c gtk/gtklist.cMichael Natterer2008-02-071-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | 2008-02-07 Michael Natterer <mitch@imendio.com> * gtk/gtkcellview.c * gtk/gtklabel.c * gtk/gtklayout.c * gtk/gtklist.c * gtk/gtkmenu.c * gtk/gtkmenushell.c * gtk/gtkmisc.c * gtk/gtkoptionmenu.c * gtk/gtkplug.c * gtk/gtkpreview.c * gtk/gtkprogress.c * gtk/gtkradiomenuitem.c * gtk/gtkscale.c * gtk/gtkscrolledwindow.c * gtk/gtksocket.c: remove g_return_if_fail() from private functions and virtual function implementations. svn path=/trunk/; revision=19492
* Some doc updatesMatthias Clasen2007-06-101-10/+11
| | | | svn path=/trunk/; revision=18089
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Make GtkScale abstract againMatthias Clasen2006-05-071-1/+1
|
* Boilerplate reductionMatthias Clasen2006-05-021-34/+3
|
* Silence compiler warnings.Matthias Clasen2006-04-111-1/+2
| | | | | | | 2006-04-11 Matthias Clasen <mclasen@redhat.com> * gtk/gtkscale.c (gtk_scale_get_layout_offsets): Silence compiler warnings.
* Insert an LRM, to prevent -20 to come out as 20- in RTL locales. (#322571,Matthias Clasen2005-11-281-2/+2
| | | | | | | 2005-11-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtkscale.c (_gtk_scale_format_value): Insert an LRM, to prevent -20 to come out as 20- in RTL locales. (#322571, Tze'ela Hebron)
* Intern some more strings.Matthias Clasen2005-09-011-5/+5
| | | | | | | | | 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.
* Fix the default values of draw-value and value-pos to be the values weMatthias Clasen2005-05-181-2/+2
| | | | | | | | 2005-05-18 Matthias Clasen <mclasen@redhat.com> * gtk/gtkscale.c (gtk_scale_class_init): Fix the default values of draw-value and value-pos to be the values we actually use in _init. (#304547, Mikael Hallendal)
* Don't bind GDK_Page_Up and GDK_Page_Down twice. (#168333, Hazael MaldonadoMatthias Clasen2005-05-171-4/+4
| | | | | | | 2005-05-16 Matthias Clasen <mclasen@redhat.com> * gtk/gtkscale.c (gtk_scale_class_init): Don't bind GDK_Page_Up and GDK_Page_Down twice. (#168333, Hazael Maldonado Torres)
* Use canonical names for g_object_notify() as well.Matthias Clasen2005-03-261-4/+4
| | | | | | | | 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-5/+6
| | | | | | | | | | | | 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.
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-201-1/+3
| | | | | | | | | | | | | | | | | | 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.
* More canonical property names.Matthias Clasen2005-03-091-4/+4
|
* 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>
* Fix various compilation problems (#134312, David Hawthorne)Owen Taylor2004-02-131-1/+1
| | | | | | | | | | | | | | | | | | | | Fri Feb 13 08:17:43 2004 Owen Taylor <otaylor@redhat.com> Fix various compilation problems (#134312, David Hawthorne) * gtk/gtkscale.c (gtk_scale_get_layout_offsets): Use g_return_if_fail(), not g_return_val_if_fail(). * gtk/gtkvscale.c (gtk_vscale_get_layout_offsets): * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets): Use g_return_if_reached(), not g_return_val_if_reached(). * gtk/gtkvscale.c (gtk_vscale_expose): Fix the types of some parameters. * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets): Remove extra 'scale' parameter.
* Fix for #104811, Padraig O'Briain:Matthias Clasen2004-02-121-0/+128
| | | | | | | | | | | | | | | Fri Feb 13 00:54:59 2004 Matthias Clasen <maclas@gmx.de> Fix for #104811, Padraig O'Briain: * gtk/gtkscale.h: * gtk/gtkscale.c (_gtk_scale_clear_layout): * gtk/gtkscale.c (gtk_scale_get_layout_offsets): * gtk/gtkscale.c (gtk_scale_get_layout): New functions to determine the text and its position from a GtkScale, to make it more accessible. * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets): * gtk/gtkvscale.c (gtk_vscale_get_layout_offsets): Implementations of the new GtkScale vfunc.
* The first part of the fix for #114351 (see also gdk-pixbuf/ChangeLog andMatthias Clasen2004-01-161-10/+10
| | | | | | | | | | | | | | | | | | | | 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_().
* Deprecation cleanupManish Singh2002-10-041-16/+14
| | | | | | | Fri Oct 4 15:47:06 2002 Manish Singh <yosh@gimp.org> * gtkbbox.[ch] gtkhbbox.[ch] gtkhscale.[ch] gtkscale.[ch] gtkvscale.[ch] gtkvbbox.[ch]: Deprecation cleanup
* Mark abstract types as G_TYPE_FLAG_ABSTRACT. (#72383)Matthias Clasen2002-09-211-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | * gdk/gdkdraw.c (gdk_drawable_get_type): * gdk/gdkgc.c (gdk_gc_get_type): * gtk/gtkmenushell.c (gtk_menu_shell_get_type): * gtk/gtkimcontext.c (gtk_im_context_get_type): * gtk/gtkprogress.c (gtk_progress_get_type): * gtk/gtkoldeditable.c (gtk_old_editable_get_type): * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_type): * gtk/gtkwidget.c (gtk_widget_get_type): * gtk/gtkseparator.c (gtk_separator_get_type): * gtk/gtkscrollbar.c (gtk_scrollbar_get_type): * gtk/gtkscale.c (gtk_scale_get_type): * gtk/gtkrange.c (gtk_range_get_type): * gtk/gtkpaned.c (gtk_paned_get_type): * gtk/gtkmisc.c (gtk_misc_get_type): * gtk/gtkitem.c (gtk_item_get_type): * gtk/gtkcontainer.c (gtk_container_get_type): * gtk/gtkbbox.c (gtk_button_box_get_type): * gtk/gtkbox.c (gtk_box_get_type): * gtk/gtkbin.c (gtk_bin_get_type): * gtk/gtkobject.c (gtk_object_get_type): Mark abstract types as G_TYPE_FLAG_ABSTRACT. (#72383)
* fix revrted bug fix. (use a define for max digits).Tim Janik2002-01-301-1/+1
| | | | | | | Wed Jan 30 20:29:01 2002 Tim Janik <timj@gtk.org> * gtk/gtkscale.c (gtk_scale_set_digits): fix revrted bug fix. (use a define for max digits).
* Revert the last changes to make the number of digits only effect drawing,Owen Taylor2002-01-301-8/+15
| | | | | | | | | | Tue Jan 29 20:38:04 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkscale.[ch]: Revert the last changes to make the number of digits only effect drawing, instead, don't round unless we are in the 'draw_value' mode -- this is the behavior of GTK+-1.2, and keeps the behavior that if the user sees a displayed value, it is the correct value.
* fix default value for ::digits property, leave as 1 as per havoc'sTim Janik2002-01-291-13/+18
| | | | | | | | | Tue Jan 29 11:51:14 2002 Tim Janik <timj@gtk.org> * gtk/gtkscale.[hc]: fix default value for ::digits property, leave as 1 as per havoc's request. don't apply the draw_digits value to range->round_digits, so we don't perform gross quantization by default.
* Make gtkmarshal.list/gtkmarshal.h only for compatibility with GTK+-1.2;Owen Taylor2001-11-171-2/+2
| | | | | | | | | | 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.
* to simplify parsing for exported functions: - made implementationHans Breuer2001-10-271-1/+1
| | | | | | | | | | | | | | | | | | | 2001-10-27 Hans Breuer <hans@breuer.org> * gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c gtk/gtktreestore.c gtk/gtkvbbox.c : to simplify parsing for exported functions: - made implementation signature static, when the local prototype already was - put the functions return value on it's own line - added as space between the function name and the opening bracket * gtk/gtk.def : added the remaining exported functions