Javier Jardón
1516be6f69
gtk: Use 'const' instead G_RETURN_CONST
2011-06-15 19:03:44 +01:00
Matthias Clasen
c3a4f0f777
Document that gtk_container_propagate_expose is going away
...
Requested in https://bugzilla.gnome.org/show_bug.cgi?id=646913
2011-04-08 20:31:21 -04:00
Matthias Clasen
a06089a248
Document ::expose-event as deprecated
...
This doesn't really help that much, but better than nothing.
2011-04-05 14:58:20 -04:00
Matthias Clasen
f7b7346f8d
Check if the accessible is actually an AtkAction
2011-02-19 10:10:21 -05:00
Martin Pitt
a33dceee4b
[GI] Backport transfer annotations
2011-01-26 14:10:12 +01:00
Pavel Holejsovsky
5cded4d5e2
[GI] Add missing (transfer) annotations
...
Backported from master commit 2f0d40335b
.
2011-01-26 12:49:08 +01:00
Martin Pitt
e48f5b4073
Backport a lot of GI transfer annotations
...
This dramatically improves using GTK2 with g-i.
Taken from master commit e0aa12eb0a
without the non-documentation changes.
2011-01-10 14:43:00 -06:00
Matthias Clasen
64f2460b7b
Deprecate gtk_widget_reset_shapes
...
This function has been removed in GTK+ 3
2010-12-14 22:18:41 -05:00
Javier Jardón
508f727665
gtkwidget: The deprecated function is gtk_widget_hide_all not gtk_widget_hide
...
This fixes commit 7b5b230ead
2010-10-19 20:21:13 +02:00
Cody Russell
7b5b230ead
Deprecate gtk_widget_hide_all().
2010-10-19 19:54:32 +02:00
Kristian Rietveld
3258af741e
Use gdk_window_ accessors instead of gdk_drawable_ accessors if possible
...
The gdk_drawable_ accessors were deprecated. Removes a lot of
compile-time warnings and eventually also makes things work again
on Mac (miscompile due to the missing prototypes).
2010-10-19 10:37:15 +02:00
Matthias Clasen
d7cc714705
Add some element-type annotations to gtk apis
2010-09-17 09:50:57 -04:00
Stefan Kost
e14bf989eb
widget: more details on gtk_widget_grab_focus docs
...
Tell that widget needs to be mapped and realized.
2010-09-01 16:56:42 +03:00
Matthias Clasen
67684a05b6
Deprecate GtkWidget::draw-border style property
...
This style property is not used at all in the wild, and handling
it has some performance overhead.
2010-08-18 12:49:34 -04:00
Matthias Clasen
2161fb5b8c
Clarify the docs for gtk_widget_set_has_window()
...
The previous version of the docs did not make it clear that has-window
is the defaults. Pointed out by Magnus Hjorth, bug 615474.
(cherry picked from commit 61e34032ec
)
2010-08-09 23:14:47 -04:00
Colin Walters
1af84d33f7
Fix annotation syntax for gtk_widget_class_path
...
(cherry picked from commit c609c4e807
)
2010-07-12 12:31:23 -04:00
Javier Jardón
7d6d1af7a1
[docs] Fix annotations: "(allow-none): (out)" -> "(out) (allow-none)"
2010-06-24 18:13:17 +02:00
Steve Frécinaux
1a00cb9df5
[gtkwidget] Add type annotations for the event signals.
2010-06-08 22:38:40 +02:00
John (J5) Palmieri
3b50f22873
add transfer-none to return value of gtk_widget_get_window
2010-06-07 18:38:21 -04:00
Benjamin Otte
fd20ac0751
Revert "Deprecate the GdkRegion API"
...
This reverts commit 821dd33918
.
2010-05-26 09:25:35 +02:00
Benjamin Otte
821dd33918
Deprecate the GdkRegion API
...
Includes fixing all callers to use the cairo region API instead. This is
usually just replacing the function names, the only difference is
gdk_region_get_rectangles() being replaced by
cairo_region_num_rectangles() and cairo_region_get_rectangle() which
required a bit more work.
https://bugzilla.gnome.org/show_bug.cgi?id=613284
2010-05-23 23:27:15 +02:00
Matthias Clasen
1fb1f6a7b1
Correct a Since: tag
2010-05-07 13:34:36 -04:00
Javier Jardón
41a073263a
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_HAS_DEFAULT)
...
Introduce internal _gtk_widget_set_has_default() for this
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=614515
2010-04-26 21:10:15 +02:00
Javier Jardón
45257e31c7
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_TOPLEVEL)
...
Introduce internal _gtk_widget_set_is_toplvel() for this
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=614510
2010-04-26 21:07:20 +02:00
Javier Jardón
560e426f16
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_HAS_GRAB)
...
Introduce internal _gtk_widget_set_has_grab() for this
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=614513
2010-04-26 21:04:51 +02:00
Emmanuele Bassi
f04a720348
widget: Add send_focus_change()
...
Currently the only users of the GTK_HAS_FOCUS flag are setting it
before sending a focus change event. This is normally needed by
GtkWindow, but there are widgets that require controlling the focus
of widgets that are semantically their children even though they are
parented to another top-level. Case in point: the quick search entry
for GtkTreeView.
Over the years people have been hacking the focus change out of
gtkwindow.c and gtktreeview.c, thus leaking the direct access of the
GTK_HAS_FOCUS flag.
The simplest way to avoid that is to add a function that sends the
focus change event and controls the setting of the flag, thus removing
the need for external widgets to do the same.
https://bugzilla.gnome.org/show_bug.cgi?id=593671
2010-04-26 18:59:22 +01:00
Javier Jardón
edfcc3dd41
[docs] Fix GtkWidget and GtkFileChooser documentation
...
gtk-doc version >= 1.14 is more strict, It produces valid xml
if the source is valid.
2010-04-15 22:58:39 +02:00
Michael Natterer
fdf936b5ad
gtk: fixes for offscreen widgets
...
Fix gtk_widget_translate_coordinates() and
_gtk_widget_synthesize_crossing() so they work in hierarchies with
offscreen widgets.
2010-04-15 13:02:04 +02:00
Hiroyuki Ikezoe
22b0149b78
Use g_value_take_string to avoid redundant invoking g_free.
2010-03-25 16:34:46 +01:00
Hiroyuki Ikezoe
3a65f554c5
Fix a tiny documentation typo
2010-03-17 13:10:17 -04:00
Javier Jardón
2c043d33c2
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-03-12 06:46:34 +01:00
Javier Jardón
32b9aeaadd
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-03-09 02:40:17 +01:00
Javier Jardón
72948f46bd
Don't use GTK_WIDGET_SET_FLAGS() in gtk_widget_init()
2010-03-06 13:17:56 +01:00
Javier Jardón
691c13c424
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_PARENT_SENSITIVE)
...
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-06 13:13:01 +01:00
Javier Jardón
a7efb2eaa0
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_RC_STYLE)
...
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-06 13:01:58 +01:00
Javier Jardón
24491f8224
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_APP_PAINTABLE)
...
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-06 12:29:26 +01:00
Javier Jardón
74ed719fa4
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-03-06 12:02:21 +01:00
Javier Jardón
1934de4b65
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-03-06 11:51:33 +01: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
1fe7d3cefd
Deprecate widget flag: GTK_WIDGET_MAPPED
...
Use gtk_widget_get_mapped() instead.
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-03 20:19:03 +01:00
Javier Jardón
32d043535b
Fix gtk_widget_is_sensitive() function. Second try
...
Use GTK_PARENT_SENSITIVE flag instead
gtk_widget_get_sensitive(widget->parent)
2010-03-03 02:39:25 +01:00
Javier Jardón
491ed58420
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_NO_SHOW_ALL)
2010-03-02 18:24:21 +01:00
Javier Jardón
f8fb228752
Fix gtk_widget_is_sensitive() function
...
The bug was introduced in
commit a27d5a2c9e
2010-03-02 17:54:16 +01:00
Javier Jardón
e8e95d4c5e
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_CAN_DEFAULT)
...
Use new API instead: gtk_widget_set_can_default ()
2010-03-02 07:58:05 +01:00
Javier Jardón
483a5a9e1a
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_CAN_FOCUS)
...
Use new API instead: gtk_widget_set_can_focus ()
2010-03-02 04:42:54 +01:00
Javier Jardón
c3d09e5627
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_SENSITIVE)
2010-03-01 18:24:28 +01:00
Javier Jardón
27b64f50e6
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_DOUBLE_BUFFERED)
...
Use new API instead: gtk_widget_set_double_buffered ()
2010-03-01 18:14:05 +01:00
Javier Jardón
b909abaa62
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_RECEIVES_DEFAULT)
...
Use new API instead: gtk_widget_set_receives_default ()
2010-03-01 18:03:19 +01:00
Javier Jardón
214a023e91
Deprecate widget flag: GTK_WIDGET_VISIBLE
...
Use gtk_widget_get_visible() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-01 07:52:07 +01:00