Re: Another documentation inconsistency
- From: Emmanuele Bassi <ebassi gmail com>
- To: Igor Korot <ikorot01 gmail com>
- Cc: "gtk-list gnome org" <gtk-list gnome org>
- Subject: Re: Another documentation inconsistency
- Date: Mon, 10 Aug 2015 09:11:28 +0100
Hi;
On 8 August 2015 at 05:29, Igor Korot <ikorot01 gmail com> wrote:
Hi, ALL,
The documentation states:
[quote]
Adds an activatable widget to the action area of a GtkDialog,
connecting a signal handler that will emit the “response” signal on
the dialog when the widget is activated. The widget is appended to the
end of the dialog’s action area. If you want to add a non-activatable
widget, simply pack it into the action_area field of the GtkDialog
struct.
[/quote]
The documentation should be fixed; it's a remnant of GTK+ 2.x.
You should file a bug here:
https://bugzilla.gnome.org/enter_bug.cgi?product=gtk%2B&component=Documentation
However the call to gtk_dialog_get_action_area() is deprecated since GTK+-3.12.
So, how do I pack thje non-activateable widget in there?
You can keep using the deprecated API, *if* you need to keep existing
code working; if you are writing new code, though, you shouldn't pack
non-activatable widgets inside the action area. The action area is for
actions; if your widget does not have an action associated to it, then
it should go in the content area.
Ciao,
Emmanuele.
--
https://www.bassi.io
[ ] ebassi [ gmail com]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]