[Xfce4-commits] [apps/xfce4-taskmanager] 04/08: Add a show-memory-in-xbytes checkbox and its corresponding property
noreply at xfce.org
noreply at xfce.org
Thu Dec 4 21:02:49 CET 2014
This is an automated email from the git hooks/post-receive script.
landry pushed a commit to branch master
in repository apps/xfce4-taskmanager.
commit 589ea153cfbe692e691050a5b1cedc0cd09959a6
Author: Landry Breuil <landry at xfce.org>
Date: Thu Dec 4 20:37:31 2014 +0100
Add a show-memory-in-xbytes checkbox and its corresponding property
---
src/settings-dialog.c | 1 +
src/settings-dialog.ui | 14 ++++++++++++++
src/settings.c | 3 +++
3 files changed, 18 insertions(+)
diff --git a/src/settings-dialog.c b/src/settings-dialog.c
index b191430..c8eaf22 100644
--- a/src/settings-dialog.c
+++ b/src/settings-dialog.c
@@ -108,6 +108,7 @@ xtm_settings_dialog_init (XtmSettingsDialog *dialog)
builder_bind_toggle_button (builder, "button-monitor-paint-box", dialog->settings, "monitor-paint-box");
builder_bind_toggle_button (builder, "button-prompt-terminate-task", dialog->settings, "prompt-terminate-task");
builder_bind_toggle_button (builder, "button-show-status-icon", dialog->settings, "show-status-icon");
+ builder_bind_toggle_button (builder, "button-show-memory-in-xbytes", dialog->settings, "show-memory-in-xbytes");
{
guint n;
diff --git a/src/settings-dialog.ui b/src/settings-dialog.ui
index 4c84edc..315480d 100644
--- a/src/settings-dialog.ui
+++ b/src/settings-dialog.ui
@@ -186,6 +186,20 @@
<property name="position">1</property>
</packing>
</child>
+ <child>
+ <object class="GtkCheckButton" id="button-show-memory-in-xbytes">
+ <property name="label" translatable="yes">Show memory usage in bytes</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
</object>
</child>
</object>
diff --git a/src/settings.c b/src/settings.c
index 8ad5837..031fa81 100644
--- a/src/settings.c
+++ b/src/settings.c
@@ -36,6 +36,7 @@ enum
PROP_MORE_PRECISION,
PROP_FULL_COMMAND_LINE,
PROP_SHOW_STATUS_ICON,
+ PROP_SHOW_MEMORY_IN_XBYTES,
PROP_MONITOR_PAINT_BOX,
PROP_SHOW_APPLICATION_ICONS,
PROP_TOOLBAR_STYLE,
@@ -93,6 +94,8 @@ xtm_settings_class_init (XtmSettingsClass *klass)
g_param_spec_boolean ("full-command-line", "FullCommandLine", "Full command line", FALSE, G_PARAM_READWRITE));
g_object_class_install_property (class, PROP_SHOW_STATUS_ICON,
g_param_spec_boolean ("show-status-icon", "ShowStatusIcon", "Show/hide the status icon", FALSE, G_PARAM_READWRITE));
+ g_object_class_install_property (class, PROP_SHOW_MEMORY_IN_XBYTES,
+ g_param_spec_boolean ("show-memory-in-xbytes", "ShowMemoryInXBytes", "Show memory usage in bytes", FALSE, G_PARAM_READWRITE));
g_object_class_install_property (class, PROP_MONITOR_PAINT_BOX,
g_param_spec_boolean ("monitor-paint-box", "MonitorPaintBox", "Paint box around monitor", TRUE, G_PARAM_READWRITE));
g_object_class_install_property (class, PROP_SHOW_APPLICATION_ICONS,
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list