[Xfce4-commits] [panel-plugins/xfce4-hardware-monitor-plugin] 09/13: Default to top_left for CurveView text overlay

noreply at xfce.org noreply at xfce.org
Wed Aug 12 18:39:13 CEST 2015


This is an automated email from the git hooks/post-receive script.

omegaphil pushed a commit to branch master
in repository panel-plugins/xfce4-hardware-monitor-plugin.

commit dcd12d0df0440c3572df11791c4b1098f4f4608b
Author: OmegaPhil <OmegaPhil at startmail.com>
Date:   Sat Aug 8 18:23:15 2015 +0100

    Default to top_left for CurveView text overlay
---
 src/applet.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/applet.cpp b/src/applet.cpp
index 1bac45b..2e57584 100644
--- a/src/applet.cpp
+++ b/src/applet.cpp
@@ -170,7 +170,7 @@ Applet::Applet(XfcePanelPlugin *plugin)
   viewer_text_overlay_separator(" "),
   viewer_text_overlay_font(""),
   viewer_text_overlay_color(0x00000000),
-  viewer_text_overlay_position(CurveView::bottom_left)
+  viewer_text_overlay_position(CurveView::top_left)
 {
   // Search for settings file
   XfceRc* settings_ro = NULL;
@@ -212,7 +212,7 @@ Applet::Applet(XfcePanelPlugin *plugin)
 
     // Extra care needed for this since enums don't enforce a range...
     int text_overlay_position = xfce_rc_read_int_entry(settings_ro,
-      "viewer_text_overlay_position", 0);
+      "viewer_text_overlay_position", int(CurveView::top_left));
     set_viewer_text_overlay_position(
           static_cast<CurveView::TextOverlayPosition>(text_overlay_position));
   }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list