summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrendererprogress.c
Commit message (Collapse)AuthorAgeFilesLines
* cell renderer progress: Drop the priv pointerMatthias Clasen2019-05-261-18/+15
|
* cell renderer progress: Make finalMatthias Clasen2019-05-261-0/+16
|
* gtk: Don't include gtkstylecontext.h from gtkcsstypesprivate.hBenjamin Otte2019-03-191-0/+1
| | | | And make sure it's included everywhere it's needed.
* snapshot: Redo debug messagesBenjamin Otte2018-04-241-6/+3
| | | | | Instead of every snapshot function having debug messages, have an explicit gtk_snapshot_push_debug() function that appends a debug node.
* The big versioning cleanupMatthias Clasen2018-02-061-12/+0
| | | | | | | 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.
* snapshot: Redo pop() APIBenjamin Otte2017-01-131-3/+3
| | | | | | | | gtk_snapshot_pop() => removed gtk_snapshot_pop_and_append() => gtk_snapshot_pop() So now there is no way to get a rendernode out of the snapshotting API until you gtk_snapshot_finish().
* cellrendererprogress: Implement snapshot()Benjamin Otte2016-12-231-35/+44
|
* Use Unicode in translatable stringsPiotr Drąg2016-12-191-1/+1
| | | | | | See https://developer.gnome.org/hig/stable/typography.html https://bugzilla.gnome.org/show_bug.cgi?id=772371
* API: stylecontext: Remove state argument from gettersBenjamin Otte2016-10-161-1/+1
| | | | The argument must always be the current state.
* cell renderer progress: Avoid warningsMatthias Clasen2015-11-201-1/+1
| | | | | Use the right state when calling gtk_style_context_get_padding, to avoid warnings.
* stylecontext: Split render functions out into gtkrender.[ch]Benjamin Otte2014-10-031-1/+2
|
* Progress widgets: Better typographyMatthias Clasen2014-09-291-2/+2
| | | | | | Use a small space before %. https://bugzilla.gnome.org/show_bug.cgi?id=735192
* gtk: Don't use gtk_render_activity()Benjamin Otte2014-08-161-7/+8
| | | | | | ... in places where we draw a background. This was changed for GTK 3.0.0 to allow animations, but these days it doesn't make sense anymore to use gtk_render_activity() for backgrounds.
* GtkCellRendererProgress: Use G_PARAM_EXPLICIT_NOTIFYMatthias Clasen2014-06-091-25/+36
| | | | | Also add explicit notification and avoid redundant notification for some properties.
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-1/+1
| | | | Instead of Return value:
* gtk: Use new macros for defining private dataEmmanuele Bassi2013-07-091-6/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702996
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* Fix handling of GtkCellRendererProgress::invertedMatthias Clasen2011-10-241-1/+1
| | | | | We were setting the wrong field. https://bugzilla.redhat.com/show_bug.cgi?id=747761
* cellrendererprogress: don't force drawing inside the borderCosimo Cecchi2011-05-061-6/+5
| | | | | | | | | | | The progressbar is composed by two different rendered areas: the trough (i.e. the non-filled part of the bar) and the bar itself. The bar should be able to fill the whole height/width of the trough without resorting to nasty hacks in the theme, and we can control the amount of space between the bar and the trough with the padding already. https://bugzilla.gnome.org/show_bug.cgi?id=649593
* Move documentation to inline comments: GtkCellRendererProgressJavier Jardón2011-04-111-0/+12
|
* Make GtkCellRendererProgress use GtkStyleContextCarlos Garnacho2011-01-271-39/+49
|
* Fix spacing.Brian Cameron2010-12-221-1/+1
|
* Fix bug #637721, fix function prototype.Brian Cameron2010-12-221-1/+1
|
* Do not bother starting a draw call if bar_size <= 0Kristian Rietveld2010-12-051-6/+7
|
* Make GdkRectangle arguments in GtkCellRenderer use const consistentlyMatthias Clasen2010-10-041-8/+8
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=630900
* 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.
* API: Change cellrenderer->render vfunc to take a cairo_tBenjamin Otte2010-09-261-37/+53
| | | | Also constify the rectangle arguments. They were const anyway.
* Convert GtkCellRendererProgress to a GtkOrientableMatthias Clasen2010-09-011-33/+33
| | | | And add an inverted property to it, too.
* gtk/gtkcellrendererprogress.c: use accessor functions to access GtkWidgetJavier Jardón2010-08-221-10/+13
|
* gtkcellrendererprogress: unseal private pointerJavier Jardón2010-07-131-6/+6
|
* Use accessor functions to access GtkCellRendererJavier Jardón2010-07-131-7/+12
|
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-4/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Don't try to keep state in a cell renderer between two paint calls. ItMatthias Clasen2008-12-131-2/+2
| | | | | | | | | * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_set_pulse): Don't try to keep state in a cell renderer between two paint calls. It doesn't work. Patch by Kristian Mueller svn path=/trunk/; revision=21890
* Use C_() instead of Q_(). String change!Matthias Clasen2008-10-271-3/+2
| | | | | | | | | | | | | | | | 2008-10-26 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaccellabel.c: * gtk/gtkcalendar.c: * gtk/gtkcellrendereraccel.c: * gtk/gtkcellrendererprogress.c: * gtk/gtkimmulticontext.c: * gtk/gtkrecentchoosermenu.c: * gtk/gtkvolumebutton.c: Use C_() instead of Q_(). String change! svn path=/trunk/; revision=21716
* Add orientation property and some slight refactoring here and there.Kristian Rietveld2007-06-131-29/+135
| | | | | | | | | | | | | | | 2007-06-13 Kristian Rietveld <kris@imendio.com> * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_class_init), (gtk_cell_renderer_progress_init), (gtk_cell_renderer_progress_[gs]et_property), (gtk_cell_renderer_progress_render): Add orientation property and some slight refactoring here and there. (Fixes #344836, reported by Benjamin Montgomery). svn path=/trunk/; revision=18118
* add text-[xy]align properties for aligning the text label of the progressKristian Rietveld2007-06-061-4/+68
| | | | | | | | | | | | | | 2007-06-06 Kristian Rietveld <kris@imendio.com> * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_init), (gtk_cell_renderer_progress_class_init), (gtk_cell_renderer_progress_[gs]et_property), (gtk_cell_renderer_progress_render): add text-[xy]align properties for aligning the text label of the progress bar. (#334576, suggestion from Steven Sheehy). svn path=/trunk/; revision=18068
* fix docs.Kristian Rietveld2007-01-021-1/+1
| | | | | | | | | | 2007-01-03 Kristian Rietveld <kris@gtk.org> * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_class_init): fix docs. svn path=/trunk/; revision=17027
* Implement activity mode for GtkCellRendererProgress. (#377851, BradMatthias Clasen2007-01-021-60/+167
| | | | | | | | | | | 2007-01-01 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcellrendererprogress.c: Implement activity mode for GtkCellRendererProgress. (#377851, Brad Taylor) svn path=/trunk/; revision=17004
* do not use xthickness/ythickness, they aren't used any longer for drawing.Carlos Garnacho2006-12-071-3/+3
| | | | | | | 2006-12-07 Carlos Garnacho <carlosg@gnome.org> * gtk/gtkcellrendererprogress (compute_dimensions): do not use xthickness/ythickness, they aren't used any longer for drawing.
* broooooooken pipeKristian Rietveld2006-12-061-26/+25
|
* Make sure [xy]_offset are always being initialized, fix pixbuf rendererKristian Rietveld2006-12-031-0/+3
| | | | | | | | | | | | | | | | | 2006-12-03 Kristian Rietveld <kris@gtk.org> Make sure [xy]_offset are always being initialized, fix pixbuf renderer padding. (#108235, Sven Neuman). * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_get_size), (gtk_cell_renderer_pixbuf_render): add padding in _render instead of _get_size. * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_get_size): always initialize [xy]_offset. * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): ditto. * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size): ditto.
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* This commit includes a fix for #169463, Stefan Kost.Kristian Rietveld2005-06-191-1/+14
| | | | | | | | | | | | | | | | | | | 2005-06-19 Kristian Rietveld <kris@gtk.org> This commit includes a fix for #169463, Stefan Kost. * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_get_size): when cell_area is set, return cell_area width/height as width/height, so the focus rectangle will be drawn correctly. * gtk/gtktreeview.c (gtk_tree_view_bin_expose): drop unneeded get of focus-line-width property, (validate_row): take focus_line_width into account. * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action): also take focus_line_width into account when calculating the cell_area y and height (before, we only took it into account when calculating x and width).
* Use a GtkAlignment rather than a GtkDrawingArea to draw the swatch in toOwen Taylor2005-05-111-10/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-05-11 Owen Taylor <otaylor@redhat.com> * gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea to draw the swatch in to avoid having an extraneous window. * gtk/gtkcolorsel.c (color_sample_draw_sample): Actually se tthe color when !has_opacity. 2005-05-10 Owen Taylor <otaylor@redhat.com> * gdk/gdkcairo.[ch] gdk/gdkcolor.[ch] gdk/Makefile.am: Add source files for Cairo convenience functionality. * gdk/gdkcairo.h (gdk_cairo_rectangle, gdk_cairo_region): Add a convenience functions to add GdkRectangle, GdkRegion to a cairo path. * gdk/gdkwindow.c gdk/gdkgc.c gtk/gtkcolorsel.c gtk/gtkiconview.c gtk/gtkstyle.c: Use gdk_cairo_rectangle/region(). * gdk/gdkcairo.[ch] gdk/gdkdrawable.h gdk/gdkdraw.c: Rename gdk_drawable_create_cairo_context() to gdk_cairo_create(). * gdk/gdkcairo.c gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c: Rename gdk_pixbuf_set_as_cairo_source() to gdk_cairo_set_source_pixbuf(). * gdk/gdkdraw.c gdk/gdkpango.c gtk/gtkcolorsel.c gtk/gtkhruler.c gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkstyle.c gtk/gtkvruler.c: Adjust for renames. * gdk/gdk.symbols: Update. * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): Fix coordinate system problem that was causing the wrong portions to be invalidated. * gtk/gtkcellrenderer.c (gtk_cell_renderer_render) gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render) gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render) gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render) gtk/gtkcellview.c (gtk_cell_view_expose) gtk/gtkdnd.c (gtk_drag_highlight_expose) gtk/gtkentry.c (gtk_entry_draw_text) gtk/gtktextview.c (text_window_invalidate_rect): Some cairoization. * gtk/gtkcalendar.[ch]: Beat into something roughly resembling GTK+ style ... use instance-private data and standard names for private structure, etc. Move function docs inline. * gtk/gtkcalendar.[ch]: Switch to drawing everything in expose. Switch drawing to Cairo. * gtk/gtkcalendar.c (gtk_calendar_freeze): Deprecate gtk_calendar_freeze/thaw
* Define macros GTK_PARAM_READABLE, GTK_PARAM_WRITABLE, GTK_PARAM_READWRITEMatthias Clasen2005-03-221-4/+3
| | | | | | | | | | | | 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-2/+4
|
* 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.
* Add a translator hint. (#163889)Matthias Clasen2005-01-141-0/+1
| | | | | | | 2005-01-14 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_set_value): Add a translator hint. (#163889)
* gdk/linux-fb/gdkgc-fb.c gdk/win32/gdkgc-win32.cManish Singh2004-11-191-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Nov 19 14:54:09 2004 Manish Singh <yosh@gimp.org> * gdk/linux-fb/gdkgc-fb.c * gdk/win32/gdkgc-win32.c * gdk/win32/gdkwindow-win32.c * gtk/gtkaboutdialog.c * gtk/gtkaction.c * gtk/gtkactiongroup.c * gtk/gtkcellrendererprogress.c * gtk/gtkcellview.c * gtk/gtkcolorbutton.c * gtk/gtkcombobox.c * gtk/gtkcomboboxentry.c * gtk/gtkentrycompletion.c * gtk/gtkfilechooserbutton.c * gtk/gtkmenutoolbutton.c * gtk/gtkrc.c * gtk/gtksettings.c * gtk/gtkstyle.c * gtk/gtktoggletoolbutton.c * gtk/gtktoolbutton.c * gtk/gtktoolitem.c * gtk/gtktreemodelfilter.c * gtk/gtktreeselection.c * gtk/gtktreeviewcolumn.c * gtk/gtkuimanager.c: get rid of unnecessary casts. * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_set_property): cast away the const for g_value_set_enum. This is after the g_warning, so this is a hack to begin with. * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_set_property): add a cast to GTK_FILE_CHOOSER for impl here.
* Add hidden aliases for exported symbols which are used internally in orderMatthias Clasen2004-08-091-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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