From 812eaa436f81b0a17015f569da698f7bc80f4ab3 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Fri, 20 Jun 2008 14:08:18 +0000 Subject: [PATCH] Add missing accessor for sealed field GtkMessageDialog->image. 2008-06-20 Johan Dahlin * gtk/gtk.symbols: * gtk/gtkmessagedialog.c (gtk_message_dialog_get_image): * gtk/gtkmessagedialog.h: Add missing accessor for sealed field GtkMessageDialog->image. svn path=/trunk/; revision=20642 --- ChangeLog | 7 +++++++ gtk/gtk.symbols | 1 + gtk/gtkmessagedialog.c | 16 ++++++++++++++++ gtk/gtkmessagedialog.h | 2 ++ 4 files changed, 26 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5266ea7e1f..71dfedd918 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-06-20 Johan Dahlin + + * gtk/gtk.symbols: + * gtk/gtkmessagedialog.c (gtk_message_dialog_get_image): + * gtk/gtkmessagedialog.h: + Add missing accessor for sealed field GtkMessageDialog->image. + 2008-06-20 Michael Natterer * gtk/gtkprinter.h: the GSEAL branch added two includes for no diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols index 929c951520..34781e275a 100644 --- a/gtk/gtk.symbols +++ b/gtk/gtk.symbols @@ -2329,6 +2329,7 @@ gtk_message_dialog_new G_GNUC_PRINTF(5,6) gtk_message_dialog_new_with_markup G_GNUC_PRINTF(5,6) gtk_message_dialog_set_markup gtk_message_dialog_set_image +gtk_message_dialog_get_image #endif #endif diff --git a/gtk/gtkmessagedialog.c b/gtk/gtkmessagedialog.c index d083492564..9e7c2f2780 100644 --- a/gtk/gtkmessagedialog.c +++ b/gtk/gtkmessagedialog.c @@ -643,6 +643,22 @@ gtk_message_dialog_set_image (GtkMessageDialog *dialog, g_object_notify (G_OBJECT (dialog), "image"); } +/** + * gtk_message_dialog_get_image: + * @dialog: a #GtkMessageDialog + * + * Return value: the dialog's image + * + * Since: 2.14 + **/ +GtkWidget * +gtk_message_dialog_get_image (GtkMessageDialog *dialog) +{ + g_return_if_fail (GTK_IS_MESSAGE_DIALOG (dialog)); + + return dialog->image; +} + /** * gtk_message_dialog_set_markup: * @message_dialog: a #GtkMessageDialog diff --git a/gtk/gtkmessagedialog.h b/gtk/gtkmessagedialog.h index 4e46bf3272..947773c76d 100644 --- a/gtk/gtkmessagedialog.h +++ b/gtk/gtkmessagedialog.h @@ -104,6 +104,8 @@ GtkWidget* gtk_message_dialog_new_with_markup (GtkWindow *parent, void gtk_message_dialog_set_image (GtkMessageDialog *dialog, GtkWidget *image); +GtkWidget * gtk_message_dialog_get_image (GtkMessageDialog *dialog); + void gtk_message_dialog_set_markup (GtkMessageDialog *message_dialog, const gchar *str);