Updating branch refs/heads/master
         to 2f44de239beb7f1c2e813aeac7be9924d37d9950 (commit)
       from 5b258ff8c7348a38bf6f63ef5a8969c5939deb8b (commit)

commit 2f44de239beb7f1c2e813aeac7be9924d37d9950
Author: Mike Massonnet <mmasson...@xfce.org>
Date:   Sat Aug 22 08:51:43 2009 +0200

    Notify note name change after insertion in the notebook

 ChangeLog                |    7 +++++++
 panel-plugin/window.vala |    3 ++-
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 91709f1..93ed4bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-08-22  Mike Massonnet <mmasson...@xfce.org>
+
+Notify note name change after insertion in the notebook
+       * panel-plugin/window.vala:
+         - Send a notify signal on property "name" after insertion of the
+         note in the notebook to properly update the tab label.
+
 2009-08-21  Mike Massonnet <mmasson...@xfce.org>
 
 Keep order of notes (bug #5534)
diff --git a/panel-plugin/window.vala b/panel-plugin/window.vala
index e9a003f..93b91ec 100644
--- a/panel-plugin/window.vala
+++ b/panel-plugin/window.vala
@@ -551,7 +551,7 @@ namespace Xnp {
                 */
                private void note_notify (GLib.Object object, GLib.ParamSpec 
pspec) {
                        if (pspec.name == "name") {
-                               /* Update the window title */
+                               /* Update the window title and notebook tab 
label */
                                var note = (Xnp.Note)object;
                                this.notebook.set_tab_label_text (note, 
note.name);
                                int page = this.notebook.get_current_page ();
@@ -930,6 +930,7 @@ namespace Xnp {
                        note.show ();
                        this.n_pages++;
                        this.notebook.insert_page (note, null, page);
+                       note.name = note.name; //note.notify ("name");
                        this.note_inserted (note);
                        return note;
                }
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to