[Goodies-commits] r7861 - in xfce4-notes-plugin/trunk: . panel-plugin

Mike Massonnet mmassonnet at xfce.org
Wed Jul 29 15:46:43 CEST 2009


Author: mmassonnet
Date: 2009-07-29 13:46:43 +0000 (Wed, 29 Jul 2009)
New Revision: 7861

Modified:
   xfce4-notes-plugin/trunk/ChangeLog
   xfce4-notes-plugin/trunk/panel-plugin/window.vala
Log:
Fix tabs option

Modified: xfce4-notes-plugin/trunk/ChangeLog
===================================================================
--- xfce4-notes-plugin/trunk/ChangeLog	2009-07-29 13:08:19 UTC (rev 7860)
+++ xfce4-notes-plugin/trunk/ChangeLog	2009-07-29 13:46:43 UTC (rev 7861)
@@ -1,5 +1,14 @@
 2009-07-29  Mike Massonnet <mmassonnet at xfce.org>
 
+Fix tabs option
+	* panel-plugin/window.vala:
+	  - The class Xnp.Window didn't have any show-tabs properties, now it
+	  is a transparent proxy towards the notebook.
+	  - Set the tabs scrollable so they don't grow the window.
+	  - Update the tab label text on note name changes.
+
+2009-07-29  Mike Massonnet <mmassonnet at xfce.org>
+
 Deleting the last note also deletes the window (bug #5535)
 	* panel-plugin/window.vala:
 	  - Install a new public property n_pages that is automatically

Modified: xfce4-notes-plugin/trunk/panel-plugin/window.vala
===================================================================
--- xfce4-notes-plugin/trunk/panel-plugin/window.vala	2009-07-29 13:08:19 UTC (rev 7860)
+++ xfce4-notes-plugin/trunk/panel-plugin/window.vala	2009-07-29 13:46:43 UTC (rev 7861)
@@ -82,6 +82,15 @@
 		public new string name { default = _("Notes"); get; set; }
 		public int n_pages { get; set; }
 
+		public bool show_tabs {
+			get {
+				return this.notebook.show_tabs;
+			}
+			set {
+				this.notebook.show_tabs = value;
+			}
+		}
+
 		private bool _above;
 		public bool above {
 			get {
@@ -196,6 +205,7 @@
 			this.notebook = new Gtk.Notebook ();
 			this.notebook.show_border = false;
 			this.notebook.show_tabs = false;
+			this.notebook.scrollable = true;
 			this.notebook.show ();
 			this.content_box.pack_start (this.notebook, true, true, 0);
 
@@ -543,6 +553,7 @@
 			if (pspec.name == "name") {
 				/* Update the window title */
 				var note = (Xnp.Note)object;
+				this.notebook.set_tab_label_text (note, note.name);
 				int page = this.notebook.get_current_page ();
 				var current_note = (Xnp.Note)(this.notebook.get_nth_page (page));
 				if (note == current_note)




More information about the Goodies-commits mailing list