Javier Jardón
74c7588040
Improve GTK_WIDGET_FLAGS() deprecation documentation
...
Also, use GTK_OBJECT_FLAGS() instead.
Note that some internal code still uses GTK_WIDGET_FLAGS().
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:59:12 -04:00
Javier Jardón
8ea37e551b
Don't use GTK_WIDGET_STATE in internal code anymore
...
Use gtk_widget_get/set_state() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:59:06 -04:00
Javier Jardón
1931a8db5d
Don't use GTK_WIDGET_SET_FLAGS() in gtk_widget_init()
2010-04-03 20:59:04 -04:00
Javier Jardón
bbf5e95c41
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_PARENT_SENSITIVE)
...
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:59:03 -04:00
Javier Jardón
9f3d23a900
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_RC_STYLE)
...
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:59:03 -04:00
Javier Jardón
5c2c742c8d
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_APP_PAINTABLE)
...
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:59:03 -04:00
Javier Jardón
a602ff82eb
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_MAPPED)
...
Use new API instead: gtk_widget_set_mapped ()
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:59:03 -04:00
Javier Jardón
e082783fbb
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_REALIZED)
...
Use new API instead: gtk_widget_set_realized ()
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:59:03 -04:00
Javier Jardón
e2f79c33ff
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-04-03 20:59:02 -04:00
Javier Jardón
ee0bf98769
Deprecate widget flag: GTK_WIDGET_REALIZED
...
Use gtk_widget_get_realized() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:58:59 -04:00
Javier Jardón
e53efb120a
Deprecate widget flag: GTK_WIDGET_MAPPED
...
Use gtk_widget_get_mapped() instead.
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:58:58 -04:00
Javier Jardón
2dc372a657
Fix gtk_widget_is_sensitive() function. Second try
...
Use GTK_PARENT_SENSITIVE flag instead
gtk_widget_get_sensitive(widget->parent)
2010-04-03 20:58:23 -04:00
Javier Jardón
2dd2650215
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_NO_SHOW_ALL)
2010-04-03 20:58:23 -04:00
Javier Jardón
e6572c0939
Fix gtk_widget_is_sensitive() function
...
The bug was introduced in
commit a27d5a2c9e
2010-04-03 20:58:23 -04:00
Javier Jardón
ec20658b51
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_CAN_DEFAULT)
...
Use new API instead: gtk_widget_set_can_default ()
2010-04-03 20:58:22 -04:00
Javier Jardón
76943117be
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_CAN_FOCUS)
...
Use new API instead: gtk_widget_set_can_focus ()
2010-04-03 20:58:22 -04:00
Javier Jardón
2d96f39335
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_SENSITIVE)
2010-04-03 20:58:21 -04:00
Javier Jardón
5d4af6ca80
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_DOUBLE_BUFFERED)
...
Use new API instead: gtk_widget_set_double_buffered ()
2010-04-03 20:58:21 -04:00
Javier Jardón
3ebbee6958
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_RECEIVES_DEFAULT)
...
Use new API instead: gtk_widget_set_receives_default ()
2010-04-03 20:58:21 -04:00
Javier Jardón
edc65ce1d2
Deprecate widget flag: GTK_WIDGET_VISIBLE
...
Use gtk_widget_get_visible() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:58:20 -04:00
Javier Jardón
eb90ec7513
Deprecate widget flag: GTK_WIDGET_HAS_FOCUS
...
Use gtk_widget_has_focus() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:56:30 -04:00
Javier Jardón
c3f8b4226d
Deprecate widget flag: GTK_WIDGET_SENSITIVE
...
Use gtk_widget_get_sensitive() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:56:30 -04:00
Javier Jardón
c44c026ee9
Don't use GTK_WIDGET_NO_WINDOW in internal code anymore
...
Use gtk_widget_get_has_window() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:56:30 -04:00
Javier Jardón
e7127daf84
Deprecate widget flag: GTK_WIDGET_IS_SENSITIVE
...
Use gtk_widget_is_sensitive() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:56:29 -04:00
Javier Jardón
04aba4bde2
Deprecate widget flag: GTK_WIDGET_DRAWABLE
...
Use gtk_widget_is_drawable() instead.
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:56:29 -04:00
Johan Dahlin
eee7bb2b2e
[annotations] Add allow-none
...
This commit was created using a script that searched for all docstrings
containing a parameter and the string 'or %NULL'.
Gdk backends and demos excluded as they are not part of a public API
https://bugzilla.gnome.org/show_bug.cgi?id=610474
2010-04-03 20:56:15 -04:00
Michael Natterer
87334d465c
Bug 548026 - No accessor for GtkWidget.requisition
...
Add gtk_widget_get_requisition().
2010-04-03 20:56:15 -04:00
Stefan Kost
4b8a91bb85
widget: ensure boolean before comparing
...
Ensure boolean value like done elsewhere.
2010-04-03 20:56:13 -04:00
Stefan Kost
100c6dc513
widget: don't check before setting to avoid costly type checks
...
There are no side effect of setting these flags and we don't fire g_object
notifies also. Thus set/unset right away without costly check of current state.
2010-04-03 20:56:13 -04:00
Michael Natterer
800fbc513f
Allow calling gtk_widget_style_attach() only when realized
2010-04-03 20:56:12 -04:00
Javier Jardón
fc246a9305
Fix compilation warning: return FALSE instead NULL
2010-04-03 20:56:12 -04:00
Matthias Clasen
5438a7b608
Add some more goddamn accessors
2010-04-03 20:56:09 -04:00
Michael Natterer
9dfadca46c
Bug 608993 - Add gtk_widget_style_attach()
...
As replacement for:
widget->style = gtk_style_attach (widget->style, widget->window);
2010-04-03 20:56:05 -04:00
Javier Jardón
ef3dc5fd42
Add gtk_widget_has_rc_style() accessor
...
Add gtk_widget_has_rc_style() as accessor for sealed
GTK_WIDGET_RC_STYLE widget flag.
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:55:21 -04:00
Christian Dywan
174c126b6e
Document GtkWidget::state-changed signal properly
...
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=598383
2010-04-03 20:55:13 -04:00
Javier Jardón
f8d1cf58af
Deprecate widget flag: GTK_WIDGET_CAN_FOCUS
...
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:55:11 -04:00
Javier Jardón
69de358b38
Deprecate some widget flags
...
Deprecate the following:
GTK_WIDGET_APP_PAINTABLE
GTK_WIDGET_CAN_DEFAULT
GTK_WIDGET_DOUBLE_BUFFERED
GTK_WIDGET_HAS_DEFAULT
GTK_WIDGET_HAS_GRAB
GTK_WIDGET_RECEIVES_DEFAULT
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:55:10 -04:00
Christian Dywan
fc2cbf960c
Deprecate flag macros for toplevel, state, no window and composite child
...
Deprecate widget flag macros GTK_WIDGET_STATE, GTK_WIDGET_SAVED_STATE,
GTK_WIDGET_FLAGS, GTK_WIDGET_TOPLEVEL, GTK_WIDGET_NO_WINDOW and
GTK_WIDGET_COMPOSITE_CHILD.
Also deprecate the type macros GTK_WIDGET_TYPE, GTK_OBJECT_TYPE_NAME and
GTK_OBJECT_TYPE which have become redundant.
Instances of GTK_WIDGET_TOPLEVEL are replaced with gtk_widget_is_toplevel,
GTK_WIDGET_TYPE is replaced with G_OBJECT_TYPE, GTK_WIDGET_COMPOSITE_CHILD
is replaced with use of the "composite-child" property and uses of
GTK_WIDGET_NO_WINDOW are adjusted to use gtk_widget_get_has_window.
Uses of GTK_WIDGET_SAVED_STATE and GTK_WIDGET_FLAGS inside GtkWidget are
changed to direct flag usage.
Documentation is updated to refer to gtk_widget_set_has_window and
gtk_widget_get_has_window.
Gail and tests are updated as well.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:55:07 -04:00
Dan Winship
507bf6a85f
Change GtkIconSize to int in params/return values
...
GtkIconSize is an extensible enumeration (via
gtk_icon_size_register()), so methods that claim to take/return a
GtkIconSize need to actually use "int" to work correctly with bindings
that are strict about enum values.
https://bugzilla.gnome.org/show_bug.cgi?id=604895
2010-04-03 20:51:56 -04:00
Colin Walters
fcbbd763cd
[introspection] Merge in Gtk-custom.c annotations
...
The Gtk-custom.c file in gir-repository contained a number of
introspection annotations. Merge those into the GTK source files.
Some documentation was moved from the tmpl/ files to accomodate
the addition of annotations.
2010-04-03 20:51:53 -04:00
Johannes Schmid
9724366289
native-layout: Don't expose extra gtk_widget_* function that are similar to the GtkExtendedLayout interface
2009-12-14 16:28:56 +01:00
Johannes Schmid
c659d1a505
Merge branch 'master' into native-layout
2009-12-14 15:36:22 +01:00
Johannes Schmmid
e08d04b561
native-layout: Introduce GtkExtendedLayout interface.
2009-12-14 15:32:49 +01:00
Christian Dywan
46f5ee1d0c
Store the buildable name in object data instead of the widget name
...
Widget names are used for theming which is why GtkBuilder should
use object data.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=591085
2009-12-03 13:10:02 +01:00
Javier Jardón
0ef8f52567
Move documentation from templates to inline comments: GtkWidget
...
https://bugzilla.gnome.org/show_bug.cgi?id=597865
2009-11-28 02:59:06 +01:00
Christian Dywan
31771cc640
Add a note about tooltip theming
...
This should help to reduce the amount of confusion about how to
make a tooltip window appear like a tooltip. Bug 596080.
2009-09-30 08:45:30 -04:00
Michael Natterer
6ee228a363
gtk_widget_set_property(): use accessors instead of setting flags
...
Use the newly added accessors to set the "can-focus", "can-default"
and "receives-default" properties.
2009-09-04 15:18:24 +02:00
Michael Natterer
026bea2293
gtk_widget_set_property(): use gtk_widget_set_visible()
...
Use the new API instead of show() and hide().
2009-09-04 14:54:13 +02:00
Michael Natterer
b81079d898
Bug 69872 - GTK_WIDGET_SET_FLAGS should be deprecated
...
Add gtk_widget_set_receives_default() and
gtk_widget_get_receives_default() as accessors for
GTK_RECEIVES_DEFAULT.
2009-09-04 14:50:35 +02:00
Michael Natterer
cc8927a589
Add gtk_widget_set_window()
...
New function as replacement for setting widget->window directly.
Should only be used in GtkWidget::realize().
2009-08-28 16:51:48 +02:00