Matthias Clasen
e499a09759
Drop gtkintl.h
...
Include gtkprivate.h for I_() and glib-i18n.h for
gettext macros.
2022-09-24 10:03:37 -04:00
Sophie Herold
a546ae32d7
Remove all nicks and blurbs from param specs
...
Those property features don't seem to be in use anywhere.
They are redundant since the docs cover the same information
and more. They also created unnecessary translation work.
Closes #4904
2022-05-11 18:16:29 +02:00
Matthias Clasen
91f7b9663f
gtk: Clean up docs syntax
...
Replace leftover gtk-doc syntax (#Type) with backquotes.
2021-05-22 17:25:26 -04:00
Matthias Clasen
e92e14c845
cellrendererprogress: Add a summary
2021-03-11 16:37:37 +00:00
Emmanuele Bassi
20f9e0f144
Port GtkCellRendererProgress to preferred size vfuncs
...
Drop the use of GtkCellRendererClass.get_size()
2020-11-28 19:21:24 +00:00
Matthias Clasen
929a56e53c
Clean up lots of GTK+ -> GTK
...
Replace most remaining uses of GTK+ in the docs and
user-visible strings by GTK. Also remove some leftover
"Was added in 3.x" sentences from the docs.
2020-09-12 12:01:04 -04:00
Matthias Clasen
ae7cefd97d
Drop style class defines
...
We document the supported style classes by name,
not by macro name, and these macros don't really
add any value. Drop them for GTK 4.
2020-08-14 07:03:27 -04:00
Benjamin Otte
556997f9df
Replace "gfloat" with "float"
2020-07-25 00:47:36 +02:00
Benjamin Otte
d375dce9f5
Replace "gchar" with "char"
2020-07-25 00:47:36 +02:00
Benjamin Otte
d7266b25ba
Replace "gint" with "int"
2020-07-25 00:47:36 +02:00
Matthias Clasen
8dba12e1c5
cell renderer progress: Drop the priv pointer
2019-05-26 20:42:08 -04:00
Matthias Clasen
367f350f1f
cell renderer progress: Make final
2019-05-26 20:40:15 -04:00
Benjamin Otte
a44ac75e65
gtk: Don't include gtkstylecontext.h from gtkcsstypesprivate.h
...
And make sure it's included everywhere it's needed.
2019-03-19 08:53:25 +01:00
Benjamin Otte
73b4a62f51
snapshot: Redo debug messages
...
Instead of every snapshot function having debug messages, have an
explicit gtk_snapshot_push_debug() function that appends a debug node.
2018-04-24 04:06:58 +02:00
Matthias Clasen
4c150d8eb5
The big versioning cleanup
...
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.
2018-02-06 01:16:32 -05:00
Benjamin Otte
b58de2d16c
snapshot: Redo pop() API
...
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().
2017-01-13 03:38:36 +01:00
Benjamin Otte
a0f65d16bc
cellrendererprogress: Implement snapshot()
2016-12-23 10:44:49 +01:00
Piotr Drąg
a2da4ddceb
Use Unicode in translatable strings
...
See https://developer.gnome.org/hig/stable/typography.html
https://bugzilla.gnome.org/show_bug.cgi?id=772371
2016-12-19 15:08:10 -05:00
Benjamin Otte
1518fe0a8f
API: stylecontext: Remove state argument from getters
...
The argument must always be the current state.
2016-10-16 18:18:58 +02:00
Matthias Clasen
9f75c5445f
cell renderer progress: Avoid warnings
...
Use the right state when calling gtk_style_context_get_padding,
to avoid warnings.
2015-11-20 00:13:20 -05:00
Benjamin Otte
d3c147a62d
stylecontext: Split render functions out into gtkrender.[ch]
2014-10-03 06:18:05 +02:00
Matthias Clasen
b3e1bb1654
Progress widgets: Better typography
...
Use a small space before %.
https://bugzilla.gnome.org/show_bug.cgi?id=735192
2014-09-29 23:05:22 -04:00
Benjamin Otte
6c06bd55da
gtk: Don't use gtk_render_activity()
...
... 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.
2014-08-16 16:34:14 +02:00
Matthias Clasen
31654f4515
GtkCellRendererProgress: Use G_PARAM_EXPLICIT_NOTIFY
...
Also add explicit notification and avoid redundant notification
for some properties.
2014-06-09 13:30:56 -04:00
William Jon McCann
469d333aa2
docs: use Returns: consistently
...
Instead of Return value:
2014-02-19 18:56:05 -05:00
Emmanuele Bassi
0899ef7cc9
gtk: Use new macros for defining private data
...
https://bugzilla.gnome.org/show_bug.cgi?id=702996
2013-07-09 09:30:02 +01:00
Javier Jardón
9d0febc9a6
Change FSF Address
2012-02-27 17:06:11 +00:00
Matthias Clasen
cd91ab9761
Fix handling of GtkCellRendererProgress::inverted
...
We were setting the wrong field.
https://bugzilla.redhat.com/show_bug.cgi?id=747761
2011-10-24 13:50:00 -04:00
Cosimo Cecchi
73d9ca67e6
cellrendererprogress: don't force drawing inside the border
...
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
2011-05-06 15:10:43 -04:00
Javier Jardón
ca8d880a20
Move documentation to inline comments: GtkCellRendererProgress
2011-04-11 02:18:13 +01:00
Carlos Garnacho
3285eff289
Make GtkCellRendererProgress use GtkStyleContext
2011-01-27 20:57:12 +01:00
Brian Cameron
f90365d46b
Fix spacing.
2010-12-22 21:58:40 -06:00
Brian Cameron
e88a44f4c9
Fix bug #637721 , fix function prototype.
2010-12-22 21:57:12 -06:00
Kristian Rietveld
137f16c4c5
Do not bother starting a draw call if bar_size <= 0
2010-12-05 13:57:04 +01:00
Matthias Clasen
21eae6b6f3
Make GdkRectangle arguments in GtkCellRenderer use const consistently
...
https://bugzilla.gnome.org/show_bug.cgi?id=630900
2010-10-04 10:23:55 -04:00
Benjamin Otte
1d3f6b30b0
API: Rename gtk_cairo_paint_*() to gtk_paint_*()
...
Large patch, but just renaming.
Indentation should still mostly be correct because I took care of
keeping the indentation for this function name.
2010-09-26 15:11:42 +02:00
Benjamin Otte
e31e77eeb8
API: Change cellrenderer->render vfunc to take a cairo_t
...
Also constify the rectangle arguments. They were const anyway.
2010-09-26 15:03:01 +02:00
Matthias Clasen
0ff6aedca0
Convert GtkCellRendererProgress to a GtkOrientable
...
And add an inverted property to it, too.
2010-09-01 23:27:00 -04:00
Javier Jardón
4a17e27a1e
gtk/gtkcellrendererprogress.c: use accessor functions to access GtkWidget
2010-08-22 22:56:15 +02:00
Javier Jardón
ee1d9df94c
gtkcellrendererprogress: unseal private pointer
2010-07-13 19:40:45 +02:00
Javier Jardón
db584abef3
Use accessor functions to access GtkCellRenderer
2010-07-13 19:40:45 +02:00
Javier Jardón
0a07e9733b
gtk/: fully remove gtkalias hacks
...
https://bugzilla.gnome.org/show_bug.cgi?id=623845
2010-07-10 02:51:26 +02:00
Matthias Clasen
c27052be96
Don't try to keep state in a cell renderer between two paint calls. It
...
* 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
2008-12-13 08:18:50 +00:00
Matthias Clasen
5cfd038335
Use C_() instead of Q_(). String change!
...
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
2008-10-27 01:42:28 +00:00
Kristian Rietveld
56efde1a2f
Add orientation property and some slight refactoring here and there.
...
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
2007-06-13 12:41:24 +00:00
Kristian Rietveld
633cd695f6
add text-[xy]align properties for aligning the text label of the progress
...
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
2007-06-06 20:27:15 +00:00
Kristian Rietveld
75c9c07f02
fix docs.
...
2007-01-03 Kristian Rietveld <kris@gtk.org>
* gtk/gtkcellrendererprogress.c
(gtk_cell_renderer_progress_class_init): fix docs.
svn path=/trunk/; revision=17027
2007-01-02 23:36:32 +00:00
Matthias Clasen
0dd1afdfca
Implement activity mode for GtkCellRendererProgress. ( #377851 , Brad
...
2007-01-01 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcellrendererprogress.c: Implement activity mode
for GtkCellRendererProgress. (#377851 , Brad Taylor)
svn path=/trunk/; revision=17004
2007-01-02 04:11:15 +00:00
Carlos Garnacho
40750b5152
do not use xthickness/ythickness, they aren't used any longer for drawing.
...
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.
2006-12-07 15:56:03 +00:00
Kristian Rietveld
980ca0ed46
broooooooken pipe
2006-12-06 21:40:02 +00:00