svn commit: samba r4302 - in branches/SAMBA_4_0/source/gtk: common
tools
tridge at samba.org
tridge at samba.org
Tue Dec 21 03:28:26 GMT 2004
Author: tridge
Date: 2004-12-21 03:28:26 +0000 (Tue, 21 Dec 2004)
New Revision: 4302
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4302
Log:
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.
Modified:
branches/SAMBA_4_0/source/gtk/common/gtk-smb.c
branches/SAMBA_4_0/source/gtk/common/select.c
branches/SAMBA_4_0/source/gtk/common/select.h
branches/SAMBA_4_0/source/gtk/tools/gepdump.c
branches/SAMBA_4_0/source/gtk/tools/gregedit.c
branches/SAMBA_4_0/source/gtk/tools/gwcrontab.c
branches/SAMBA_4_0/source/gtk/tools/gwsam_user.c
Changeset:
Modified: branches/SAMBA_4_0/source/gtk/common/gtk-smb.c
===================================================================
--- branches/SAMBA_4_0/source/gtk/common/gtk-smb.c 2004-12-21 01:04:11 UTC (rev 4301)
+++ branches/SAMBA_4_0/source/gtk/common/gtk-smb.c 2004-12-21 03:28:26 UTC (rev 4302)
@@ -289,7 +289,7 @@
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);
}
Modified: branches/SAMBA_4_0/source/gtk/common/select.c
===================================================================
--- branches/SAMBA_4_0/source/gtk/common/select.c 2004-12-21 01:04:11 UTC (rev 4301)
+++ branches/SAMBA_4_0/source/gtk/common/select.c 2004-12-21 03:28:26 UTC (rev 4302)
@@ -123,7 +123,7 @@
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 @@
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 ));
}
Modified: branches/SAMBA_4_0/source/gtk/common/select.h
===================================================================
--- branches/SAMBA_4_0/source/gtk/common/select.h 2004-12-21 01:04:11 UTC (rev 4301)
+++ branches/SAMBA_4_0/source/gtk/common/select.h 2004-12-21 03:28:26 UTC (rev 4302)
@@ -24,6 +24,8 @@
#ifdef HAVE_GTK
+#define GTK_DISABLE_DEPRECATED
+
#include <gtk/gtk.h>
typedef struct _GtkSelectDomainDialog GtkSelectDomainDialog;
Modified: branches/SAMBA_4_0/source/gtk/tools/gepdump.c
===================================================================
--- branches/SAMBA_4_0/source/gtk/tools/gepdump.c 2004-12-21 01:04:11 UTC (rev 4301)
+++ branches/SAMBA_4_0/source/gtk/tools/gepdump.c 2004-12-21 03:28:26 UTC (rev 4302)
@@ -359,7 +359,7 @@
gtk_tree_view_append_column(GTK_TREE_VIEW(tree_eps), curcol);
- store_eps = gtk_tree_store_new(3, GTK_TYPE_STRING, GTK_TYPE_STRING, GTK_TYPE_POINTER);
+ store_eps = gtk_tree_store_new(3, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_POINTER);
gtk_tree_view_set_model(GTK_TREE_VIEW(tree_eps), GTK_TREE_MODEL(store_eps));
g_object_unref(store_eps);
Modified: branches/SAMBA_4_0/source/gtk/tools/gregedit.c
===================================================================
--- branches/SAMBA_4_0/source/gtk/tools/gregedit.c 2004-12-21 01:04:11 UTC (rev 4301)
+++ branches/SAMBA_4_0/source/gtk/tools/gregedit.c 2004-12-21 03:28:26 UTC (rev 4302)
@@ -580,18 +580,18 @@
open_nt4 = gtk_image_menu_item_new_with_mnemonic("Open _NT4 file");
gtk_container_add (GTK_CONTAINER (menu_file_menu), open_nt4);
- g_signal_connect ((gpointer) open_nt4, "activate",
- G_CALLBACK (on_open_file_activate),
- (gpointer)"nt4");
+ g_signal_connect(open_nt4, "activate",
+ G_CALLBACK (on_open_file_activate),
+ discard_const_p(char, "nt4"));
}
if(reg_has_backend("w95")) {
open_w95 = gtk_image_menu_item_new_with_mnemonic("Open Win_9x file");
gtk_container_add (GTK_CONTAINER (menu_file_menu), open_w95);
- g_signal_connect ((gpointer) open_w95, "activate",
- G_CALLBACK (on_open_file_activate),
- (gpointer)"w95");
+ g_signal_connect (open_w95, "activate",
+ G_CALLBACK (on_open_file_activate),
+ discard_const_p(char, "w95"));
}
if(reg_has_backend("gconf")) {
@@ -616,9 +616,9 @@
open_ldb = gtk_image_menu_item_new_with_mnemonic("Open _LDB file");
gtk_container_add (GTK_CONTAINER (menu_file_menu), open_ldb);
- g_signal_connect ((gpointer) open_ldb, "activate",
- G_CALLBACK (on_open_file_activate),
- (gpointer)"ldb");
+ g_signal_connect(open_ldb, "activate",
+ G_CALLBACK (on_open_file_activate),
+ discard_const_p(char, "ldb"));
}
save = gtk_image_menu_item_new_from_stock ("gtk-save", accel_group);
Modified: branches/SAMBA_4_0/source/gtk/tools/gwcrontab.c
===================================================================
--- branches/SAMBA_4_0/source/gtk/tools/gwcrontab.c 2004-12-21 01:04:11 UTC (rev 4301)
+++ branches/SAMBA_4_0/source/gtk/tools/gwcrontab.c 2004-12-21 03:28:26 UTC (rev 4302)
@@ -420,9 +420,9 @@
gtk_table_attach (GTK_TABLE (table1), cal_day, 1, 2, 0, 1,
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
(GtkAttachOptions) (GTK_FILL), 0, 0);
- gtk_calendar_display_options (GTK_CALENDAR (cal_day),
- GTK_CALENDAR_SHOW_HEADING
- | GTK_CALENDAR_SHOW_DAY_NAMES);
+ gtk_calendar_set_display_options (GTK_CALENDAR (cal_day),
+ GTK_CALENDAR_SHOW_HEADING
+ | GTK_CALENDAR_SHOW_DAY_NAMES);
label3 = gtk_label_new ("Date");
gtk_table_attach (GTK_TABLE (table1), label3, 0, 1, 0, 1,
Modified: branches/SAMBA_4_0/source/gtk/tools/gwsam_user.c
===================================================================
--- branches/SAMBA_4_0/source/gtk/tools/gwsam_user.c 2004-12-21 01:04:11 UTC (rev 4301)
+++ branches/SAMBA_4_0/source/gtk/tools/gwsam_user.c 2004-12-21 03:28:26 UTC (rev 4302)
@@ -256,7 +256,7 @@
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
- combo_homedrive = gtk_combo_new();
+ combo_homedrive = gtk_combo_box_new();
gtk_table_attach (GTK_TABLE (table3), combo_homedrive, 1, 2, 1, 2,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (GTK_FILL), 0, 0);
More information about the samba-cvs
mailing list