[Goodies-commits] r7717 - in xfce4-notes-plugin/trunk: . panel-plugin
Mike Massonnet
mmassonnet at xfce.org
Mon Jul 13 01:06:06 CEST 2009
Author: mmassonnet
Date: 2009-07-12 23:06:06 +0000 (Sun, 12 Jul 2009)
New Revision: 7717
Modified:
xfce4-notes-plugin/trunk/ChangeLog
xfce4-notes-plugin/trunk/panel-plugin/application.vala
xfce4-notes-plugin/trunk/panel-plugin/defines.h
xfce4-notes-plugin/trunk/panel-plugin/xfce4-notes-settings.c
Log:
Show tabs option is back
Modified: xfce4-notes-plugin/trunk/ChangeLog
===================================================================
--- xfce4-notes-plugin/trunk/ChangeLog 2009-07-12 14:19:26 UTC (rev 7716)
+++ xfce4-notes-plugin/trunk/ChangeLog 2009-07-12 23:06:06 UTC (rev 7717)
@@ -1,3 +1,13 @@
+2009-07-13 Mike Massonnet <mmassonnet at xfce.org>
+
+Show tabs option is back
+ * panel-plugin/xfce4-notes-settings.c:
+ - Add the option "Show tabs in notes" in the global settings and
+ bind to xfconf /global/show-tabs.
+ * panel-plugin/application.vala:
+ - Bind xfconf setting /global/show-tabs to the property "show-tabs"
+ in the XnpWindow class.
+
2009-06-18 Mike Massonnet <mmassonnet at xfce.org>
=== Release 1.7.0 ===
Modified: xfce4-notes-plugin/trunk/panel-plugin/application.vala
===================================================================
--- xfce4-notes-plugin/trunk/panel-plugin/application.vala 2009-07-12 14:19:26 UTC (rev 7716)
+++ xfce4-notes-plugin/trunk/panel-plugin/application.vala 2009-07-12 23:06:06 UTC (rev 7717)
@@ -84,6 +84,8 @@
/* Global settings */
Xfconf.Property.bind (xfconf_channel, "/global/skip-taskbar-hint",
typeof (bool), window, "skip-taskbar-hint");
+ Xfconf.Property.bind (xfconf_channel, "/global/show-tabs",
+ typeof (bool), window, "show-tabs");
/* Default settings */
if (name == null) {
Modified: xfce4-notes-plugin/trunk/panel-plugin/defines.h
===================================================================
--- xfce4-notes-plugin/trunk/panel-plugin/defines.h 2009-07-12 14:19:26 UTC (rev 7716)
+++ xfce4-notes-plugin/trunk/panel-plugin/defines.h 2009-07-12 23:06:06 UTC (rev 7717)
@@ -27,6 +27,7 @@
/* Default settings */
#define GENERAL_HIDE_FROM_TASKBAR TRUE
+#define GENERAL_SHOW_TABS FALSE
#define GENERAL_HIDE_ARROW_BUTTON FALSE
#define GENERAL_BACKGROUND_COLOR BACKGROUND_YELLOW
#define NEW_WINDOW_ABOVE FALSE
Modified: xfce4-notes-plugin/trunk/panel-plugin/xfce4-notes-settings.c
===================================================================
--- xfce4-notes-plugin/trunk/panel-plugin/xfce4-notes-settings.c 2009-07-12 14:19:26 UTC (rev 7716)
+++ xfce4-notes-plugin/trunk/panel-plugin/xfce4-notes-settings.c 2009-07-12 23:06:06 UTC (rev 7717)
@@ -111,6 +111,13 @@
G_TYPE_BOOLEAN, G_OBJECT (button), "active");
gtk_box_pack_start (GTK_BOX (box), button, TRUE, FALSE, 0);
+ /* Show tabs */
+ button = gtk_check_button_new_with_label (_("Show tabs in the notes"));
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), GENERAL_SHOW_TABS);
+ xfconf_g_property_bind (xfconf_channel, "/global/show-tabs",
+ G_TYPE_BOOLEAN, G_OBJECT (button), "active");
+ gtk_box_pack_start (GTK_BOX (box), button, TRUE, FALSE, 0);
+
/* Background color */
hbox = gtk_hbox_new (FALSE, BORDER);
gtk_box_pack_start (GTK_BOX (box), hbox, TRUE, FALSE, 0);
More information about the Goodies-commits
mailing list