diff options
Diffstat (limited to 'source4/gtk/common')
-rw-r--r-- | source4/gtk/common/gtk-smb.c | 2 | ||||
-rw-r--r-- | source4/gtk/common/select.c | 4 | ||||
-rw-r--r-- | source4/gtk/common/select.h | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/source4/gtk/common/gtk-smb.c b/source4/gtk/common/gtk-smb.c index ed1d8125e6..639aa68bac 100644 --- a/source4/gtk/common/gtk-smb.c +++ b/source4/gtk/common/gtk-smb.c @@ -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) { - 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); } 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 )); } diff --git a/source4/gtk/common/select.h b/source4/gtk/common/select.h index 3b3d09a99b..336359c322 100644 --- a/source4/gtk/common/select.h +++ b/source4/gtk/common/select.h @@ -24,6 +24,8 @@ #ifdef HAVE_GTK +#define GTK_DISABLE_DEPRECATED + #include <gtk/gtk.h> typedef struct _GtkSelectDomainDialog GtkSelectDomainDialog; |