[Xfce4-commits] [panel-plugins/xfce4-stopwatch-plugin] 03/03: Fix Xfce.Rc construction
noreply at xfce.org
noreply at xfce.org
Thu Mar 14 13:28:50 CET 2019
This is an automated email from the git hooks/post-receive script.
n c o p a p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository panel-plugins/xfce4-stopwatch-plugin.
commit 637cffe475f5c94af74a30d2c07e73c8934ac8cd
Author: Natanael Copa <ncopa at alpinelinux.org>
Date: Thu Mar 14 13:27:11 2019 +0100
Fix Xfce.Rc construction
libxfce4util has fixed the GObject introspection binding, but does not
provide deafult constructor. We need to use simple_open as constructor.
---
panel-plugin/stopwatch.vala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/panel-plugin/stopwatch.vala b/panel-plugin/stopwatch.vala
index f87b617..9c8d8e1 100644
--- a/panel-plugin/stopwatch.vala
+++ b/panel-plugin/stopwatch.vala
@@ -188,7 +188,7 @@ public class StopwatchPlugin : Xfce.PanelPlugin {
private Gtk.Box box;
private void load_rc () {
- var rc = new Xfce.Rc (lookup_rc_file (), true);
+ var rc = Xfce.Rc.simple_open (lookup_rc_file (), true);
var elapsed = MyTimeVal.zero ();
rc.read_entry ("elapsed_sec", "0").scanf ("%ld", out elapsed.tv_sec);
rc.read_entry ("elapsed_usec", "0").scanf ("%ld", out elapsed.tv_usec);
@@ -239,7 +239,7 @@ public class StopwatchPlugin : Xfce.PanelPlugin {
});
this.save.connect (() => {
- var rc = new Xfce.Rc(save_location (true), false);
+ var rc = Xfce.Rc.simple_open(save_location (true), false);
var elapsed = timer.elapsed;
rc.write_entry ("elapsed_sec", "%ld".printf (elapsed.tv_sec));
rc.write_entry ("elapsed_usec", "%ld".printf (elapsed.tv_usec));
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list