From 47021d0c69fa102f86bd900b2a048d9d979c0448 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 21 Dec 2004 03:28:26 +0000 Subject: r4302: fixed all of the annoying gtk warnings. The code all seems to still work, but given my lack of gtk experience, there are no guarantees. (This used to be commit 11277b38a473022eb59f896d5e23aa1e56786008) --- source4/gtk/common/select.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/gtk/common/select.c') diff --git a/source4/gtk/common/select.c b/source4/gtk/common/select.c index dac32e8807..1409a625d0 100644 --- a/source4/gtk/common/select.c +++ b/source4/gtk/common/select.c @@ -123,7 +123,7 @@ GType gtk_select_domain_dialog_get_type (void) GtkWidget *gtk_select_domain_dialog_new (struct dcerpc_pipe *sam_pipe) { - GtkSelectDomainDialog *d = gtk_type_new (gtk_select_domain_dialog_get_type ()); + GtkSelectDomainDialog *d = g_object_new(gtk_select_domain_dialog_get_type (), NULL); NTSTATUS status; struct samr_EnumDomains r; struct samr_Connect cr; @@ -258,5 +258,5 @@ GType gtk_select_host_dialog_get_type (void) GtkWidget *gtk_select_host_dialog_new (struct sam_pipe *sam_pipe, BOOL nocredentials) { - return GTK_WIDGET ( gtk_type_new (gtk_select_host_dialog_get_type ())); + return GTK_WIDGET ( g_object_new (gtk_select_host_dialog_get_type (), NULL )); } -- cgit