summaryrefslogtreecommitdiff
path: root/gtk/gtkprogressbar.c
Commit message (Collapse)AuthorAgeFilesLines
* build with GTK_DISABLE_DEPRECATED again.Michael Natterer2008-08-041-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-04 Michael Natterer <mitch@imendio.com> * gtk/Makefile.am: build with GTK_DISABLE_DEPRECATED again. Fix pltcheck.sh by restricting the visibility of deprecated symbols to the places where they are actually used: * gtk/gtkclist.c * gtk/gtkctree.c * gtk/gtklistitem.c * gtk/gtklist.c * gtk/gtkprogressbar.c * gtk/gtkpixmap.c * gtk/gtkprogress.c: #undef GTK_DISABLE_DEPRECATED and #define __GTK_FOO_C__ on top instead of before including gtkaliasdef.c. * gtk/gtkclist.h * gtk/gtkctree.h * gtk/gtklistitem.h * gtk/gtklist.h * gtk/gtkpixmap.h * gtk/gtkprogress.h: make the headers visible if the respective __GTK_FOO_C__ are defined. svn path=/trunk/; revision=20970
* Bug 429411 – add style properties to set minimum progressbarMatthias Clasen2008-08-021-11/+67
| | | | | | | | | | | | | 2008-08-02 Matthias Clasen <mclasen@redhat.com> Bug 429411 – add style properties to set minimum progressbar width/height * gtk/gtkprogressbar.c: Add style properties for minimum size. Patch by Carlos Garnacho and Christian Dywan svn path=/trunk/; revision=20938
* remove #if HAVE_CONFIG_H and clean up other include weirdness in thisMichael Natterer2008-07-051-9/+3
| | | | | | | | | | 2008-07-05 Michael Natterer <mitch@imendio.com> * gtk/gtkprogressbar.c: remove #if HAVE_CONFIG_H and clean up other include weirdness in this file. svn path=/trunk/; revision=20779
* 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
* Use g_object_new instead of gtk_widget_newJohan Dahlin2008-06-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 2008-06-19 Johan Dahlin <jdahlin@async.com.br> * demos/testpixbuf.c (new_testrgb_window): * gtk/gtkctree.c (gtk_ctree_new_with_titles): * gtk/gtkitemfactory.c (gtk_item_factory_construct), (gtk_item_factory_create_item): * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): * gtk/gtkprogressbar.c (gtk_progress_bar_new), (gtk_progress_bar_new_with_adjustment): * gtk/gtkscrolledwindow.c (gtk_scrolled_window_new): * gtk/gtktext.c (gtk_text_new): * gtk/gtkviewport.c (gtk_viewport_new): * tests/simple.c (main): * tests/testgtk.c (create_statusbar), (create_get_image), (create_saved_position), (create_tooltips), (create_cursors), (create_display_screen), (create_progress_bar), (create_idle_test): * tests/testmultidisplay.c (make_selection_dialog), (main): * tests/testmultiscreen.c (main): * tests/testrgb.c (new_testrgb_window): Use g_object_new instead of gtk_widget_new svn path=/trunk/; revision=20462
* More default property value fixesMatthias Clasen2007-12-281-1/+1
| | | | svn path=/trunk/; revision=19278
* Be more careful when overdrawing antialiased text. (#352435, Alex Jones,Matthias Clasen2006-12-111-11/+49
| | | | | | | | 2006-12-11 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprogressbar.c (gtk_progress_bar_paint_text): Be more careful when overdrawing antialiased text. (#352435, Alex Jones, patch by Benjamin Otte)
* introduced ::xspacing and ::yspacing style properties which make allTim Janik2006-08-291-31/+40
| | | | | | | | | | | | Fri Jul 14 16:13:37 2006 Tim Janik <timj@gtk.org> * gtk/gtkprogressbar.c: introduced ::xspacing and ::yspacing style properties which make all hardcoded padding and spacing values configurable. properly swap ::text-xalign treatment for RTL widgets. * gtk/gtkprogress.c: fixed style property blurbs. made alignment proeprty more consistent with GtkMisc alignment blurbs. mention RTL treatment for text-xalign.
* Move activity bar offset and size calculations to separate function.Tim Janik2006-06-161-21/+57
| | | | | | | | | | | | | | | | | | Fri Jun 16 11:49:53 2006 Tim Janik <timj@imendio.com> * fixed #337882 by applying patches from Tommi Komulainen: * gtk/gtkprogressbar.c: (gtk_progress_bar_paint_activity): (gtk_progress_bar_get_activity): Move activity bar offset and size calculations to separate function. (gtk_progress_bar_paint_text): Allow caller to specify offset for the prelight part in addition to width. (gtk_progress_bar_paint): Paint the text also in activity mode, #337882. * gtk/gtkprogressbar.c: (gtk_progress_bar_paint_text): Paint the prelighted text on top of the normal rather than side by side, to simplify painting text in activity mode.
* Fix #344543Matthias Clasen2006-06-121-2/+23
|
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Boilerplate reductionMatthias Clasen2006-05-021-29/+1
|
* Mention that %NULL is allowed. (#336937, Christian Neumair)Matthias Clasen2006-04-031-1/+1
| | | | | | | 2006-04-03 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Mention that %NULL is allowed. (#336937, Christian Neumair)
* Fix drawing issues in progress bars. (#328081, Christian Persch)Matthias Clasen2006-01-231-57/+42
| | | | | | | | | | | | 2006-01-23 Matthias Clasen <mclasen@redhat.com> Fix drawing issues in progress bars. (#328081, Christian Persch) * gtk/gtkprogressbar.c (gtk_progress_bar_size_request): Always request enough space. (gtk_progress_bar_paint_activity) (gtk_progress_bar_paint_continuous) (gtk_progress_bar_paint_discrete): Clip when drawing the bar.
* Set minimum for activity-step property to 0 instead of -G_MAXUINT.Johan Dahlin2006-01-051-1/+1
| | | | | * gtk/gtkprogressbar.c: Set minimum for activity-step property to 0 instead of -G_MAXUINT.
* Various cleanups. (#315360, Kjartan Maraas)Matthias Clasen2005-09-131-5/+0
| | | | | | 2005-09-13 Matthias Clasen <mclasen@redhat.com> * gtk/*.c: Various cleanups. (#315360, Kjartan Maraas)
* Intern some more strings.Matthias Clasen2005-09-011-1/+1
| | | | | | | | | 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-5/+5
| | | | | | | | 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-10/+11
| | | | | | | | | | | | 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.
* Typo fix in the docs.Matthias Clasen2005-03-171-1/+1
| | | | | | | | | | | | | | | | | | | | | 2005-03-16 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprogressbar.c (gtk_progress_bar_get_ellipsize): Typo fix in the docs. * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_set_arrow_tooltip): Typo fix in the docs. * gtk/gtkiconview.c (gtk_icon_view_get_columns) (gtk_icon_view_set_columns, gtk_icon_view_set_item_width) (gtk_icon_view_get_item_width, gtk_icon_view_set_spacing) (gtk_icon_view_get_spacing, gtk_icon_view_set_row_spacing) (gtk_icon_view_set_column_spacing, gtk_icon_view_get_row_spacing) (gtk_icon_view_get_column_spacing, gtk_icon_view_set_margin) (gtk_icon_view_get_margin): Add docs. * gtk/gtkcellview.c (gtk_cell_view_get_displayed_row): Add docs.
* More canonical property names.Matthias Clasen2005-03-091-5/+5
|
* Don't pass NULL to pango_context_get_metrics. UseAnders Carlsson2005-01-091-1/+1
| | | | | | | | | | 2005-01-09 Anders Carlsson <andersca@gnome.org> * gtk/gtkcellrenderertext.c: (get_size): * gtk/gtklabel.c: (gtk_label_size_request): * gtk/gtkprogressbar.c: (gtk_progress_bar_size_request): Don't pass NULL to pango_context_get_metrics. Use pango_context_get_language instead, which is way faster.
* Add an ellipsize property with getter and setter. (#156845, MortenMatthias Clasen2004-10-311-14/+111
| | | | | | | 2004-10-31 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprogressbar.[hc]: Add an ellipsize property with getter and setter. (#156845, Morten Welinder)
* 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
* The first part of the fix for #114351 (see also gdk-pixbuf/ChangeLog andMatthias Clasen2004-01-161-18/+18
| | | | | | | | | | | | | | | | | | | | 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_().
* don't offset one pixel when calculating the x position of the text.Soeren Sandmann2002-11-261-3/+3
| | | | | | | Tue Nov 26 01:55:47 2002 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkprogressbar.c (gtk_progress_bar_paint_text): don't offset one pixel when calculating the x position of the text.
* draw text twice, once with the prelight state and clipped to the progressSoeren Sandmann2002-11-251-28/+73
| | | | | | | | | | Tue Nov 26 00:40:53 2002 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkprogressbar.c (gtk_progress_bar_paint_text): draw text twice, once with the prelight state and clipped to the progress bar, and once with the normal state and clipped to the visible part of the trough. Also fix a spelling error pointed out by Matthias Clasen.
* Style improvements that I forgot about in last commit.Soeren Sandmann2002-11-251-7/+7
| | | | | | | Mon Nov 25 19:10:54 2002 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkprogressbar.c: Style improvements that I forgot about in last commit.
* Break this function into simpler functions: gtk_progress_bar_paint_text(),Soeren Sandmann2002-11-251-255/+203
| | | | | | | | | | Mon Nov 25 18:56:55 2002 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkprogressbar.c (gtk_progress_bar_paint): Break this function into simpler functions: gtk_progress_bar_paint_text(), gtk_progress_bar_paint_discrete(), gtk_progress_bar_paint_continous(), gtk_progress_bar_paint_activity().
* add -DGTK_DISABLE_DEPRECATED. #undef it at the top of gtktypebuiltins.c.Manish Singh2002-11-201-32/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Nov 19 17:05:51 2002 Manish Singh <yosh@gimp.org> * gtk/Makefile.am: add -DGTK_DISABLE_DEPRECATED. #undef it at the top of gtktypebuiltins.c. * gtk/gtkclist.c * gtk/gtkcombo.c * gtk/gtkctree.c * gtk/gtklist.c * gtk/gtklistitem.c * gtk/gtkoldeditable.c * gtk/gtkpixmap.c * gtk/gtkpreview.c * gtk/gtksignal.c * gtk/gtktext.c * gtk/gtktipsquery.c * gtk/gtktree.c * gtk/gtktreeitem.c * gtk/gtktypeutils.c: #undef GTK_DISABLE_DEPRECATED, deprecated widgets and compat code. * gtk/gtkcolorsel.c: move gtk_color_selection_set_color implementation to set_color_internal, and use that. The deprecated function now merely wraps it. * gtk/gtkfontsel.c: same as above, except with gtk_font_selection_get_font. * gtk/gtknotebook.c: same as above, except with gtk_notebook_set_homogeneous, and gtk_notebook_set_tab_{border, hborder,vborder}. * gtk/gtkprogressbar.c: same as above, except with gtk_progress_bar_set_{bar_stype,discrete_blocks,activity_step, activity_blocks}. * gtk/gtkstyle.c: same as above, except with gtk_style_get_font. * gtk/gtkwidget.c: same as above, except with gtk_widget_set_usize. * gtk/gtkitemfactory.h: declare compatibility functions for deprecated GtkMenuFactory stuff if GTK_COMPILATION, since they are used internally by the compat code. * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove use of deprecated gtk_check_menu_item_set_show_toggle (it is a noop now). * gtk/gtkmain.c: replaced deprecated GTK_TYPE_* with G_TYPE_*. * gtk/gtkobject.c: replaced various deprecated functions. In set and get_property, use g_object_{set,get}_data with "user_data" instead of gtk_object_{set,get}_user_data. * gtk/gtkprogress.h: API declared if GTK_COMPILATION * gtk/gtkprogress.c: port get_type to GObject API. * gtk/gtktypeutils.h: declare GtkArg stuff and gtk_type_init, if GTK_COMPILATION. * gtk/gtkwidget.c: define gtk_widget_queue_clear in terms of gtk_widget_queue_draw instead of the other way around. * tests/Makefile.am: define -DGTK_DISABLE_DEPRECATED * tests/testgtk.c * tests/testselection.c * tests/testsocket.c: #undef GTK_DISABLE_DEPRECATED, makes use of deprecated stuff.
* Automatic RTL flipping for some more widgets.Matthias Clasen2002-11-021-9/+29
|
* Reset use_text_format to %TRUE for a %NULL text string. (#94157, onceOwen Taylor2002-10-181-2/+5
| | | | | | | | Fri Oct 18 15:38:50 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Reset use_text_format to %TRUE for a %NULL text string. (#94157, once again).
* Deprecation cleanupManish Singh2002-10-081-14/+16
| | | | | | | Tue Oct 8 15:25:53 2002 Manish Singh <yosh@gimp.org> * gtk/gtkhpaned.[ch] gtk/gtkpaned.[ch] gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkvpaned.[ch]: Deprecation cleanup
* Reset the animation iter on unrealize as well as unmap. (#94336)Owen Taylor2002-09-271-11/+3
| | | | | | | | | | Fri Sep 27 15:27:45 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkimage.c (gtk_image_unrealize): Reset the animation iter on unrealize as well as unmap. (#94336) * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Don't turn a value of "" into NULL. (#94157, Vitaly Tishkov)
* Restore back to the default format instead of an empty format.Owen Taylor2002-09-231-1/+1
| | | | | | | | | | | Mon Sep 23 18:53:35 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Restore back to the default format instead of an empty format. * gtk/gtkprogress.c (gtk_progress_set_format_string): Make NULL restore back to the default format.
* Minor documentation fixesSoren Sandmann2002-08-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-08-10 Soren Sandmann <sandmann@daimi.au.dk> * docs/reference/gtk/tree_widget.sgml, docs/reference/gtk/tmpl/gtkdialog.sgml, docs/reference/gtk/tmpl/gtkentry.sgml, docs/reference/gtk/tmpl/gtkfilesel.sgml, docs/reference/gtk/tmpl/gtkfontsel.sgml, docs/reference/gtk/tmpl/gtkfontseldlg.sgml, docs/reference/gtk/tmpl/gtktreemodel.sgml, docs/reference/gtk/tmpl/gtkwidget.sgml, gdk/x11/gdkdisplay-x11.c, gtk/gtkbbox.c, gtk/gtkbox.c, gtk/gtkbutton.c, gtk/gtkcellrenderer.c, gtk/gtkcellrendererpixbuf.c, gtk/gtkcellrenderertext.c, gtk/gtkcheckmenuitem.c, gtk/gtkcontainer.c, gtk/gtkcurve.c, gtk/gtkdialog.h, gtk/gtkentry.c, gtk/gtkfilesel.c, gtk/gtkfontsel.c, gtk/gtkframe.c, gtk/gtkhandlebox.c, gtk/gtkiconfactory.c, gtk/gtkimage.c, gtk/gtkinvisible.c, gtk/gtkitemfactory.c, gtk/gtklabel.c, gtk/gtklayout.c, gtk/gtkmenu.c, gtk/gtkprogress.c, gtk/gtkprogressbar.c, gtk/gtkscrolledwindow.c, gtk/gtksizegroup.c, gtk/gtktable.c, gtk/gtktextiter.c, gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktextview.c, gtk/gtktogglebutton.c, gtk/gtktoolbar.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c, gtk/gtktreestore.c, gtk/gtktreeview.c, gtk/gtktreeviewcolumn.c, gtk/gtkviewport.c, gtk/gtkwidget.c, gtk/gtkwidget.h, gtk/gtkwindow.c: Minor documentation fixes (#89254, patch from Brett Nash; #85809, patch from daten@dnetc.org; #76391, patch from Ross Burton; #74559, Manuel Clos; #73569, #72005, Alexey A. Malyshev; #70061, patch from Dennis Bj"orklund; #64566, #63388, #58328, #57499, #81007, #77349, Vitaly Tishkov; #78932, Vitaly Tishkov, patch from Ross Burton; #73306)
* Improve a warning.Matthias Clasen2002-04-301-1/+1
| | | | | | | | | | | | | | | | * gtk/gtkcontainer.c (gtk_container_class_install_child_property): Improve a warning. * gdk/linux-fb/gdkinput.c (gdk_device_get_axis): Remove a broken and redundant doc comment. * gtk/gtkprogress.c (gtk_progress_class_init): * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): * gtk/gtktexttag.c (gtk_text_tag_class_init): * gtk/gtknotebook.c (gtk_notebook_class_init): Better blurbs, incorporating stuff from the doc templates. * gtk/gtkplug.c (gtk_plug_construct): Fix docs.
* Clarify documentation. (#69026)Matthias Clasen2002-01-181-0/+3
| | | | | | | | * gtk/gtkitemfactory.c (gtk_item_factory_get_widget_by_action): Clarify documentation. (#69026) * gtk/gtkprogressbar.c (gtk_progress_bar_size_request): Fix missing initialization of adjustment. (#69025)
* don't cast a possible NULL pointer.Tim Janik2002-01-091-1/+1
| | | | | | | | | | | | | | Wed Jan 9 11:23:39 2002 Tim Janik <timj@gtk.org> * gtk/gtklayout.c (gtk_layout_get_property): * gtk/gtkspinbutton.c (gtk_spin_button_get_property): * gtk/gtktreeview.c (gtk_tree_view_get_property): * gtk/gtkwidget.c (gtk_widget_get_property): * gtk/gtkfontsel.c (gtk_font_selection_get_property): * gtk/gtkrange.c (gtk_range_get_property): * gtk/gtkviewport.c (gtk_viewport_get_property): * gtk/gtkprogressbar.c (gtk_progress_bar_get_property): don't cast a possible NULL pointer.
* Fix a typo. Fix a typo.Kjartan Maraas2001-12-161-1/+1
| | | | | | | 2001-12-16 Kjartan Maraas <kmaraas@gnome.org> * gtk/gtkprogressbar.c: Fix a typo. * gtk/gtkpaned.c: Fix a typo.
* gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the settingMatthias Clasen2001-08-281-3/+3
| | | | of use_text_format to the end of the function. (#56447)
* Patch from Matthias Clasen to remove remove all instances ofOwen Taylor2001-07-181-14/+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.
* Add an extra parameter use_text to gtk_paint_label() to deal withOwen Taylor2001-04-301-0/+1
| | | | | | | | | | | | | | | | | | Mon Apr 30 19:18:07 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter use_text to gtk_paint_label() to deal with style->bg[] vs style->text[]. * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal with GtkWidget::interior_focus = TRUE better. * gtk/gtkbutton.c * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove G_VALUE_NO_COPY_CONTENTS, to correspond with the recent change that had to be made with g_object_get.
* Remove leaks.Alexander Larsson2001-03-301-107/+172
| | | | | | | | | | | | | | | | | | | | | | | 2001-03-30 Alexander Larsson <alexl@redhat.com> * gtk/gtkbutton.c (gtk_button_get_property): * gtk/gtklabel.c: Remove leaks. * gtk/gtkcontainer.c: * gtk/gtkhscale.c: * gtk/gtkhscrollbar.c: * gtk/gtklayout.c: * gtk/gtkmisc.c: * gtk/gtkprogress.c: * gtk/gtkprogressbar.c: * gtk/gtkrange.c: * gtk/gtktable.c: * gtk/gtkviewport.c: * gtk/gtkvscale.c: * gtk/gtkvscrollbar.c: * gtk/gtkwidget.c: Property patches, based on patches from John Margaglione and Lee Mallabone.
* Handle quoting of / with \; properly handle __ in paths, quote " and \n inOwen Taylor2001-03-191-13/+13
| | | | | | | | | | | | | | 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.
* fix screwup with shadowed variables that had broken size request in someHavoc Pennington2001-02-171-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-02-17 Havoc Pennington <hp@pobox.com> * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with shadowed variables that had broken size request in some cases, leading to bogus tooltips (#50996) 2001-02-06 Jon K Hellan <hellan@acm.org> Implement fast browsing of tooltips, bug #50619 * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay and last_popdown * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay, use_sticky_delay and last_popdown. (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record time of popdown. (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget is NULL. (gtk_tooltips_recently_shown): New static function. Return true if < sticky_delay has elapsed since last popdown. (gtk_tooltips_event_handler): Display window after sticky_delay (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed since last popdown. 2001-02-17 Havoc Pennington <hp@pobox.com> * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void) instead of (). #6394 * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add G_CONST_RETURN, make it return by reference, #50473
* Add "getters" for all the non-deprecated set_foo functions. Added missingHavoc Pennington2001-01-181-5/+138
| | | | | | | | | 2001-01-17 Havoc Pennington <hp@pobox.com> * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for all the non-deprecated set_foo functions. Added missing object properties, and added g_object_notify() to setters. Wrote docs.