[gtkhtml] Work around deprecation of gtk_dialog_set_has_separator().



commit 57bbc12bed38ecfcd7a0da61dabcfc91d3f44c56
Author: Matthew Barnes <mbarnes redhat com>
Date:   Fri Sep 17 22:58:36 2010 -0400

    Work around deprecation of gtk_dialog_set_has_separator().

 components/editor/gtkhtml-spell-dialog.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/components/editor/gtkhtml-spell-dialog.c b/components/editor/gtkhtml-spell-dialog.c
index 8012272..c1735a0 100644
--- a/components/editor/gtkhtml-spell-dialog.c
+++ b/components/editor/gtkhtml-spell-dialog.c
@@ -443,7 +443,9 @@ spell_dialog_init (GtkhtmlSpellDialog *dialog)
 
 	gtk_dialog_add_button (
 		GTK_DIALOG (dialog), GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE);
-	gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
+#if !GTK_CHECK_VERSION(2,90,7)
+	g_object_set (dialog, "has-separator", FALSE, NULL);
+#endif
 	gtk_window_set_title (GTK_WINDOW (dialog), _("Spell Checker"));
 	gtk_container_set_border_width (GTK_CONTAINER (dialog), 5);
 



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