gtk+ r20642 - in trunk: . gtk



Author: johan
Date: Fri Jun 20 14:08:18 2008
New Revision: 20642
URL: http://svn.gnome.org/viewvc/gtk+?rev=20642&view=rev

Log:
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.



Modified:
   trunk/ChangeLog
   trunk/gtk/gtk.symbols
   trunk/gtk/gtkmessagedialog.c
   trunk/gtk/gtkmessagedialog.h

Modified: trunk/gtk/gtk.symbols
==============================================================================
--- trunk/gtk/gtk.symbols	(original)
+++ trunk/gtk/gtk.symbols	Fri Jun 20 14:08:18 2008
@@ -2329,6 +2329,7 @@
 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
 

Modified: trunk/gtk/gtkmessagedialog.c
==============================================================================
--- trunk/gtk/gtkmessagedialog.c	(original)
+++ trunk/gtk/gtkmessagedialog.c	Fri Jun 20 14:08:18 2008
@@ -644,6 +644,22 @@
 }
 
 /**
+ * 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>)

Modified: trunk/gtk/gtkmessagedialog.h
==============================================================================
--- trunk/gtk/gtkmessagedialog.h	(original)
+++ trunk/gtk/gtkmessagedialog.h	Fri Jun 20 14:08:18 2008
@@ -104,6 +104,8 @@
 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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]