diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-12-21 03:28:26 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:07:32 -0500 |
commit | 47021d0c69fa102f86bd900b2a048d9d979c0448 (patch) | |
tree | b9e6adea4bcd7dc9b1445fd40ee754986b83fe91 /source4/gtk/tools/gregedit.c | |
parent | 9547649006770022bdcddcc319b81b555222f1c4 (diff) | |
download | samba-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/tools/gregedit.c')
-rw-r--r-- | source4/gtk/tools/gregedit.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source4/gtk/tools/gregedit.c b/source4/gtk/tools/gregedit.c index 78114d9149..b50d81a778 100644 --- a/source4/gtk/tools/gregedit.c +++ b/source4/gtk/tools/gregedit.c @@ -580,18 +580,18 @@ static GtkWidget* create_mainwin (void) 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 @@ static GtkWidget* create_mainwin (void) 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); |