summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrendererprogress.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Add a Q_() macro.Matthias Clasen2004-05-171-35/+30
| | | | | | | | | | | | | | | Sun May 16 22:27:17 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkintl.h (Q_): Add a Q_() macro. * gtk/gtkcellrendererprogress.h: Remove GTK_PROGRESS_CELL_UNKNOWN and GTK_PROGRESS_CELL_FAILED. With the ability the set the label, they are not really needed. * gtk/gtkcellrendererprogress.c: Use the xpad and ypad properties instead of hardwired padding, use Q_() for the default label, compute a reasonable minimal size. (#142571, #142572, #142573, Tommi Komulainen, Christian Persch)
* Add a progress cell renderer, based on the one found in Epiphany.Matthias Clasen2004-05-121-0/+381