summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--gtk/gtk.symbols1
-rw-r--r--gtk/gtkmessagedialog.c16
-rw-r--r--gtk/gtkmessagedialog.h2
4 files changed, 26 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 5266ea7e1f..71dfedd918 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-06-20 Johan Dahlin <jdahlin@async.com.br>
+
+ * 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 <mitch@imendio.com>
* 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
@@ -644,6 +644,22 @@ gtk_message_dialog_set_image (GtkMessageDialog *dialog,
}
/**
+ * 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
* @str: markup string (see <link linkend="PangoMarkupFormat">Pango markup format</link>)
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);