Commit 9b82fd79 authored by Mike Engber's avatar Mike Engber
Browse files

reviewed by: Pavel Cisler <pavel@eazel.com>


	reviewed by: Pavel Cisler <pavel@eazel.com>

	* components/notes/nautilus-notes.c:
	(on_text_field_focus_out_event), (make_notes_view):
	Save notes on focus out - bug 6851.
parent d4744bff
2001-02-22 Michael Engber <engber@eazel.com>
reviewed by: Pavel Cisler <pavel@eazel.com>
* components/notes/nautilus-notes.c:
(on_text_field_focus_out_event), (make_notes_view):
Save notes on focus out - bug 6851.
2001-02-22 Robin * Slomkowski <rslomkow@eazel.com>
reviewed by: Eric Fischer <eric@eazel.com>
......
......@@ -151,6 +151,16 @@ notes_load_location (NautilusView *view,
}
}
static gboolean
on_text_field_focus_out_event (GtkWidget *widget,
GdkEventFocus *event,
gpointer user_data)
{
Notes *notes = user_data;
notes_save_metainfo (notes);
return FALSE;
}
static void
......@@ -186,7 +196,11 @@ make_notes_view (BonoboGenericFactory *Factory, const char *goad_id, gpointer cl
gtk_box_pack_start (GTK_BOX (vbox), notes->note_text_field, TRUE, TRUE, 0);
background = nautilus_get_widget_background (notes->note_text_field);
nautilus_background_set_color (background, NOTES_DEFAULT_BACKGROUND_COLOR);
gtk_signal_connect (GTK_OBJECT (notes->note_text_field), "focus_out_event",
GTK_SIGNAL_FUNC (on_text_field_focus_out_event),
notes);
gtk_widget_show_all (vbox);
/* Create CORBA object. */
......
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