try to fix #25

This commit is contained in:
guinux 2015-01-21 17:07:26 +01:00
parent 7813d139d9
commit 4295977164

View File

@ -29,8 +29,8 @@ namespace Pamac {
public interface Daemon : Object { public interface Daemon : Object {
public abstract void refresh (int force, bool emit_signal) throws IOError; public abstract void refresh (int force, bool emit_signal) throws IOError;
public abstract UpdatesInfos[] get_updates () throws IOError; public abstract UpdatesInfos[] get_updates () throws IOError;
[DBus (no_reply = true)] //~ [DBus (no_reply = true)]
public abstract void quit () throws IOError; //~ public abstract void quit () throws IOError;
} }
public class TrayIcon: Gtk.Application { public class TrayIcon: Gtk.Application {
@ -56,13 +56,13 @@ namespace Pamac {
} }
} }
void stop_daemon () { //~ void stop_daemon () {
try { //~ try {
daemon.quit (); //~ daemon.quit ();
} catch (IOError e) { //~ } catch (IOError e) {
stderr.printf ("IOError: %s\n", e.message); //~ stderr.printf ("IOError: %s\n", e.message);
} //~ }
} //~ }
// Create menu for right button // Create menu for right button
void create_menu () { void create_menu () {
@ -138,8 +138,8 @@ namespace Pamac {
if (pamac_run == false) if (pamac_run == false)
show_notification (info); show_notification (info);
} }
if (pamac_run == false) //~ if (pamac_run == false)
stop_daemon (); //~ stop_daemon ();
} }
void show_notification (string info) { void show_notification (string info) {