~ted/libindicate/gdbus-port-away

« back to all changes in this revision

Viewing changes to libindicate/server.c

  • Committer: Ted Gould
  • Date: 2011-01-13 19:15:06 UTC
  • Revision ID: ted@gould.cx-20110113191506-wljyte6u0jz5zwp1
Ensuring that if we set to show, but we fail because of a lack of a connection, when we get that connection we complete the work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
707
707
                                                                    NULL); /* destroy notify */
708
708
 
709
709
        if (priv->visible) {
 
710
                priv->visible = FALSE;
710
711
                indicate_server_show(server);
711
712
        }
712
713
 
808
809
                return;
809
810
        }
810
811
 
 
812
        priv->visible = TRUE;
 
813
 
811
814
        if (priv->connection == NULL) {
812
815
                return;
813
816
        }
830
833
                }
831
834
        }
832
835
 
833
 
        priv->visible = TRUE;
834
 
 
835
836
        if (priv->registered != 0) {
836
837
                g_dbus_connection_emit_signal(priv->connection,
837
838
                                              NULL, /* dest */