[Nautilus-list] small notes patch
- From: Dave Camp <dave ximian com>
- To: nautilus-list eazel com
- Subject: [Nautilus-list] small notes patch
- Date: 27 Feb 2002 01:33:56 -0500
This reenables the little icon in the sidebar tabs if a note is present
in the current directory.
-dave
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/nautilus/ChangeLog,v
retrieving revision 1.5033
diff -u -r1.5033 ChangeLog
--- ChangeLog 2002/02/25 23:21:23 1.5033
+++ ChangeLog 2002/02/26 03:55:15
@@ -1,3 +1,12 @@
+2002-02-25 Dave Camp <dave ximian com>
+
+ * components/notes/nautilus-notes.c: (notify_listeners_if_changed):
+ Remove the #ifdef GNOME2_CONVERSION_COMPLETE and replace
+ bonobo_property_bag_notify_listeners with a
+ bonobo_event_source_notify_listeners_full call.
+ (make_notes_view): Remove the #ifdef GNOME2_CONVERSION_COMPLETE
+ and send the proper arguments to bonobo_control_set_properties.
+
2002-02-25 Darin Adler <darin bentspoon com>
* configure.in: Bump version.
Index: components/notes/nautilus-notes.c
===================================================================
RCS file: /cvs/gnome/nautilus/components/notes/nautilus-notes.c,v
retrieving revision 1.76
diff -u -r1.76 nautilus-notes.c
--- components/notes/nautilus-notes.c 2002/02/22 01:12:40 1.76
+++ components/notes/nautilus-notes.c 2002/02/26 03:55:15
@@ -240,10 +240,13 @@
tab_image_arg = bonobo_arg_new (BONOBO_ARG_STRING);
BONOBO_ARG_SET_STRING (tab_image_arg, tab_image);
-#ifdef GNOME2_CONVERSION_COMPLETE
- bonobo_property_bag_notify_listeners (notes->property_bag,
- "tab_image", tab_image_arg, NULL);
-#endif
+
+ bonobo_event_source_notify_listeners_full (notes->property_bag->es,
+ "Bonobo/Property",
+ "change",
+ "tab_image",
+ tab_image_arg,
+ NULL);
bonobo_arg_release (tab_image_arg);
g_free (tab_image);
}
@@ -404,11 +407,9 @@
/* allocate a property bag to reflect the TAB_IMAGE property */
notes->property_bag = bonobo_property_bag_new (get_bonobo_properties, set_bonobo_properties, notes);
-#ifdef GNOME2_CONVERSION_COMPLETE
- bonobo_control_set_properties (nautilus_view_get_bonobo_control (notes->view), notes->property_bag);
+ bonobo_control_set_properties (nautilus_view_get_bonobo_control (notes->view), BONOBO_OBJREF (notes->property_bag), NULL);
bonobo_property_bag_add (notes->property_bag, "tab_image", TAB_IMAGE, BONOBO_ARG_STRING, NULL,
"image indicating that a note is present", 0);
-#endif
/* handle events */
g_signal_connect (notes->view, "load_location",
G_CALLBACK (notes_load_location), notes);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]