Matthias Clasen
072023e57b
Remove deprecated GtkSpinner style properties
2011-01-05 23:21:52 -05:00
Matthias Clasen
d5df33c75f
Fix abi check after recent merges
2010-12-05 12:18:30 -05:00
Carlos Garnacho
e9ef162d4c
GtkSpinner: Use style context for rendering.
...
Animation is now handled by the theming layer, a looping animation
has been defined in the default CSS to handle active spinners.
2010-12-04 15:39:45 +01:00
Guillaume Desmottes
8076dbfb5c
gtkspinner: don't setup the timeout twice ( #636129 )
2010-11-30 15:59:49 +01:00
Emmanuele Bassi
781d4faf4c
a11y: Use ATK macros and clean up/2 - GtkSpinner
...
ATK provides macros to the same effect as G_DEFINE_TYPE; using these
macros has the advantage of removing tons of duplicated code and
reducing the maintainership burden.
The widgets with inline accessibility implementation should switch to
these macros, and clean up the code.
https://bugzilla.gnome.org/show_bug.cgi?id=636060
2010-11-30 02:06:57 +00:00
Benjamin Otte
d9c9259861
Move GtkSizeRequest into GtkWidget
...
It doesn't make sense to keep them separate as GtkSizeRequest requires a
GtkWidget and GtkWidget implements GtkSizeRequest, so you can never have
one without the other.
It also makes the code a lot easier because no casts are required when
calling functions.
Also, the names would translate to gtk_widget_get_width() and people
agreed that this would be a too generic name, so a "preferred" was added
to the names.
So this patch moves the functions:
gtk_size_request_get_request_mode() => gtk_widget_get_request_mode()
gtk_size_request_get_width() => gtk_widget_get_preferred_width()
gtk_size_request_get_height() => gtk_widget_get_preferred_height()
gtk_size_request_get_size() => gtk_widget_get_preferred_size()
gtk_size_request_get_width_for_height() =>
gtk_widget_get_preferred_width_for_height()
gtk_size_request_get_height_for_width() =>
gtk_widget_get_preferred_height_for_width()
... and moves the corresponding vfuncs to the GtkWidgetClass.
The patch also renames the implementations of the vfuncs in widgets to
include the word "preferrred".
2010-09-26 15:11:45 +02: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
0a6b7e5759
spinner: Port to draw vfunc
2010-09-26 15:11:35 +02:00
Benjamin Otte
e06d04032b
spinner: We're a no-window widget, so setting a colormap does nothing
2010-09-26 15:11:31 +02:00
Javier Jardón
f5a06df3dc
spinner: timeout should add/remove in map/unmap, not realize/unrealize.
...
Otherwise hiding the spinner won't stop it
2010-09-15 04:00:55 +02:00
Benjamin Otte
7b42d4feda
spinner: Don't inherit from drawing area
...
A drawing area is not meant to be subclassed from. It also doesn't
provide any feature a spinner would need either.
2010-09-14 01:28:01 +02:00
Benjamin Otte
032d3f0ada
spinner: Implement the size request interface
...
Doing size requests in expose is broken.
2010-09-14 01:25:07 +02:00
Benjamin Otte
c22b80949d
spinner: Move G_DEFINE_TYPE() below function definitions
...
Also remove redundant double definition.
2010-09-14 01:19:48 +02:00
Benjamin Otte
5ba6295a10
spinner: Define desired size at top of file
...
No magic numbers in the code please
2010-09-14 01:09:53 +02:00
Mike Gorse
8fb5bc2583
Remove a duplicate variable
...
Bug#629110: gtk_spinner_accessible_get_type always returns null
2010-09-08 17:55:28 -04:00
Javier Jardón
91a49bac5a
gtk/gtkspinner.c: use accessor functions to access GtkWidget
2010-08-22 21:25:24 +02:00
Benjamin Otte
6eed185502
spinner: We want the default colormap, not the RGB colormap
...
GtkSpinner doesn't use GdkRGB
2010-07-26 16:42:46 +02:00
Javier Jardón
e6db32de44
gtkspinner: Remove GET_PRIVATE macro
2010-07-13 19:40:50 +02:00
Javier Jardón
5ee19bdafe
Use accessor functions to access GtkAccesible variables
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
Javier Jardón
24bafd8693
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_NO_WINDOW)
...
Use new API instead: gtk_widget_set_has_window ()
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-06 11:37:06 +01:00
Javier Jardón
16a59ad912
Deprecate widget flag: GTK_WIDGET_REALIZED
...
Use gtk_widget_get_realized() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-03 20:41:05 +01:00
Javier Jardón
a27d5a2c9e
Deprecate widget flag: GTK_WIDGET_IS_SENSITIVE
...
Use gtk_widget_is_sensitive() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-01 05:32:51 +01:00
Matthias Clasen
0567ea1c18
Add customary args to gtk_style_paint_spinner()
...
...and adjust all callers.
2009-11-27 01:23:55 -05:00
Christian Dywan
e41f4e85cf
Improve accessibility context and description of the spinner
...
https://bugzilla.gnome.org/show_bug.cgi?id=598758
2009-11-06 00:56:30 +01:00
Javier Jardón
3388a1b146
Use "Since: 2.x" instead "Since 2.x"
2009-10-30 18:11:44 +01:00
Xan Lopez
009f160709
Do not assign the parent class twice
...
G_DEFINE_TYPE already does this for us, no need to do it again in
class_init
https://bugzilla.gnome.org/show_bug.cgi?id=598515
2009-10-15 15:28:54 +02:00
Paolo Borelli
10a53ff12e
Notify the "active" property of the spinner only when needed
...
Notify spinner::active only if it really changed an other cosmetic fixes
2009-10-15 15:23:30 +02:00
Bastien Nocera
7fd79f42ab
Fix GtkSpinner using style before it's set
...
Fix a possible division by zero when the spinner
is started before it's realized (eg. before it has a style
set).
https://bugzilla.gnome.org/show_bug.cgi?id=598496
2009-10-15 01:43:26 +01:00
Bastien Nocera
6f44b00935
Fix property links in GtkSpinner
2009-10-14 22:38:57 +01:00
Bastien Nocera
e9a240cd52
Add GtkSpinner::animation-duration style property
2009-10-14 19:06:26 +01:00
Matthias Clasen
d1ee8e2d4b
Documentation and stylistic fixups
2009-10-14 13:26:10 -04:00
Bastien Nocera
aa663e08f7
Fix "active" property not being notified
...
And setting it FALSE starting the spinning when it should
stop it.
2009-10-14 17:47:02 +01:00
Bastien Nocera
a480cae524
Capitalise a11y description for GtkSpinner
2009-10-14 16:01:24 +01:00
Bastien Nocera
d21700f510
Bug 319607 – Add a throbber (activity widget) to GTK+
...
Add GtkSpinner activity throbber, as well as a cell renderer.
2009-10-14 14:58:30 +01:00