diff options
author | Ted Gould <ted@gould.cx> | 2010-07-20 15:17:50 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-07-20 15:17:50 -0500 |
commit | 76b3d5020bef447e78cc6205309464b411b13836 (patch) | |
tree | 7e90b092e272f02047a7a093d200fd3955a7d593 /libdbusmenu-glib | |
parent | 7467274b62cd6db89dc51a9b0e4ad0b5b3bc6f91 (diff) | |
download | libdbusmenu-76b3d5020bef447e78cc6205309464b411b13836.tar.gz libdbusmenu-76b3d5020bef447e78cc6205309464b411b13836.tar.bz2 libdbusmenu-76b3d5020bef447e78cc6205309464b411b13836.zip |
If there's no idle setup we don't need to worry about flushing, there's nothing to do.
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r-- | libdbusmenu-glib/client.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index 5ecfbde..5e1fe0c 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -521,11 +521,13 @@ get_properties_flush (DbusmenuClient * client) { DbusmenuClientPrivate * priv = DBUSMENU_CLIENT_GET_PRIVATE(client); - if (priv->delayed_idle != 0) { - g_source_remove(priv->delayed_idle); - priv->delayed_idle = 0; + if (priv->delayed_idle == 0) { + return; } + g_source_remove(priv->delayed_idle); + priv->delayed_idle = 0; + get_properties_idle(client); dbus_g_connection_flush(priv->session_bus); |