From 42959771647bf2129ff0d4d323f455fdd3b1ac55 Mon Sep 17 00:00:00 2001 From: guinux Date: Wed, 21 Jan 2015 17:07:26 +0100 Subject: [PATCH] try to fix #25 --- src/tray.vala | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/tray.vala b/src/tray.vala index 7607249..ec97c29 100644 --- a/src/tray.vala +++ b/src/tray.vala @@ -29,8 +29,8 @@ namespace Pamac { public interface Daemon : Object { public abstract void refresh (int force, bool emit_signal) throws IOError; public abstract UpdatesInfos[] get_updates () throws IOError; - [DBus (no_reply = true)] - public abstract void quit () throws IOError; +//~ [DBus (no_reply = true)] +//~ public abstract void quit () throws IOError; } public class TrayIcon: Gtk.Application { @@ -56,13 +56,13 @@ namespace Pamac { } } - void stop_daemon () { - try { - daemon.quit (); - } catch (IOError e) { - stderr.printf ("IOError: %s\n", e.message); - } - } +//~ void stop_daemon () { +//~ try { +//~ daemon.quit (); +//~ } catch (IOError e) { +//~ stderr.printf ("IOError: %s\n", e.message); +//~ } +//~ } // Create menu for right button void create_menu () { @@ -138,8 +138,8 @@ namespace Pamac { if (pamac_run == false) show_notification (info); } - if (pamac_run == false) - stop_daemon (); +//~ if (pamac_run == false) +//~ stop_daemon (); } void show_notification (string info) {