dialog: Mark gtk_dialog_get_action_area as deprecated

Direct access to the action area by applications makes it much more
difficult to make changes to GtkDialog. Therefore, deprecate this
function.
This commit is contained in:
Matthias Clasen 2014-01-17 12:01:47 -05:00
parent 7ed2958943
commit 32a2901294
2 changed files with 6 additions and 3 deletions

View File

@ -1524,10 +1524,13 @@ gtk_dialog_buildable_custom_finished (GtkBuildable *buildable,
* *
* Returns the action area of @dialog. * Returns the action area of @dialog.
* *
* Returns: (transfer none): the action area. * Returns: (transfer none): the action area
* *
* Since: 2.14 * Since: 2.14
**/ *
* Deprecated:3.12: Direct access to the action area
* is discouraged; use gtk_dialog_add_button(), etc.
*/
GtkWidget * GtkWidget *
gtk_dialog_get_action_area (GtkDialog *dialog) gtk_dialog_get_action_area (GtkDialog *dialog)
{ {

View File

@ -188,7 +188,7 @@ void gtk_dialog_response (GtkDialog *dialog,
GDK_AVAILABLE_IN_ALL GDK_AVAILABLE_IN_ALL
gint gtk_dialog_run (GtkDialog *dialog); gint gtk_dialog_run (GtkDialog *dialog);
GDK_AVAILABLE_IN_ALL GDK_DEPRECATED_IN_3_10
GtkWidget * gtk_dialog_get_action_area (GtkDialog *dialog); GtkWidget * gtk_dialog_get_action_area (GtkDialog *dialog);
GDK_AVAILABLE_IN_ALL GDK_AVAILABLE_IN_ALL
GtkWidget * gtk_dialog_get_content_area (GtkDialog *dialog); GtkWidget * gtk_dialog_get_content_area (GtkDialog *dialog);