summaryrefslogtreecommitdiff
path: root/source4/gtk/common
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
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')
-rw-r--r--source4/gtk/common/gtk-smb.c2
-rw-r--r--source4/gtk/common/select.c4
-rw-r--r--source4/gtk/common/select.h2
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;