summaryrefslogtreecommitdiff
path: root/source4/gtk/common/select.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-12-21 03:28:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:07:32 -0500
commit47021d0c69fa102f86bd900b2a048d9d979c0448 (patch)
treeb9e6adea4bcd7dc9b1445fd40ee754986b83fe91 /source4/gtk/common/select.c
parent9547649006770022bdcddcc319b81b555222f1c4 (diff)
downloadsamba-47021d0c69fa102f86bd900b2a048d9d979c0448.tar.gz
samba-47021d0c69fa102f86bd900b2a048d9d979c0448.tar.bz2
samba-47021d0c69fa102f86bd900b2a048d9d979c0448.zip
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)
Diffstat (limited to 'source4/gtk/common/select.c')
-rw-r--r--source4/gtk/common/select.c4
1 files changed, 2 insertions, 2 deletions
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 ));
}