r4302: fixed all of the annoying gtk warnings. The code all seems to still work, but
[samba.git] / source4 / gtk / common / gtk-smb.c
index ed1d8125e6c6c9cc0910e7bb53221de16f6b41ae..639aa68bac12d1e5003c48ae314ae9f2ea596c5c 100644 (file)
@@ -289,7 +289,7 @@ GType gtk_rpc_binding_dialog_get_type (void)
 
 GtkWidget *gtk_rpc_binding_dialog_new (BOOL nocredentials, struct sam_pipe *sam_pipe)
 {
 
 GtkWidget *gtk_rpc_binding_dialog_new (BOOL nocredentials, struct sam_pipe *sam_pipe)
 {
-       GtkRpcBindingDialog *d = GTK_RPC_BINDING_DIALOG ( gtk_type_new (gtk_rpc_binding_dialog_get_type ()));
+       GtkRpcBindingDialog *d = GTK_RPC_BINDING_DIALOG ( g_object_new (gtk_rpc_binding_dialog_get_type (), NULL));
        if (nocredentials) {
                gtk_widget_hide_all(d->frame_credentials);
        }
        if (nocredentials) {
                gtk_widget_hide_all(d->frame_credentials);
        }