[epiphany] pdm-dialog: use gtk_message_dialog_get_message_area instead of home-grown hack



commit 1a21e15098d622ecb06efa4034d3f2d8e5dc4d79
Author: Xan Lopez <xan gnome org>
Date:   Wed Sep 1 18:06:52 2010 +0900

    pdm-dialog: use gtk_message_dialog_get_message_area instead of home-grown hack
    
    Yay.

 src/pdm-dialog.c |   19 +------------------
 1 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/pdm-dialog.c b/src/pdm-dialog.c
index 9a97a5b..2ad6355 100644
--- a/src/pdm-dialog.c
+++ b/src/pdm-dialog.c
@@ -351,20 +351,6 @@ clear_all_dialog_checkbutton_toggled_cb (GtkToggleButton *toggle,
 					   data->num_checked != 0);
 }
 
-static GtkWidget*
-_gtk_message_dialog_get_content_area (GtkMessageDialog *dialog)
-{
-	GtkWidget *image, *parent, *box;
-	GList *children;
-
-	image = gtk_message_dialog_get_image (dialog);
-	parent = gtk_widget_get_parent (image);
-	children = gtk_container_get_children (GTK_CONTAINER (parent));
-	box = GTK_WIDGET (children->next->data);
-	g_list_free (children);
-	return box;
-}
-
 void
 pdm_dialog_show_clear_all_dialog (EphyDialog *edialog,
 				  GtkWidget *parent,
@@ -413,10 +399,7 @@ pdm_dialog_show_clear_all_dialog (EphyDialog *edialog,
 #endif
 
 	vbox = gtk_vbox_new (FALSE, 6);
-	/* This is extremely evil, but at least we'll compile with
-	 * GSEAL enabled until #328069 is resolved. If it's WONTFIXED
-	 * we'll just do this from scratch with a normal GtkDialog */
-	content_area = _gtk_message_dialog_get_content_area (GTK_MESSAGE_DIALOG (dialog));
+	content_area = gtk_message_dialog_get_message_area (GTK_MESSAGE_DIALOG (dialog));
 	gtk_box_pack_start (GTK_BOX (content_area),
 			    vbox, FALSE, FALSE, 0);
 



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