Changeset 6288


Ignore:
Timestamp:
Jul 6, 2008, 12:56:19 AM (13 years ago)
Author:
charles
Message:

(gtk) #1073: Too many queries to disable Desktop hibernation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr-core.c

    r6285 r6288  
    6161    gboolean           inhibit_allowed;
    6262    gboolean           have_inhibit_cookie;
     63    gboolean           dbus_error;
    6364    guint              inhibit_cookie;
    6465    GtkTreeModel     * model;
     
    10121013    }
    10131014
    1014     if( !allowed && !core->priv->have_inhibit_cookie )
    1015     {
    1016         core->priv->have_inhibit_cookie = gtr_inhibit_hibernation( &core->priv->inhibit_cookie );
     1015    if( !allowed &&
     1016        !core->priv->have_inhibit_cookie &&
     1017        !core->priv->dbus_error )
     1018    {
     1019        if( gtr_inhibit_hibernation( &core->priv->inhibit_cookie ) )
     1020            core->priv->have_inhibit_cookie = TRUE;
     1021        else
     1022            core->priv->dbus_error = TRUE;
    10171023    }
    10181024#endif
Note: See TracChangeset for help on using the changeset viewer.