r4302: fixed all of the annoying gtk warnings. The code all seems to still work, but
[samba.git] / source4 / gtk / common / select.c
index dac32e8807bdf1df6e63ef6bb54fd8229b21a81b..1409a625d0906c56a5a89ffa92f0ee981984518e 100644 (file)
@@ -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 ));
 }