libgimpwidgets: don't call gtk_dialog_set_has_separator()

It's deprecated in GTK+ 2.22. Instead use g_object_set() and add a
comment as reminder to remove that too later.
This commit is contained in:
Michael Natterer 2011-01-08 21:55:25 +01:00
parent 339deed1da
commit 413dc0331d
1 changed files with 2 additions and 1 deletions

View File

@ -120,7 +120,8 @@ gimp_dialog_class_init (GimpDialogClass *klass)
static void
gimp_dialog_init (GimpDialog *dialog)
{
gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
/* remove this once we depend on gtk 2.22 (where it defaults to FALSE) */
g_object_set (G_OBJECT (dialog), "has-separator", FALSE, NULL);
g_signal_connect (dialog, "response",
G_CALLBACK (gimp_dialog_response),