Commit 9aebe74c authored by Dave Camp's avatar Dave Camp Committed by Dave Camp

Replace deprecated signal handling functions.

2002-02-14  Dave Camp  <dave@ximian.com>

	* components/notes/nautilus-notes.c (done_with_file):
	(notes_save_metainfo): Replace deprecated signal handling
	functions.
parent 8d0aed09
2002-02-14 Dave Camp <dave@ximian.com>
* components/notes/nautilus-notes.c (done_with_file):
(notes_save_metainfo): Replace deprecated signal handling
functions.
2002-02-14 jacob berkman <jacob@ximian.com>
* src/Makefile.am:
......
......@@ -189,7 +189,9 @@ done_with_file (Notes *notes)
if (notes->file != NULL) {
nautilus_file_monitor_remove (notes->file, notes);
gtk_signal_disconnect_by_func (GTK_OBJECT (notes->file),
g_signal_handlers_disconnect_matched (notes->file,
G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA,
0, 0, NULL,
G_CALLBACK (load_note_text_from_metadata),
notes);
nautilus_file_unref (notes->file);
......@@ -263,7 +265,9 @@ notes_save_metainfo (Notes *notes)
/* Block the handler, so we don't respond to our own change.
*/
gtk_signal_handler_block_by_func (GTK_OBJECT (notes->file),
g_signal_handlers_block_matched (notes->file,
G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA,
0, 0, NULL,
G_CALLBACK (load_note_text_from_metadata),
notes);
......@@ -278,7 +282,9 @@ notes_save_metainfo (Notes *notes)
NAUTILUS_METADATA_KEY_ANNOTATION,
NULL, notes_text);
gtk_signal_handler_unblock_by_func (GTK_OBJECT (notes->file),
g_signal_handlers_unblock_matched (notes->file,
G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA,
0, 0, NULL,
G_CALLBACK (load_note_text_from_metadata),
notes);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment